Forestq

Active Member
Joined
May 9, 2010
Messages
482
Hi I have source data into sheet1 like:
ColumnAColumnB
Audi01/01/2015
Audi30/03/2015
Bmw06/06/2015
Audi15/07/2015
Bmw02/02/2015

<tbody>
</tbody>

Into sheet2 I have unique list of values from columnA:
ColumnAColumnB
Audi15/07/2015
Bmw06/06/2015

<tbody>
</tbody>

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

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,215,432
Messages
6,124,860
Members
449,194
Latest member
HellScout

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