Formula to find the last entry of different values that can be repeated (unsorted)

cornea_za

New Member
Joined
Mar 4, 2010
Messages
2
Hi All
Thanx for a great forum.
I have two columns, the first with random dates (can be repeated), and the second with different text values that is repeated randomly:
A B C (I need formula to give below results - last date)
2021/12/02 Charlie 2022/01/03
2021/12/05 Bravo 2022/01/02
2021/12/29 Charlie 2022/01/03
2022/01/02 Alpha 2022/01/04
2022/01/02 Bravo 2022/01/02
2022/01/03 Charlie 2022/01/03
2022/01/04 Alpha 2022/01/04

Will it be possible to have a formula if the dates are in random order (not required)?

Thanx in advance
Corne
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Power Query Solution
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"Column2"}, {{"Max Date", each List.Max([Column1]), type nullable date}})
in
    #"Grouped Rows"

Book7
ABCDE
1Column1Column2Column2Max Date
212/2/2021CharlieCharlie1/3/2022
312/5/2021BravoBravo1/2/2022
412/29/2021CharlieAlpha1/4/2022
51/2/2022Alpha
61/2/2022Bravo
71/3/2022Charlie
81/4/2022Alpha
Sheet1
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Given that we do not know your Excel version, here are a couple of possibilities

22 01 06.xlsm
ABCD
1DateValueLast DateLast Date
202-Dec-21Charlie 03-Jan-2203-Jan-22
305-Dec-21Bravo 02-Jan-2202-Jan-22
429-Dec-21Charlie 03-Jan-2203-Jan-22
502-Jan-22Alpha 04-Jan-2204-Jan-22
602-Jan-22Bravo 02-Jan-2202-Jan-22
703-Jan-22Charlie 03-Jan-2203-Jan-22
804-Jan-22Alpha 04-Jan-2204-Jan-22
Lastest Date
Cell Formulas
RangeFormula
C2:C8C2=MAXIFS(A$2:A$8,B$2:B$8,B2)
D2:D8D2=AGGREGATE(14,6,A$2:A$8/(B$2:B$8=B2),1)
 
Upvote 0

Forum statistics

Threads
1,215,047
Messages
6,122,858
Members
449,096
Latest member
Erald

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