Formula to return a value based on criteria

helpme20

Board Regular
Joined
Aug 28, 2010
Messages
102
I am looking for a formula to produce a value based on the last date.

Column A is the Product Name
Column B is the Date of Purchase
Column C is the Product Cost by Unit of Measure


Can someone help me with the formula in Column D to return the Last Product Cost (Column C) for the most recent purchase (Column B) of the Product name (Column A) ?


Thank you very much.

Brian
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
By the way, for the first formula (array formula) to work, you must to press Ctrl+Shift+Enter to enter the formula.

Here is one more formula (with the AGGREGATE function):

=IF(COUNTIF(A$2:A2,A2)>1,"",
AGGREGATE(14,6,1/(B$2:B$17=LARGE((A$2:A$17=A2)*B$2:B$17,1))*C$2:C$17,1))<strike></strike>

Markmzz
<strike></strike>
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,743
Members
449,094
Latest member
dsharae57

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top