CountIf Formula with And
Hi,
I'm trying to write a formula to count the number of facilities (rows) with the following conditions:
1) Exec is Sara
2) Level is Integrated
3) Kick-off is Yes
4) MSA is Yes
5) Users is Yes
6) On Hold is not checked
7) Opted Out is not checked
Would it be easiest to do an AND formula for Count If? I keep getting an Error on my formula and can't figure it out 😑
Made a mock-up really quick for a visual:
Best Answers
-
@Taylar LaBonte Good morning. A countif formula is inherently an "And" formula. All range-criteria pairs must be true for it to return a number. Your formula should look like this
=countifs(Exec:Exec, "Sara", Level:Level, "Integrated", [Kick-off]:[Kick-Off], "Yes", MSA:MSA, "Yes", Users:Users,"Yes",[On Hold]:[On Hold], 0, [Opted Out]:[Opted Out], 0)
If you are doing this formula on a different sheet, you will need to use cross sheet references, and then replace your cross sheet reference range in the proper places, so if create a cross sheet reference called "Exec" you would replace Exec:Exec in the formula with {Exec}
-
Hi @Taylar LaBonte ,
I tested out your issue and here is the solution for you :)
=COUNTIFS(Exec@row, "Sara", Level@row, "Integrated", [Kick-off]@row, "Yes", MSA@row, "Yes", Users@row, "Yes", [On hold]@row, 1, [Opted Out]@row, 1)
Hope this helps!
Cheers!
Ipshita
Ipshita Mukherjee
Answers
-
@Taylar LaBonte Good morning. A countif formula is inherently an "And" formula. All range-criteria pairs must be true for it to return a number. Your formula should look like this
=countifs(Exec:Exec, "Sara", Level:Level, "Integrated", [Kick-off]:[Kick-Off], "Yes", MSA:MSA, "Yes", Users:Users,"Yes",[On Hold]:[On Hold], 0, [Opted Out]:[Opted Out], 0)
If you are doing this formula on a different sheet, you will need to use cross sheet references, and then replace your cross sheet reference range in the proper places, so if create a cross sheet reference called "Exec" you would replace Exec:Exec in the formula with {Exec}
-
@Samuel Mueller Your response was SO fast - thank you so much! The formula worked!
I really appreciate your assistance - I've been struggling far too long trying to figure it out.
Have a great day!
-
Happy to help! Have great day as well 😀
-
Hi @Taylar LaBonte ,
I tested out your issue and here is the solution for you :)
=COUNTIFS(Exec@row, "Sara", Level@row, "Integrated", [Kick-off]@row, "Yes", MSA@row, "Yes", Users@row, "Yes", [On hold]@row, 1, [Opted Out]@row, 1)
Hope this helps!
Cheers!
Ipshita
Ipshita Mukherjee
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!