Conditional formatting the minimum amount excluding blanks

Folander

New Member
Joined
Feb 16, 2016
Messages
18
Hi all,

I have been trying various formulas without success. I need to conditional format a range of cells, say A1 to G1 to highlight the minimum amount excluding any blanks in that range. I just can't do it and it's doing my head in!

Any help is greatly appreciated.

Fo
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Blanks and text should already be automatically excluded by the MIN function.
So you should be able to use a Conditional Formatting formula like:
Code:
=MIN($A1:$G1)=$A1
 
Last edited:
Upvote 0
Can you add a column that writes the minimum number and refer to that?

If you add a column and put '=MIN(A1:G1)' in it, it will pick up the lowest number, excluding blanks. (UNLESS ALL ARE BLANKS IT WILL RETURN A 0) AND ALL BLANKS WILL BE HIGHLIGHTED)
Then for the conditional formatting use the 'equal to' and select the cell with the min formula in it.
 
Upvote 0
Can you add a column that writes the minimum number and refer to that?

If you add a column and put '=MIN(A1:G1)' in it, it will pick up the lowest number, excluding blanks. (UNLESS ALL ARE BLANKS IT WILL RETURN A 0) AND ALL BLANKS WILL BE HIGHLIGHTED)
Then for the conditional formatting use the 'equal to' and select the cell with the min formula in it.
No need for an extra column (unless they need an Array function), as you can enter the formula directly in Conditional Formatting like I showed above.
 
Upvote 0
Thanks for your responses, but the Min formula in conditional formatting is not excluding blanks. This is what is driving me insane. I'm using Excel 2010
 
Upvote 0
I managed to find a workaround. I think an issue I had was the cell I had wasn't blank, but it was the result of 0/1000 for example which would give a crazy low number. So I used this formula nicked off another site: =A1=MIN(IF(A112:G112>0.001,A112:G112," ")) and that worked.

Thanks for your help with the above.

Fo
 
Last edited:
Upvote 0
Yes, zero (or a very low number) is very different than a blank, as the MIN function only includes numbers.
So a blank would be fine for the original equation, but 0 or an tiny fraction would not work, as written.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
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