Highligh lowest value in a row excluding zeros, errors and text

MKate

New Member
Joined
Jul 16, 2013
Messages
3
I have a spreadsheet containing a combination of numbers ($ values), zeros, errors (#N/A) and text.

For each row I want to highlight in green the lowest dollar value shown.
I have used the following formula to display the lowest value from the row in another cell:
=MIN(IF(ISNUMBER(C18:T18),IF(C18:T18>0,C18:T18)))

But this formula requires ctrl + shift + enter to work. When I try to put this into conditional formatting formula to get the cell to highlight green, it highlights multiple cells in the row green.

Please help! It is driving me crazy.

Thanks!
M
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
I think maybe your absolute/relative cell references are the trouble here.

I successfully created two rules.
1) In V18 I have a your CSE formula, =MIN(IF(ISNUMBER(C18:T18),IF(C18:T18>0,C18:T18))). The CndFrmt rule for cells C18:T18 is =C18:T18=$V18
2) The CndFrmt rule for cells C18:T18 is =C18:T18=MIN(IF(ISNUMBER(C18:T18),IF(C18:T18>0,C18:T18))) The CondFrmt engine seems to have no trouble with the array formula.


Book1
CDEFGHIJKLMNOPQRSTUV
1820l#DIV/0!5xy6223m#NAME?#N/A5062
Sheet51
Cell Formulas
RangeFormula
V18{=MIN(IF(ISNUMBER(C18:T18),IF(C18:T18>0,C18:T18)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Thank you!! it works now! lifesaver.
Just out of interest... can you explain why the $ needs to be with column V only and doesn't work when you have
=$C$18:$T$18=$V$18
(which is what the CndFrmt wants to do automatically when you select the cells)
 
Upvote 0
You're welcome. Lifesaver! now I'm blushing....

The CondFrmt engine will create a virtual array of logical tests where range C18:T18 is and it will compare C18 to V18, D18 to W18, E18 to X18...etc., unless you lock the column with $. This behaviour is intentional: perhaps you want the column to slide like that within the CndFrmt test, but in your case you don't.

You might find this video interesting; it clears up some of the baffling things that vex us all about CondFrmt. https://www.youtube.com/watch?v=GRfe4bHsjhI
 
Upvote 0

Forum statistics

Threads
1,217,383
Messages
6,136,272
Members
450,001
Latest member
KWeekley08

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