Countifs where a column doe not equal x

magpie2000k

Board Regular
Joined
Sep 13, 2013
Messages
196
Hi All I have read and read and tried and tried but cant get formula to work.

Basically the below is the written formula

=COUNTIFS(Data!$H:$H,'All Dates'!$B3,Data!$I:$I,'All Dates'!$C$2,Data!$F:$F,'Month select 1'!C16,Data!J:J,"<>Voided")

It all works but I need to exclude from the count Anywhere in column DATA!J:J where the entry is Voided or Possible Void

The formula when you remove that last criteria works and returns the correct number in the count but when I add the last criteria it returns 0 which is incorrect.

Please help
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Have you tried like this

=COUNTIFS(Data!$H:$H,'All Dates'!$B3,Data!$I:$I,'All Dates'!$C$2,Data!$F:$F,'Month select 1'!C16,Data!J:J,"<>" & "Voided")
 
Upvote 0
Does this...

=COUNTIFS(Data!$H:$H,'All Dates'!$B3,Data!$I:$I,'All Dates'!$C$2,Data!$F:$F,'Month select 1'!C16,Data!J:J,"<>*Void*")

succeed as intented?
 
Upvote 0
Hi All I have read and read and tried and tried but cant get formula to work.

Basically the below is the written formula

=COUNTIFS(Data!$H:$H,'All Dates'!$B3,Data!$I:$I,'All Dates'!$C$2,Data!$F:$F,'Month select 1'!C16,Data!J:J,"<>Voided")

It all works but I need to exclude from the count Anywhere in column DATA!J:J where the entry is Voided or Possible Void

Misread your request. I think the wildcard like aladin proposed is what you need
 
Upvote 0
Does this...

=COUNTIFS(Data!$H:$H,'All Dates'!$B3,Data!$I:$I,'All Dates'!$C$2,Data!$F:$F,'Month select 1'!C16,Data!J:J,"<>*Void*")

succeed as intented?

Hi No it returns Zeros in every instance. which is clearly wrong

It is doing my head in as I cant understand why
 
Upvote 0
Both options return a column full of zeros

The below is a sample of the data in Column J:J

Quote Created
Sale Completed
New
Quote Created
Quote Created
Quote Created
Sale Completed
New
Possible Void
Quote Created
Quote Created
Quote Created
Quote Created
Quote Created
Live
Possible Void
Quote Created
Quote Created
New
Quote Created
Live
Quote Created
Quote Created
Quote Created
Quote Created
Quote Created
Quote Created
Sale Completed
Possible Void
Quote Created
Quote Created
Live
Quote Created
Quote Created
Find Product
New
Sale Completed
Live
Quote Created
Quote Created
Live
Possible Void
Sale Completed
Sale Completed
Live
New
New
Sale Completed
Quote Created
Quote Created
New
Quote Created
New
Live
Possible Void
Quote Created
New
Quote Created
New
Quote Cancelled
Quote Created
Quote Created
Sale Completed
Quote Created
Quote Created
Quote Created
Quote Created
Quote Created
Quote Created
Quote Created
Possible Void
New
Voided
Sale Completed
Possible Void
Possible Void
Live
New
Live
Quote Created

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0
If I go down to row 74 =COUNTIF(Data!J2:J74,"<>*Void*")

it returns 66 which is correct

<TBODY>
</TBODY>

This result might mean that the other one or more conditions (in red) do not hold or incorrectly specified by you...

=COUNTIFS(Data!$H:$H,'All Dates'!$B3,Data!$I:$I,'All Dates'!$C$2,Data!$F:$F,'Month select 1'!C16,Data!J:J,"<>*Void*")
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,457
Members
449,083
Latest member
Ava19

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