Index/Match of Max If

Noz2k

Well-known Member
Joined
Mar 15, 2011
Messages
693
Essentially I have some data that is like the below, in a sheet called 'Data':

C101/01/2018TypeA
C204/01/2018TypeB
C323/12/2017TypeA
C212/01/2018TypeC
C119/12/2017TypeC

<tbody>
</tbody>


What I want to return in a new sheet for each ID, is the latest date, and the corresponding Type, so the end result would look like below

C101/01/2018TypeA
C212/01/2018TypeC
C323/12/2017TypeA

<tbody>
</tbody>


I can get the latest date using the below formula, but do not not how to get the value in the corresponding column C for that row

Code:
{=MAX(IF('Data'!A:A=A2,'Data'!B:B))}
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
=INDEX(Data!C:C,MATCH(1,(Sheet1!B1=DataB:B)*(Sheet1!A1=Data!A:A),0),1)
Array formula, use Ctrl-Shift-Enter

where Sheet1 is your results sheet.
 
Upvote 0
Awesome, meets my requirements thank you.

and helped me work out how to do it if I didn't already have the max data in column B.

Thanks,
 
Upvote 0

Forum statistics

Threads
1,216,098
Messages
6,128,812
Members
449,468
Latest member
AGreen17

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