COUNTIFS - Too Many Arguments

ApriltheVA

New Member
Joined
Apr 24, 2020
Messages
10
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
I thought I understood the formula but I keep getting this error.

Goal:
1. Count the number of "Admission" in Column B, only if Column J says "Vent"
2. Count the number of "Discharge" in column B, only if column J says "Vent"

current formula: =COUNTIFS(B5:B28,"ADMISSION", J5:J28,"VENT")

I attached a link to a sample template

I do hope someone can help. Thanks.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
That formula looks fine and works in the workbook you linked to.

The only problem in that workbook is a circular reference in B50.
 
Upvote 0
Hi & welcome to MrExcel.
Where are you trying to put the formula?
If I put it in B50 I get 5 & if I extend the range to cover the data I get 10
 
Upvote 0
Hi & welcome to MrExcel.
Where are you trying to put the formula?
If I put it in B50 I get 5 & if I extend the range to cover the data I get 10

The formula would go at the bottom of the spreadsheet. The formula is for the entire spreadsheet.
 
Upvote 0
First you need to delete the contents of B50 as it's causing a circular reference, as pointed out by Norie.
Then put the formula in whatever cell you want, there is nothing wrong with it.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
First you need to delete the contents of B50 as it's causing a circular reference, as pointed out by Norie.
Then put the formula in whatever cell you want, there is nothing wrong with it.

The cells with VENT/WEANED aren't counted. How do I include this into the formula?
 
Upvote 0
What do you mean?

I didn't put the entire spreadsheet only half, so you didn't see it.
The formula counted the column B if column J says vent; however some cells in column J says

Here is the same spreadsheet. I added those columns and put the formula at the bottom.
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,174
Members
449,071
Latest member
cdnMech

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