find the value of a record with latest date

logstarter

New Member
Joined
Apr 14, 2017
Messages
39
Hi,

I have a question to find the staff value of the latest production date for the same product. I know how to find the latest production data by using max and if formula. But I would like to ask how to write the formula to get the staff name of the latest production date with the same product id. The circle value below is the expected value.

I have the following data



production date product id staff staff at latest production date of the same product
1/1/2020Ajohn(john)
13/12/2019Bsam(ken)
16/12/2019Ajane(john)
19/12/2019Bken(ken)
1/12/2019 Asam(john)

Thank you for your help.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
try this

Book1
ABCD
1production dateproduct idstaffstaff at latest production date of the same product
201/01/2020Ajohnjohn
313/12/2019Bsamken
416/12/2019Ajanejohn
519/12/2019Bkenken
601/12/2019Asamjohn
Sheet2
Cell Formulas
RangeFormula
D2:D6D2=INDEX($C$2:$C$6,MATCH(MAXIFS($A$2:$A$6,$B$2:$B$6,B2),$A$2:$A$6,0))
 
Upvote 0
Hi Alan
I think that your solutions relies on "chance" in relation to what dates might appear where in column A. Try changing cell A3 to 1/01/2020

This is my suggestion

Book1
ABCD
1production dateproduct idstaffstaff of latest
21/01/2020Ajohnjohn
313/12/2019Bsamken
416/12/2019Ajanejohn
519/12/2019Bkenken
61/12/2019Asamjohn
Staff
Cell Formulas
RangeFormula
D2:D6D2=INDEX(C$2:C$6,MATCH(MAXIFS(A$2:A$6,B$2:B$6,B2)&"|"&B2,INDEX(A$2:A$6&"|"&B$2:B$6,0),0))
 
Upvote 0
Hi Alan
I think that your solutions relies on "chance" in relation to what dates might appear where in column A. Try changing cell A3 to 1/01/2020

This is my suggestion

Book1
ABCD
1production dateproduct idstaffstaff of latest
21/01/2020Ajohnjohn
313/12/2019Bsamken
416/12/2019Ajanejohn
519/12/2019Bkenken
61/12/2019Asamjohn
Staff
Cell Formulas
RangeFormula
D2:D6D2=INDEX(C$2:C$6,MATCH(MAXIFS(A$2:A$6,B$2:B$6,B2)&"|"&B2,INDEX(A$2:A$6&"|"&B$2:B$6,0),0))
well spotted, thanks
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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