Countifs

Barakzai

New Member
Joined
Jun 23, 2024
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello, I'm using the below sumifs formula in my data which's working perfectly, but the same way when I use the countifs it gives me an error and tells me "too few arguments" can you assist me please,

SUMIFS(Sheet2!C:C;Sheet2!B:B;">="&C3;Sheet2!B:B;"<="&Sheet1!C4;Sheet2!A:A;Sheet1!D2)
 

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.
Hello - on the COUNTIFS formula, it's criteria range, followed by criteria 1 indicated by a comma and then repeated, criteria 2 etc. Eg say you had a list of info;

Date. Amount
01/07/24. 100
08/07/24. 200
15/07/24. 300
22/07/24. 350
29/07/24. 425

Let's say you wanted to count the entries between the following and a condition over sales of 200

Start Date 01/07/24
End Date 29/07/24
Sales. >200

=COUNTIFS(Date Range, ">="&Start Date, Date Range, "<="&End Date, Sales Range, ">200"). This would give 3 in this example.

Hope this helps
 
Upvote 0
Solution
Hello, just to mention that if you wanted to hard code the cell so in the above example you just want to reference whatever number you put in, in the above being say 200, after sales range, just enter, ">"&Cell With Number In and this produces the same result.
 
Upvote 0
How about
Excel Formula:
=countifs(Sheet2!B:B;">="&C3;Sheet2!B:B;"<="&Sheet1!C4;Sheet2!A:A;Sheet1!D2)
 
Upvote 0
Hello - on the COUNTIFS formula, it's criteria range, followed by criteria 1 indicated by a comma and then repeated, criteria 2 etc. Eg say you had a list of info;

Date. Amount
01/07/24. 100
08/07/24. 200
15/07/24. 300
22/07/24. 350
29/07/24. 425

Let's say you wanted to count the entries between the following and a condition over sales of 200

Start Date 01/07/24
End Date 29/07/24
Sales. >200

=COUNTIFS(Date Range, ">="&Start Date, Date Range, "<="&End Date, Sales Range, ">200"). This would give 3 in this example.

Hope this helps
Perfect, Thanks!!
 
Upvote 0
Perfect, Thanks!!

The marked solution has been changed accordingly. In your future questions, please mark the post as the solution that actually answered your question, instead of your feedback message as it will help future readers. No further action is required for this thread.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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