简体   繁体   中英

Excel If column A has same value then highlight max date in column B

Looking for Excel conditional formatting help.

Need to highlight Max Date from Column B if Column A has same values. For Example; in column A value of "16870288"; "2018/07/20" should be highlighted in column B.

在此处输入图片说明

Any help is appreciated.

Sorted as shown (ie ColumnA grouped together and within that ColumnB ascending), then a CF formula rule of:

=A2<>A3

applied in B2 and to the range B2:Bn where n is what suits, should serve.

Create a conditional formatting rule for column B based on a MAXIFS formula. If you don't have the newer MAXIFS function, create a pseudo-MAXIFS with INDEX or AGGREGATE.

=AND($B1<>"", $B1=AGGREGATE(14, 7, B:B/($A$1:$A$9999=$A1), 1))

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM