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.

[TABLE="width: 610"]
<tbody>[TR]
[TD]
[/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[TD]D
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]ID Number
[/TD]
[TD]Expiry Date
[/TD]
[TD]Formula to bring back most recent expiry date per ID number????
[/TD]
[TD]Expected result
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]01
[/TD]
[TD]01/01/2014
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]01
[/TD]
[TD]01/01/2015
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD]01
[/TD]
[TD]01/01/2016
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD]02
[/TD]
[TD]01/01/2014
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD]02
[/TD]
[TD]01/01/2015
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD]02
[/TD]
[TD]01/01/2016
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD]03
[/TD]
[TD]01/01/2014
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD]03
[/TD]
[TD]01/01/2015
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]03
[/TD]
[TD]01/01/2016
[/TD]
[TD]
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
</tbody>[/TABLE]

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

[TABLE="width: 129"]
<tbody>[TR]
[TD]01
[/TD]
[TD]01/01/2014
[/TD]
[/TR]
[TR]
[TD]02
[/TD]
[TD]01/01/2015
[/TD]
[/TR]
[TR]
[TD]03
[/TD]
[TD]01/01/2016
[/TD]
[/TR]
</tbody>[/TABLE]

Any help would be greatly appreciated!
Cheers
Lee
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
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,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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