Color code on oldest date

aayaanmayank

Board Regular
Joined
Jul 20, 2018
Messages
157
Hi Can someone help me with below data. i need to color code whichever is oldest date for particular ID.


<colgroup><col width="64" span="2" style="width:48pt"> </colgroup><tbody>
[TD="class: xl63, width: 64"]ID[/TD]
[TD="class: xl64, width: 64"]Creation Date[/TD]

[TD="class: xl65, align: right"]783393464[/TD]
[TD="class: xl66, align: right"]10/11/2005[/TD]

[TD="class: xl65, align: right"]783393464[/TD]
[TD="class: xl66, align: right"]03/03/2017[/TD]

[TD="class: xl65, align: right"]744976874[/TD]
[TD="class: xl66, align: right"]12/29/2004[/TD]

[TD="class: xl65, align: right"]744976874[/TD]
[TD="class: xl66, align: right"]12/30/2016[/TD]

[TD="class: xl65, align: right"]747485557[/TD]
[TD="class: xl66, align: right"]03/23/2007[/TD]

[TD="class: xl65, align: right"]747485557[/TD]
[TD="class: xl66, align: right"]10/02/2012[/TD]

[TD="class: xl65, align: right"]749387878[/TD]
[TD="class: xl66, align: right"]07/04/2008[/TD]

[TD="class: xl65, align: right"]749387878[/TD]
[TD="class: xl66, align: right"]06/17/2014[/TD]

</tbody>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
=MIN(IF(A1=A$1:A$8,B$1:B$8))
Array formula, use Ctrl-Shift-Enter

produces the oldes date per ID.

Select the entire range (both ID and dates)

Conditional Formatting
New Rule
Use a formula to determine...

=($B1=MIN(IF($A1=$A$1:$A$8,$B$1:$B$8)))

Format as required
 
Upvote 0
Hi Can someone help me with below data. i need to color code whichever is oldest date for particular ID.
If your sample data is representative (oldest date is the first row for each ID) then you could use this much simpler Conditional Formatting formula after selecting A2:Bxx

Excel Workbook
AB
1IDCreation Date
278339346411/10/2005
37833934643/03/2017
474497687429/12/2004
574497687430/12/2016
674748555723/03/2007
77474855572/10/2012
87493878784/07/2008
974938787817/06/2014
Oldest Date (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =$A2<>$A1Abc
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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