Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
julan
 
Posts: n/a
Default how to copy old price data onto new stock list if match exists?

I have an old price list which i want to use to populate the new price list.
The new stock list has some items the same - some are missing, some new
items are added. How can i copy the price field for the items on the old
stock list that match the new list? I cant figure out where to look on help.
The lists are in excel.
  #2   Report Post  
Fred
 
Posts: n/a
Default

Julian,

Use VLOOKUP() to find a the old price for those items that previously
exisited.

Assume: Old price list has Part # in ColA, Price in ColE
Sort old price list by Part #

Assume: New price list has Part # in ColA, Price in ColG
In new price list G2 enter
=if(iserror(vlookup(A2,'Old List'!A1:E999,5,FALSE),"",vlookup(A2,'Old
List'!A1:E999,5,FALSE)))
where "'Old List'!A1:E999" is the name of the sheet and range containing the
old prices.
This will return the price if Part No exists otherwise NULL
Copy down all rows in new list - Job done.

HTH
"julan" wrote:

I have an old price list which i want to use to populate the new price list.
The new stock list has some items the same - some are missing, some new
items are added. How can i copy the price field for the items on the old
stock list that match the new list? I cant figure out where to look on help.
The lists are in excel.

  #3   Report Post  
greg7468
 
Posts: n/a
Default


Hi Julian,
you can use VLOOKUP to do this.

Say your old list items are in A1:A100
and their prices are in B1:B100

The items in column A must be in alphabetical order

if your new list of items are in D1:D100
in E1 put this formula
=VLOOKUP(D1,$A$1:$B$100,2,FALSE)

This will look for the value in D1 in the table of the old stock
A1:B100
If it finds a match it will return the value found in column B and put
it in column E.

If it does not find that item in the old list it will retun a #N/A.

You can then drag this down for all your values in column D.

HTH.


--
greg7468


------------------------------------------------------------------------
greg7468's Profile: http://www.excelforum.com/member.php...fo&userid=9031
View this thread: http://www.excelforum.com/showthread...hreadid=382776

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter and list data based on different data. Defoes Right Boot Excel Worksheet Functions 3 April 13th 05 04:03 PM
How do i copy columns of data in notepad into excel? JJ Excel Discussion (Misc queries) 1 February 10th 05 09:21 PM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 1 February 10th 05 09:20 PM
Using Validation List from Another Workbook with Dependent Data Mike R. Excel Worksheet Functions 5 January 8th 05 07:06 PM
Data Table - does it work with DDE links and Stock Tickers? Post Tenebras Lux Excel Worksheet Functions 0 December 1st 04 05:17 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"