Conditional formatting -per row- but over entire table

CaraM

New Member
Joined
Apr 8, 2018
Messages
44
Office Version
  1. 365
Platform
  1. Windows
What's the fastest/easiest way, in a table where I will be adding rows, to highlight the lowest value per row but for every row in the table?

In my table below, I want to highlight the lowest price per item - as in row 2. Do I have to use format painter and copy to each row individually, and remember to do this when I add new rows, too?

I tried changing the range for the conditional format to all the rows for columns B-F, but that highlights the lowest price in the table, not the row.

Grocery.xlsx
ABCDEFG
1ItemWalmartKrogerAldiLidlTargetNeed?
2Almond Milk2.442.452.59X
3Wasa3.634.09
4Saltines1.74
5Animal *******s
6Pita chips
7Progresso soup2.381.49
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:F2Cell Valuetop 1 bottom valuestextNO
 
Select B2 to the end of the table & use this formula in conditional formatting
Excel Formula:
=AND(B2<>"",B2=MIN($B2:$G2))
 
Upvote 0
Select B2 to the end of the table & use this formula in conditional formatting
Excel Formula:
=AND(B2<>"",B2=MIN($B2:$G2))
Thank you!!

Follow-up question - is there a way to make this work for the cells that are NOT values (the "per ounce" entries I have) ? I could change those to not say "/oz," I guess, but I anticipate some of them not being a unit price in ounces.
 
Upvote 0
What "per ounce" entries, all you have shown is numbers.
 
Upvote 0
What "per ounce" entries, all you have shown is numbers.
Sorry - I forgot I only copied part of my table. I have some items with prices in the form of ".14/oz" (14 cents per ounce). Can a conditional format for the smallest entry be used on a text value?
 
Upvote 0
Will the entire row have values with /oz or only some cells?
 
Upvote 0
Ok, how about
Excel Formula:
=AND(B2<>"",--TEXTBEFORE(B2,"/",,,,B2)=MIN(IFERROR(--(TEXTBEFORE($B2:$F2,"/",,,,$B2:$F2)),999)))
 
Upvote 0
Solution
Ok, how about
Excel Formula:
=AND(B2<>"",--TEXTBEFORE(B2,"/",,,,B2)=MIN(IFERROR(--(TEXTBEFORE($B2:$F2,"/",,,,$B2:$F2)),999)))
Wow. Functions I didn’t even know existed! Thanks for your persistence and knowledge.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

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