Latest Purchase Price

C

Curtis

In the source sheet
COL AB = recent cost
COL W = latest purchase date (format mm/dd/yyyy)
COL A = Part number

I need to identify the latest cost of each part number based on the criteria
above. The price can change in the month so I need the most recent price as
determined in Column W

thanks
 
D

Don Guillett

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.
 
G

Glenn

Curtis said:
In the source sheet
COL AB = recent cost
COL W = latest purchase date (format mm/dd/yyyy)
COL A = Part number

I need to identify the latest cost of each part number based on the criteria
above. The price can change in the month so I need the most recent price as
determined in Column W

thanks


The following array formula (commit with CTRL+SHIFT+ENTER) assumes that you have
the part number you wish to look up in AC2:

=INDEX(AB:AB,MAX(IF((A2:A100=AC2)*
(W2:W100=MAX(IF(A2:A100=AC2,W2:W100,""))),
ROW(A2:A100),"")))
 
D

Don Guillett

=IF($A10="","",INDEX(colD,MAX(IF((colG=$A10)*(colB=K$8),ROW(colI)-5))))

defined names for the block starting at row 6
 

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

Top