COINTIFS question

John_Whin

Board Regular
Joined
Feb 26, 2013
Messages
78
Platform
  1. Windows
I've got this formula

=COUNTIFS('Scoring Input'!F:F,"NSH",'Scoring Input'!C:C,J25)

instead of looking for "NSH" I want it to countifs NOT "NSH"

There are 3 characters in each cell in the column 'Scoring Input'!F:F , so whether it is "MIN", "WPG" "CAR" etc I want it to sum all of those excluding "NSH".

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
How about
=COUNTIFS('Scoring Input'!F:F,"<>NSH",'Scoring Input'!C:C,J25)
Or, if you want to avoid blanks
=COUNTIFS('Scoring Input'!F:F,"<>NSH",'Scoring Input'!F:F,"?*",'Scoring Input'!C:C,J25)
 
Last edited:
Upvote 0
Hi,

2 things...

1. If you use Entire Column references, you'll Probably get erroneous results using this:

=COUNTIFS('Scoring Input'!F:F,"NSH",'Scoring Input'!C:C,J25)

So, you'll need to use Actual ranges (The actual size of your data), instead of F:F, and C:C

2. Or, you can SUM the other COUNTs, like this:

=SUM(COUNTIFS('Scoring Input'!F:F,{"MIN","WPG","CAR"},'Scoring Input'!C:C,J25))

Edit: Reason regarding point 1 above, Excel has 1048576 rows, unless your Column A is Completely filled with data, method 1 above using Entire column references will Also count the Blanks.
 
Last edited:
Upvote 0
Hi,

2 things...

1. If you use Entire Column references, you'll Probably get erroneous results using this:

=COUNTIFS('Scoring Input'!F:F,"NSH",'Scoring Input'!C:C,J25)

So, you'll need to use Actual ranges (The actual size of your data), instead of F:F, and C:C

2. Or, you can SUM the other COUNTs, like this:

=SUM(COUNTIFS('Scoring Input'!F:F,{"MIN","WPG","CAR"},'Scoring Input'!C:C,J25))

Edit: Reason regarding point 1 above, Excel has 1048576 rows, unless your Column A is Completely filled with data, method 1 above using Entire column references will Also count the Blanks.

Too late to edit, for Point 1 above I meant don't use this:

=COUNTIFS('Scoring Input'!F:F,"<>NSH",'Scoring Input'!C:C,J25)
 
Upvote 0
Thanks Fluff et al. I had tried =COUNTIFS('Scoring Input'!F:F,<>"NSH",'Scoring Input'!C:C,J25)
instead of
=COUNTIFS('Scoring Input'!F:F,"<>NSH",'Scoring Input'!C:C,J25)

I'm good now
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0
Are you Sure you're getting the correct result using entire column references ?

Anything that's Not NSH will get counted...including EMPTY and "" (formula blank) cells...
 
Upvote 0
Anything that's Not NSH will get counted...including EMPTY and "" (formula blank) cells...
That willonly happen if the relevant row in col C = the value in J25
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,821
Members
449,049
Latest member
cybersurfer5000

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