Omitting blank cells from contitional formating

tdcsi

Board Regular
Joined
Sep 20, 2011
Messages
86
Using excel 2010. I have a spreadsheet that is basically a living document. I am trying to find a way to use conditional formatting to highlight cells that do not fall within a set range, but not highlight cells that are blank. This is the direction I am currently going:

=IF((F45>$F$7)*AND(F45<$F$8),FALSE,TRUE)

This does return the correct "True" result for this cell (F45 is the only cell that is outside my range) when used in the spreadsheet, but highlights all cells in the column when I try and plug it into conditional format. Also there is nothing to remove highlight from blank cells.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Use a formula in the conditional formatting. Something like (with the cursor in F45) --
Code:
=AND(F45 > $F$7,F45 < $F$8,NOT(ISBLANK(F45)))

Denis
 
Upvote 0
Same issue I was having. Here is part of the sheet if it helps.
Excel Workbook
F
78.00
89.00
90.94
101.06
118.36
128.70
138.04
149.20
150.49
160.67
178.39
188.66
190.27
20Value
218.16
228.53
238.30
249.04
258.04
26
27
28
29
12070
Excel 2010
Cell Formulas
RangeFormula
F9=F7/F1
F10=F8/F1
F11=F1*98%
F12=F1*102%
F13=MINA(F21:F1004)
F14=MAXA(F21:F1004)
F15=F1-F13
F16=F14-F1
F17=QUARTILE(F21:F1004,1)
F18=QUARTILE(F21:F1004,3)
F19=F18-F17


If it makes a difference, Cells F20:F10000 are set in a table and are the only cells I want formatted. but however I draw up a formula, it seems to act differently inside and outside the table.
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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