ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Latest Purchase Price (https://www.excelbanter.com/excel-worksheet-functions/263071-latest-purchase-price.html)

Curtis[_2_]

Latest Purchase Price
 

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
--
ce

Don Guillett[_2_]

Latest Purchase Price
 
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.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Curtis" .(do not spam) wrote in message
...

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
--
ce



Glenn

Latest Purchase Price
 
Curtis wrote:
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),"")))

Don Guillett[_2_]

Latest Purchase Price
 

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

defined names for the block starting at row 6
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Don Guillett" wrote in message
...
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.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Curtis" .(do not spam) wrote in message
...

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
--
ce





All times are GMT +1. The time now is 03:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com