Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Advanced Filter Function Exclude

Status
Not open for further replies.

Schlunggi

Electrical
Joined
Dec 30, 2009
Messages
3
Location
US
I am trying to exclude lines which only contain " - " Space,dash (Char 32),space. I have tried just about any combination with <> (not equal) but excel is ignoring it.
If I use ="= - " it will filter only these lines, but I can not exclude them. Has anybody a solution?
 
not able to open attached file . . . please try attaching file again using "STEP 3" in posting procedure.

Thanks!
-pmover
 
As pmover said, your file is inaccessible.

If your doing this with a macro, I'd do something like this:
1. Have a cell in your spreadsheet (e.g., A1)with " - "
2. In your macro make a variable refer to that cell (e.g., A$=Range("A1")
3. Have a condition when your data in a cell = A$

 
Have you tried ="<> - "
 
It seems like the ="<> - " gets rid of all, but one of the ones with just a dash. The one that it misses doesn't have the space after the dash.
 
Seems to work fine in Excel 2007. .

[link ]
btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Clyde's profile on LinkedIn
[/url]
 
Great, this is the solution. Yes, the one which is not filtered needs a space after the dash as all others do.

Thanks for the tip.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top