Complex COUNTIFS and IF Function
Hello,
I need help putting together a function that can count certain cells in my grid. The inputs of the function are the following:
- If Beta is "Yes", it should be counted twice
- If Beta is "No", it should be counted once
- But if the Primary Region Column is not checked, the row should not be counted at all.
Beta is a column with only yes or no selectable answers, Primary Region is another column that is a checkbox.
I need the total sum of how this is added up after these inputs are accounted for, is this doable?
Best Answer
-
=COUNTIFS([Regional Beta Platform Created]:[Regional Beta Platform Created], "Yes", [Primary Region]:[Primary Region], 1) * 2 + COUNTIFS([Regional Beta Platform Created]:[Regional Beta Platform Created], "No", [Primary Region]:[Primary Region], 1)
What about the [Primary Region] column name?
Can you copy/paste the formula directly from the sheet? There are a lot of different reasons why you could be getting that area. Another option would be to provide a screenshot of the formula in the sheet similar to below:
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Try something like this...
=COUNTIFS(Beta:Beta, "Yes", [Primary Region]:[Primary Region], 1) * 2 + COUNTIFS(Beta:Beta, "No", [Primary Region]:[Primary Region], 1)
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Hey Paul,
Thank you, I understand the logic of this function and it seems like it should work, but I am getting an "#UNPARSEABLE" error, is there something we could be missing?
This function is living in a Sheet Summary field, is that an issue?
-
Can you copy/paste the formula directly from the sheet?
Depending on your region, you may also need to swap out the commas for semi-colons.
=COUNTIFS(Beta:Beta; "Yes"; [Primary Region]:[Primary Region]; 1) * 2 + COUNTIFS(Beta:Beta; "No"; [Primary Region]:[Primary Region]; 1)
Also double check to make sure the column names are correct.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
No luck with commas or semi-colons, on my sheet Beta is actually called "Regional Beta Platform Created", but I've been updating your formulas accordingly.
I am also in the US, is there a way we can get on the phone?
-
=COUNTIFS([Regional Beta Platform Created]:[Regional Beta Platform Created], "Yes", [Primary Region]:[Primary Region], 1) * 2 + COUNTIFS([Regional Beta Platform Created]:[Regional Beta Platform Created], "No", [Primary Region]:[Primary Region], 1)
What about the [Primary Region] column name?
Can you copy/paste the formula directly from the sheet? There are a lot of different reasons why you could be getting that area. Another option would be to provide a screenshot of the formula in the sheet similar to below:
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
That worked! Thank you!!!
-
Happy to help! ποΈ
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.7K Get Help
- 371 Global Discussions
- 203 Industry Talk
- 436 Announcements
- 4.5K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 129 Community Job Board
- 448 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 282 Events
- 32 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!