finding and replacing

H

HELPNEEDED!!

HELP!

I have a mind numbingly boring job of updating the prices in our work
spreadsheet.

Is there a way I can find a list of product codes in the new prices
spreadsheet and then automatically update the specific field in the product
database?
 
P

Pete_UK

It would help if you were to give more details of how your data is
laid out and what you want to achieve.

In the absence of that, I can only advise you to look in XL Help for
the VLOOKUP (and similar) function.

Hope this helps.

Pete
 
B

Bernie Deitrick

Help,

In gerneral, use a formula like this in a new column next to your product database:

=IF(ISERROR(VLOOKUP(Code,NewPrices,2,False)),OldPrice,VLOOKUP(Code,NewPrices,2,False))

Where
Code is the cell in the same row with the product code
NewPrices is the table with the product code and prices - I've assumed a two column table. Use the
sheet name and absolute references
OldPrice is the cell in the same row with the old price

So, in a cell on row 2, it would look like

=IF(ISERROR(VLOOKUP(A2,NewPriceSheet!$A$1:$B$1000,2,False)),C2,VLOOKUP(A2,NewPriceSheet!$A$1:$B$1000,2,False))

Then copy that down to match your product database - copy it, and paste values over the old prices.

HTH,
Bernie
MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Percentage Increase 13
Compare Old & New Product List (i.e. VLOOKUP) 3
vlookup 2
References 1
changing multiple column references in a formula 5
Find Last Item Entered in Row 4
Excel formula 2
Apple's price hike 7

Top