Highlighting Only a Single Row When There Are Multiple Rows With the Same Value

NoDayButToday

New Member
Joined
Feb 19, 2024
Messages
4
Office Version
  1. 2019
Platform
  1. Windows
I have a table where I'm tracking my weekly weight, body fat, and BMI measurements. I used conditional formatting to highlight the row containing my highest weight in red and the row containing my lowest weight in yellow. However, I've recently run into a problem where I have the same weight as previously recorded a few months ago, so now I have two rows highlighted yellow. How can I make it to where only the row containing my most recent lowest weight is highlighted in yellow?

Formulas used:
=$B1=MIN($B:$B)
=$B1=MAX($B:$B)
 

Attachments

  • Body Measurements.png
    Body Measurements.png
    36.3 KB · Views: 22

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
If you're set on full column references, then give these a try:

Excel Formula:
=AND($A1=LARGE(IF($B:$B=MIN($B:$B),$A:$A,""),1),$B1=MIN($B:$B))

Excel Formula:
=AND($A1=LARGE(IF($B:$B=MAX($B:$B),$A:$A,""),1),$B1=MAX($B:$B))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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