Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Checking for just spaces
In conditionally formating I want to check if the cell has just spaces
I used the following logic if the length of the cell is greater than zero (multiply) if the length of the trimmed cell = 0. if both of these conditions are true - turn the cell red - otherwise leave alone. This works - however is there an easier way to do this? |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Checking for just spaces
Try this is your conditional format
=AND(LEN(B15)0,LEN(TRIM(B15))=0) I selected B15 and put a couple of spaces in it. "Brad" wrote: In conditionally formating I want to check if the cell has just spaces I used the following logic if the length of the cell is greater than zero (multiply) if the length of the trimmed cell = 0. if both of these conditions are true - turn the cell red - otherwise leave alone. This works - however is there an easier way to do this? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Checking for just spaces
Or (dropping the len() bit):
=AND(LEN(B15)0,TRIM(B15)="") Barb Reinhardt wrote: Try this is your conditional format =AND(LEN(B15)0,LEN(TRIM(B15))=0) I selected B15 and put a couple of spaces in it. "Brad" wrote: In conditionally formating I want to check if the cell has just spaces I used the following logic if the length of the cell is greater than zero (multiply) if the length of the trimmed cell = 0. if both of these conditions are true - turn the cell red - otherwise leave alone. This works - however is there an easier way to do this? -- Dave Peterson |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Checking for just spaces
Barb,
Thanks - That works and is essentially what I did - I compared the =(AND(LEN(B15)0,LEN(TRIM(B15))=0)*1)=1 - your way is slightly easier. However, is there an easier way of doing this?? "Barb Reinhardt" wrote: Try this is your conditional format =AND(LEN(B15)0,LEN(TRIM(B15))=0) I selected B15 and put a couple of spaces in it. "Brad" wrote: In conditionally formating I want to check if the cell has just spaces I used the following logic if the length of the cell is greater than zero (multiply) if the length of the trimmed cell = 0. if both of these conditions are true - turn the cell red - otherwise leave alone. This works - however is there an easier way to do this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Remove trailing spaces from multiple columns in Excel | Excel Worksheet Functions | |||
Deleting blank spaces in cells | Excel Discussion (Misc queries) | |||
Add spaces for specific fields to paste in | Excel Discussion (Misc queries) | |||
how do I remove empty spaces trailing a text string? | Excel Worksheet Functions | |||
Stripping out imbedded spaces in a cell/row | Excel Worksheet Functions |