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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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