Issue with CountIf not correctly calculating
Hello,
I am using the formula =COUNTIF(CHILDREN(), 1) + "" to count the total number of checked check boxes. However, The number displayed is 0 when I can clearly see the box is checked in that column.
For other columns it displays a number but not an accurate count of checked boxes within the column.
Is there a different formula I should be using?
Comments
-
Hi Katye,
Can you describe your process in more detail and maybe share the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@getdone.se)
Have a fantastic weekend!
Best,
Andrée Starå
Workflow Consultant @ Get Done Consulting
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Hi Andree,
The first attachment shows the amount of checked check boxes. The 2nd screen is what displays as the total. I have also validated that the parent child relationship, no discrepancies there.
-
Thanks!
The issue is that you can't have a COUNTIF formula in the checkbox column because the cells expect a BOOLEAN value (1 or 0). If you place it somewhere else and reference the parent cell of the Dave column in the sheet, it will work.
Hope that helps!
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Andree,
You can have a non-boolean value in a checkbox cell. That's what the + "" is for. It turns the result into a text string. I just tested and confirmed.
Katye,
The only thing I can think of is the hierarchy. Do you have multiple levels?
-
Paul,
Duh!
Yes, of course!
I missed the +””
Best,
Andrée
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
Thanks. By adding another column to perform the count, I was able to get accurate numbers.
Much obliged!
-
Haha. No worries. I almost didn't respond because I had missed it too and had noticed you were already helping. I closed the post then came back to it with a "Wait a minute!" moment.
-
The is in the details!
/A
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!