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
 
If I go down to row 74 =COUNTIF(Data!J2:J74,"<>*Void*")

it returns 66 which is correct

<tbody>
</tbody>

COUNTIFS functions as AND rather than OR, since the COUNTIF formula alone returns the right answer, then its possible there are no cells that meet ALL the conditions in the COUNTIFS #Just thinking
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
They are simply Data H:H is column with sales persons name
All dates B3 is the name I want to find in column
Data I:I is Lead source
All Dates C2 is the lead source I want to select from the column
Data F:F is the month of the lead column
Month select 1 is the month that I need to select from the column.

I cant see anything wrong with it and it returns the correct result until I add the Void bit.
 
Upvote 0
No that is not the case
the return gives my the number of leads from a particular source for a particular sales person in a particular month. 0 would assume that all for every person have been voids

This is definitely not the case
 
Upvote 0
I have looked it is crazy. I checked but nothing.
If there were spaces in the other criteria other than voids it would fail before adding voids

and if status column had spaces it wouldnt return the correct result when I run just that formula....

but as I said I have also checked

would It help if I emailed you it?
 
Upvote 0
I have looked it is crazy. I checked but nothing.
If there were spaces in the other criteria other than voids it would fail before adding voids

and if status column had spaces it wouldnt return the correct result when I run just that formula....

but as I said I have also checked

would It help if I emailed you it?

You could post 5 rows from each relevant range and state what the outcome would be...
 
Upvote 0
You could post 5 rows from each relevant range and state what the outcome would be...


Opportunity No.Type of businessBusiness Sub CategoryOpportunity DateMonthEstimated TotalSalesPersonOpportunityReasonOpportunity StatusModified ByModify DateNext Contact date
TCO62197Private CompanySME Misc12/08/2014 12:59Aug1580Christiann PawsonInternet/Google PhoneQuote CreatedChristiann Pawson12/08/2014 13:1122/08/2014 10:00
TCO62196IndividualCommercial12/08/2014 12:52Aug30Michael MilhamInternet/Google PhoneSale CompletedMichael Milham12/08/2014 13:11Sales Tab
TCO62195Private Company12/08/2014 12:49Aug0adminInternet/Google PhoneNewadmin12/08/2014 12:49
TCO62194Private CompanyConstruction12/08/2014 12:47Aug590Josh EmenyInternet/Google PhoneQuote CreatedJosh Emeny12/08/2014 12:5312/08/2014 13:53
TCO62193
Private CompanySME Misc12/08/2014 12:42Aug790Del PaddaInternet/Google PhoneQuote CreatedDel Padda12/08/2014 12:5912/08/2014 14:00




<colgroup><col style="mso-width-source:userset;mso-width-alt:3986;width:82pt" width="109"> <col style="width:48pt" span="2" width="64"> <col style="mso-width-source:userset;mso-width-alt:4242;width:87pt" width="116"> <col style="width:48pt" span="3" width="64"> <col style="mso-width-source:userset;mso-width-alt:9508;width:195pt" width="260"> <col style="mso-width-source:userset;mso-width-alt:4608;width:95pt" width="126"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:4059;width:83pt" width="111"> <col style="mso-width-source:userset;mso-width-alt:10898;width:224pt" width="298"> </colgroup><tbody>
</tbody>
Trying to select where month is = to a set month
Sales person is = to specisied person
Opportunity reason is a specified reason
and opp status is not Void or possible void

Hope this is clear
 
Upvote 0

Forum statistics

Threads
1,216,086
Messages
6,128,736
Members
449,466
Latest member
Peter Juhnke

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