How to use countif with more than 3 ranges?

CANNONT4

New Member
Joined
Jan 6, 2021
Messages
17
Office Version
  1. 365
Platform
  1. MacOS
Hi there,

I am trying to count how many times "2b" appears in 9 seperate ranges, like this for example:

=COUNTIF(H4:H19,J4:J19,L4:L19,N4:N19,N4:N19,P4:P19,R4:R19,T4:T19,V4:V19,X4:X19"2b")

It says I have too many arguments and would appear to allow me to count up to only 3 data ranges. Any ideas how to fix this?

Many thanks,

Tom.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Try this

Book1
ABCDEFGHIJ
22B123456789
362B2B2B2B2B2B2B2B2B
42B2B2B2B2B2B2B2B2B
52B2B2B2B2B2B2B2B2B
62B2B2B2B2B2B2B2B2B
72B2B2B2B2B2B2B2B2B
82B2B2B2B2B2B2B2B2B
Sheet1
Cell Formulas
RangeFormula
A3A3=COUNTIFS(B:B,$A$2,$C:$C,$A$2,$D:$D,$A$2,$E:$E,$A$2,$F:$F,$A$2,$G:$G,$A$2,$H:$H,$A$2,$I:$I,$A$2,$J:$J,$A$2)
 
Upvote 0
Cheers for the input, however I really am a novice and I can't get my head around that! I've now tried:

=COUNTIFS(H4:H19,"2b",J4:J119,"2b",L4:L19,"2b",N4:N19,"2b")

and its coming up with #value! error.

I am lost.
 
Upvote 0
Here's my sheet, this formula is now not throwing up an error but is just displaying 0, when there are clear '2b's in the cells.
 

Attachments

  • Screenshot 2021-09-11 at 09.26.47.png
    Screenshot 2021-09-11 at 09.26.47.png
    182.8 KB · Views: 3
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

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