Formula help

iluvsafc

New Member
Joined
Jun 15, 2009
Messages
28
Hi all
I have a problem that I’m stuck with and I cannot for the life of me come up with a formula that works!

I have a data set that is duplicating on ID number as there is more than one expiry date per ID.

I’m after a formula that would look up each ID number in column A but bring back the most recent expiry date.


A
B
C
D
1
ID Number
Expiry Date
Formula to bring back most recent expiry date per ID number????
Expected result
2
01
01/01/2014

01/01/2016
3
01
01/01/2015

01/01/2016
4
01
01/01/2016

01/01/2016
5
02
01/01/2014

01/01/2016
6
02
01/01/2015

01/01/2016
7
02
01/01/2016

01/01/2016
8
03
01/01/2014

01/01/2016
9
03
01/01/2015

01/01/2016
10
03
01/01/2016

01/01/2016

<tbody>
</tbody>

My ideal result would be a separate pivot table (or something along the lines!) that would show the following –

01
01/01/2014
02
01/01/2015
03
01/01/2016

<tbody>
</tbody>

Any help would be greatly appreciated!
Cheers
Lee
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try this, enter as array, Ctrl, Shift & Enter

=MAX(IF($B$2:$B$10=$B2,$C$2:$C$10))
 
Upvote 0
in A11 put 1
in A12 put 2
in A13 put 3

in B11
=MAX(IF(B$1:B$9=A11,C$1:C$9,))
Array formula, use Ctrl-Shift-Enter

copy to B12 and B13
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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