Data search, match and replace

%3CLINGO-SUB%20id%3D%22lingo-sub-1569969%22%20slang%3D%22en-US%22%3EData%20search%2C%20match%20and%20replace%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1569969%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%20Not%20sure%20how%20best%20to%20explain%20this%20but%20I've%20recently%20implemented%20a%20new%20POS%20system%20in%20my%20retail%20shop%20which%20uploads%20product%20data%20in%20an%20excel%20spreadsheet%20with%20name%2C%20description%2C%20pricing%2C%20etc.%20I've%20just%20been%20sent%20a%20new%20price%20list%20by%20a%20supplier%20and%20I'd%20like%20to%20update%20our%20pricing%20in%20our%20POS%20system%20without%20having%20to%20re-sort%2C%20re-arrange%20the%20products%20and%20variants%20again.%20Hoping%20for%20some%20advice%20on%20how%20best%20to%20search%20for%20a%20match%20in%20data%20(the%20SKU%20number)%20and%20then%20replace%20an%20associated%20value%20(wholesale%20price)%20with%20a%20new%20value%20if%20there%20is%20a%20match%20between%20the%20SKU%20in%20the%20old%20and%20new%20spreadsheets.%20We've%20done%20a%20lot%20of%20manipulation%20of%20the%20data%20to%20get%20it%20in%20the%20format%20we%20need%20to%20upload%20it%20and%20I%20don't%20want%20to%20have%20to%20go%20thru%20that%20process%20each%20time%20there%20is%20a%20price%20change.%3C%2FP%3E%3CP%3ENOTE%20there%20are%20over%205000%20rows%20of%20data.%20I%20just%20need%20to%20replace%20the%20old%20wholesale%20price%20with%20the%20new%20one%20and%20the%20old%20retail%20price%20with%20the%20new%20one%20based%20on%20a%20match%20with%20the%20value%20in%20the%20SKU%20column.%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%20I%20can't%20attach%20a%20file%20I%20don't%20think%20as%20it%20would%20be%20too%20large.%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1569969%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBI%20%26amp%3B%20Data%20Analysis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1570190%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20search%2C%20match%20and%20replace%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1570190%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F751071%22%20target%3D%22_blank%22%3E%40leanneo81%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20should%20be%20able%20to%20do%20this%20with%20the%20VLOOKUP%20formula%20with%20the%20lookup%20based%20on%20the%20SKU.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DVLOOKUP(Your%20Sheet%20SKU%2C%20Supplier%20Sheet%20Range%20Starting%20With%20SKU%20Col%2C%20Relative%20Col%20Number%20in%20Range%20Containing%20Price)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1570225%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20search%2C%20match%20and%20replace%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1570225%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F751071%22%20target%3D%22_blank%22%3E%40leanneo81%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EVLOOKUP()%20or%20INDEX%2FMATCH%20or%20like%20will%20work%2C%20but%20you'll%20have%20both%20old%20and%20new%20price%20if%20only%20partial%20substitution%20is%20needed.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBetter%20with%20Power%20Query%20both%20files%20and%20generate%20third%20clean%20one.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%20provide%20sample%20files%20with%20only%20few%20records%20in%20each%20it%20will%20be%20easier%20to%20demonstrate%20on%20formulas.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi, Not sure how best to explain this but I've recently implemented a new POS system in my retail shop which uploads product data in an excel spreadsheet with name, description, pricing, etc. I've just been sent a new price list by a supplier and I'd like to update our pricing in our POS system without having to re-sort, re-arrange the products and variants again. Hoping for some advice on how best to search for a match in data (the SKU number) and then replace an associated value (wholesale price) with a new value if there is a match between the SKU in the old and new spreadsheets. We've done a lot of manipulation of the data to get it in the format we need to upload it and I don't want to have to go thru that process each time there is a price change.

NOTE there are over 5000 rows of data. I just need to replace the old wholesale price with the new one and the old retail price with the new one based on a match with the value in the SKU column. 

Sorry I can't attach a file I don't think as it would be too large.

Thanks in advance for your help!

2 Replies

@leanneo81 

 

You should be able to do this with the VLOOKUP formula with the lookup based on the SKU.

 

=VLOOKUP(Your Sheet SKU, Supplier Sheet Range Starting With SKU Col, Relative Col Number in Range Containing Price)

 

 

@leanneo81 

VLOOKUP() or INDEX/MATCH or like will work, but you'll have both old and new price if only partial substitution is needed.

 

Better with Power Query both files and generate third clean one.

 

If you provide sample files with only few records in each it will be easier to demonstrate on formulas.