Max date

Forestq

Active Member
Joined
May 9, 2010
Messages
482
Hi I have source data into sheet1 like:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]ColumnA[/TD]
[TD]ColumnB[/TD]
[/TR]
[TR]
[TD]Audi[/TD]
[TD]01/01/2015[/TD]
[/TR]
[TR]
[TD]Audi[/TD]
[TD]30/03/2015[/TD]
[/TR]
[TR]
[TD]Bmw[/TD]
[TD]06/06/2015[/TD]
[/TR]
[TR]
[TD]Audi[/TD]
[TD]15/07/2015[/TD]
[/TR]
[TR]
[TD]Bmw[/TD]
[TD]02/02/2015[/TD]
[/TR]
</tbody>[/TABLE]

Into sheet2 I have unique list of values from columnA:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]ColumnA[/TD]
[TD]ColumnB[/TD]
[/TR]
[TR]
[TD]Audi[/TD]
[TD]15/07/2015[/TD]
[/TR]
[TR]
[TD]Bmw[/TD]
[TD]06/06/2015[/TD]
[/TR]
</tbody>[/TABLE]

How to write function and put it into columnB (sheet2) that will give me max date (the newest) for value from columnA?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
In B2 of Sheet2 control+shift+enter, not just enter, and copy down:

=MAX(IF(Sheet1!$A$2:$A$6=A2,Sheet1!$B$2:$B$6))
 
Upvote 0
Hi Aladin,

something is wrong, I got error:
Code:
=MAX(IF(Portal!$M$2:$M$15918=Sheet2!A1,Portal!$AO$2:$AO$15918))
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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