"not equals to" problem

bharnett

Board Regular
Joined
Aug 5, 2004
Messages
94
I have a query that pulls data from a large table of trades. One of the fields in this table is "Status Flag." It shows a "C" when the has been cancelled. I want the query to include only records without this "C". I put <> "C" in the Criteria field in design view, but this didn't work and returned no results. I put = "C" in the Criteria field, and this showed me the two trades that are cancelled, but nothing else. So I know it is reading the "C" correctly, but I have no idea how to exclude it. I also tried using the "Not" operator to get this to work but with the same result. How does this work? I can't get it to just show me the active deals only.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
What are the other options this flag can be (other than "C")? Can it be blank?

Are you sure you do not have any other criteria (on other fields) that may be interfering with your testing?
 
Upvote 0
Try using Is Null as your criteria.
 
Upvote 0

Forum statistics

Threads
1,203,047
Messages
6,053,197
Members
444,645
Latest member
mee siam

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