Max based on different column

Ampleford

Active Member
Joined
Mar 26, 2002
Messages
380
My spreadsheet has two non adjacent columns:-

Col 1-Col 2-Col 3
Dog-blank-12 Jan 19
Cat-blank-13 Mar 19
Cat-blank-04 Jan 19
Cat-blank-08 July 19
Elephant-blank-22 May 19
Dog-blank-25 May 19

I'd like a formula for Col 4 that shows me the latest instance (from the dates in column 3) of each entry in Column 1. At the moment - the process does not allow me to sort the columns.

Can anyone help?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Try:

Excel 2012
ABCD
1AnimalDateLatest
2Dog12-Jan25-May
3Cat13-Mar19-Jul
4Cat4-Jan19-Jul
5Cat19-Jul19-Jul
6Elephant8-Jul8-Jul
7Dog25-May25-May

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet13

Worksheet Formulas
CellFormula
D2=AGGREGATE(14,6,$C$2:$C$7/(A2=$A$2:$A$7),1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
You can use the method described here: https://exceljet.net/formula/max-if-criteria-match

So, if your data was in cells A2:C7, put this formula in D2 and copy down for all rows:
Code:
{=MAX(IF($A$2:$A$7=A2,$C$2:$C$7))}
(note that you really do not enter the squiggly brackets, this is an array formula that you must enter with CTRL-SHIFT-ENTER)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,936
Messages
6,122,340
Members
449,079
Latest member
rocketslinger

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