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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Iridium

Well-known Member
Joined
Jul 15, 2002
Messages
2,831
If I enter a number of spaces, the formaula 1 (isblank) fails.

Because the cell isn't really blank then although visually it appear so...
 

UHsoccer

Well-known Member
Joined
Apr 3, 2002
Messages
1,023

ADVERTISEMENT

It is not my spreadsheet, users enter them and I want to make sure that the condition is covered
 

Iridium

Well-known Member
Joined
Jul 15, 2002
Messages
2,831
What data is going ito J3? Perhaps you could consider using data validation to restrict what is entered into the cell...?
 

north19701

Active Member
Joined
Jun 17, 2003
Messages
491

ADVERTISEMENT

=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=LEN(A1),"yes","no")

you could use this to test if a cell only contains spaces.
 

plettieri

Well-known Member
Joined
Sep 4, 2002
Messages
1,556
Platform
  1. MacOS
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
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,490
Messages
5,764,667
Members
425,228
Latest member
Rashid mahmood

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
Top