Find Latest comment for ID using vlookup/MAX?

Nortonstired

New Member
Joined
Mar 30, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I would like use a vlookup or equivalent to pull the latest comment for a specific ID. I can’t figure it out. I’m thinking maybe MAX but I’m not using it correctly. I think i need the vlookup because I am filling in cells in another table with the latest comment for its ID. In this example I would need it to return for ID 345 - Brown, 678 - yellow and 123 - Blue. How would I achieve this? Thanks for your help!

Also, If the latest date has multiple results (ID 999) is a possible to have it return “research “ like I would do with a IFERROR formula?

IDDATECOMMENT
1231/11/24Blue
1231/7/24Green
3451/1/24Red
3451/3/24Brown
3451/2/24Orange
6781/4/24Purple
6781/5/24Yellow
9991/4/24Taupe
9991/4/24Sage
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Could be something like this:

Book1
ABCDEF
2IDDATECOMMENTSIDlatest comments
312301/11/2024Blue123Blue
412301/07/2024Green345Brown
534501/01/2024Red678Yellow
634501/03/2024Brown999research
734501/02/2024Orange
867801/04/2024Purple
967801/05/2024Yellow
1099901/04/2024Taupe
1199901/04/2024Sage
Sheet1
Cell Formulas
RangeFormula
F3:F6F3=LET(a,FILTER($C:$C,($A:$A=$E3)*($B:$B=MAXIFS($B:$B,$A:$A,$E3))),IF(COUNTA(a)>1,"research",a))
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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