Countifs formula

manoj_arsul

Board Regular
Joined
Jun 27, 2018
Messages
61
Hi
I want program for below formula

=SUM(COUNTIFS(Data!A:A,{"Assigned","Pending","Pending - Not Assigned"},S:S,"="&TODAY()))
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Sorry, this doesn't give much information.

Please could you describe your speadsheet and what you wish it to do?
 
Upvote 0
Sorry, this doesn't give much information.

Please could you describe your speadsheet and what you wish it to do?
Hi @GazNicki


Thanks for replying

It is the formula for count of cell in column for below condition
1. Filter A for Assigned pending & Pending - Not assigned
2. Filter for S coloumn for today (date)

Out Put : Count of cell in column (one)
 
Upvote 0
If you want to run this formula by means of a vba code, says so. Otherwise, you need to explain what issue you have with it, double counding perhaps?
 
Upvote 0
Hello try:

=SUM(COUNTIFS(Data!A:A,{"Assigned";"Pending";"Pending - Not Assigned"},S:S,TODAY()))
 
Upvote 0
Hello try:

=SUM(COUNTIFS(Data!A:A,{"Assigned";"Pending";"Pending - Not Assigned"},S:S,TODAY()))

Hello Aladin,

I think the issue was the use of the comma versus the semicolon. I got that from one of your posts, and I don't really understand in these cases when you use a comma or a semicolon, I believe I have see you use both in the same formula. Can you explain when you use which?

Thanks
 
Upvote 0
Hello Aladin,

I think the issue was the use of the comma versus the semicolon. I got that from one of your posts, and I don't really understand in these cases when you use a comma or a semicolon, I believe I have see you use both in the same formula. Can you explain when you use which?

Thanks

That issue arises when we have 2 sets of multiple value conditions, not when we have 1 set as here.

The OP references column A of the sheet Data, while column S of the formula sheet. This could be the problem.


Book1
AST
1
23
3assigned7/24/2018
47/24/2018
5pending7/23/2018
6Pending - Not Assigned7/24/2018
7assigned7/24/2018
8
9
Data


In T2 I have:

=SUM(COUNTIFS(Data!A:A,{"Assigned","Pending","Pending - Not Assigned"},Data!S:S,"="&TODAY()))

All column references are to Data.

If you replace the formula with one figuring semi-colon in-between { and }, we would get the same result.
 
Upvote 0
Okay, the first time I tried the formula with the commas itwasn’t working, now the formula appears to be working whether I use a comma ora semicolon. So as I understand it, the original formula posted by the OP, should work.

Edit - I see you addressed this above Aladin, Thanks
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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