How to make a complete non-blank criteria?

prabha_friend

Board Regular
Joined
Jun 28, 2011
Messages
95
Hi,
I need to build a complete non-blank criteria in an advanced filter. I know <> will give me all non-blanks (skipping pure blank cells). But as you see in the auto-filter criteria "Blanks" will also give the impure blanks (i.e cells containing only a space/spaces as thier value). How to build a criteria to not show both pure blanks and impure blanks?
Example,
Name
<>
<>
The above criteria is not working...
I want something like this:
Name
<>
=IF(LEN(B2)=1,B2<>" ")
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi Prabha,

Have you tried Trim ?

something like

=IF(TRIM(B2)="","Blank","Not Blank")
 
Upvote 0
Hi vds,
I tried giving the criteria =IF(Trim(B2)="","<> "). Not skipping the impure blank cells :(
Regards,
Prabhakaran
 
Upvote 0
Hi Prabha,

This must be char(160) space.. Try the below formula

=IF(TRIM(SUBSTITUTE(B2,CHAR(160),""))="","Blank","Not Blank")

Can you copy paste the content of cell B2 including that space ?
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

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