Conditional formatting - isblank option

UHsoccer

Well-known Member
Joined
Apr 3, 2002
Messages
1,023
When a cell is empty, the "isblank(A1)" formula works fine.
But
If I enter a number of spaces, the formaula 1 (isblank) fails.

Here are my curent condtions

1) Formula - =IsBlank(J3) then background Yellow

2) Cell Value is - not equal to - =("OK") then Red

3) Cell Value is - equal to - ="OK" then Green
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
It is not my spreadsheet, users enter them and I want to make sure that the condition is covered
 
Upvote 0
What data is going ito J3? Perhaps you could consider using data validation to restrict what is entered into the cell...?
 
Upvote 0
=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=LEN(A1),"yes","no")

you could use this to test if a cell only contains spaces.
 
Upvote 0
Hi:

Since you have cells with a variety of a quantity of "spaces", a thought would be to modify those cells and replace them with only one blank space (assuming the cells having multuiple spaces have no purpose)..

Then using partial of the condition formating for the cells containing blank cells to =" " (one space between the parens) to your desired formating.

hope this helps

plettieri
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,749
Members
448,989
Latest member
mariah3

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