Excel Formula to highlight most recent record

JoeRooney

Board Regular
Joined
Nov 27, 2017
Messages
169
Office Version
  1. 365
Hi All,

I need a formula to highlight the most recent record for a policy , I have included a example below.

Any help with this is greatly appreciated.

PolicyTrans_TimeRequired Formula
AAA25/10/2019 02:07:42 PM
AAA06/12/2019 02:05:44 PM
AAA23/12/2019 11:01:12 AM
AAA17/01/2020 09:15:41 AMLast
BBB09/06/2020 03:18:04 PM
BBB10/07/2020 05:39:06 PM
BBB12/08/2020 01:46:49 PM
BBB10/09/2020 12:05:46 PM
BBB10/10/2020 12:07:26 PM
BBB28/11/2020 12:06:15 PMLast
CCC18/12/2017 04:37:01 PM
CCC06/03/2018 12:32:23 PMLast
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
how about
=IF(A1&B1=A1&MAXIFS($B$1:$B$12,$A$1:$A$12,A1),"last","")

Book13
ABCD
1AAA10/25/19 14:07 
2AAA12/6/19 14:05 
3AAA12/23/19 11:01 
4AAA1/17/20 9:15Lastlast
5BBB6/9/20 15:18 
6BBB7/10/20 17:39 
7BBB8/12/20 13:46 
8BBB9/10/20 12:05 
9BBB10/10/20 12:07 
10BBB11/28/20 12:06Lastlast
11CCC12/18/17 16:37 
12CCC3/6/18 12:32Lastlast
13CCC1/17/20 9:15 
Sheet1
Cell Formulas
RangeFormula
D1:D13D1=IF(A1&B1=A1&MAXIFS($B$1:$B$12,$A$1:$A$12,A1),"last","")
 
Upvote 0
Solution
how about
=IF(A1&B1=A1&MAXIFS($B$1:$B$12,$A$1:$A$12,A1),"last","")

Book13
ABCD
1AAA10/25/19 14:07 
2AAA12/6/19 14:05 
3AAA12/23/19 11:01 
4AAA1/17/20 9:15Lastlast
5BBB6/9/20 15:18 
6BBB7/10/20 17:39 
7BBB8/12/20 13:46 
8BBB9/10/20 12:05 
9BBB10/10/20 12:07 
10BBB11/28/20 12:06Lastlast
11CCC12/18/17 16:37 
12CCC3/6/18 12:32Lastlast
13CCC1/17/20 9:15 
Sheet1
Cell Formulas
RangeFormula
D1:D13D1=IF(A1&B1=A1&MAXIFS($B$1:$B$12,$A$1:$A$12,A1),"last","")
Works great
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

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