I'm stumped by Advanced Filter Criteria not equal to syntax

logandiana

Board Regular
Joined
Feb 21, 2017
Messages
107
Please help!
In my range data I have data:
Column A like red, blue, green, etc.
Column B has data like In Stock Warehouse A, In Stock Warehouse B, Out of Stock, etc.
Column C has account numbers stored as text like '12345, '12346, '12347, etc.

For my range criteria I have:

column A red
column B in stock?
column C <>12346

For the result:
I am getting everything red and in stock as expected, but the criteria in column C is not working and is returning all account numbers
I've tried
<>12346
<>'12346
="<>12346"
="<>'12346"
="<>"&"12346"
="<>"&"'12346"
I either get back no results or results that DO include account 12346

In my criteria for column C if I use just 12346 (to include it) then I do indeed get the 1 record back in the results.
But I can't figure out the proper syntax to exclude a number formatted as text.


Thanks
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Use a formula as criteria. This worked for me

Data including headers in A6:C13
Criteria Range = A1:C2
Observe that cell C1 must be empty or contain something other than field names (i used Formula)
Formula in C2
=C7<>"12346"
(VERDADEIRO in Portuguese = TRUE in English)

Before filter
Pasta1
ABC
1ColorStockFormula
2RedIn StockVERDADEIRO
3
4
5
6ColorStockAccount
7RedIn Stock Warehouse A12345
8BlueOut of stock12347
9RedIn Stock Warehouse B12346
10RedIn Stock Warehouse A12346
11RedIn Stock Warehouse C12348
12GreenOut of stock12349
13RedOut of stock123410
Plan2


After Advanced Filter
Pasta1
ABC
1ColorStockFormula
2RedIn StockVERDADEIRO
3
4
5
6ColorStockAccount
7RedIn Stock Warehouse A12345
11RedIn Stock Warehouse C12348
14
Plan2


Hope this helps

M.
 
Upvote 0
This isn't working for me.
I wouldn't mention that my range data is in a separate workbook and my account column does not appear as a column in my output (I want to filter them out, but not display them)
I don't know if this matters or not, but the method above is not working for me.
It's still pulling in results which contain 12346
Does it have anything to do with the formatting of the cells or that the number is formatted as text.?
Still stumped
 
Upvote 0
Are the data on a different Workbook? Or on a different Worksheet but in the same Workbook?
I'm not understanding what you need...
Maybe someone else can help you..

M.
 
Upvote 0
Nevermind, I got it working. When referencing the other sheet it picked it up as $N$2. Took a bit, but figured out to remove the second $ to make $N2. Works well now.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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