Need Help with Invalid Operation
I'm getting Invalid Operation with this formula since the division equation is dividing by zero. How do I fix this so that it shows like "0 of 0 (0%)". If this isn't possible then I'd like to have "Not Yet Started" as the text entered.
=COUNTIF(CHILDREN(), >0) + " of " + [Clock In Location]@row + " (" + (ROUND(COUNTIF(CHILDREN(), >0) / (COUNT(CHILDREN([Clock In Location]1)) / 100)) + "%)" + "")
Answers
-
You would want to incorporate an IFERROR like so...
=COUNTIF(CHILDREN(), >0) + " of " + [Clock In Location]@row + " (" + IFERROR((ROUND(COUNTIF(CHILDREN(), >0) / (COUNT(CHILDREN([Clock In Location]1)) / 100)), 0) + "%)" + "")
-
Thanks for the response. I'm getting UNPARSEABLE with your formula. I'm not great with formulas so it's hard for me to tell where it's wrong.
-
Are you able to provide a screenshot of the formula in the sheet similar to the screenshot below?
-
My apologies. I was so focused on including the IFERROR that I didn't check the rest of the formula for syntax. Give this a go.
=COUNTIF(CHILDREN(), >0) + " of " + [Clock In Location]@row + " (" + IFERROR(ROUND((COUNTIF(CHILDREN(), >0) / COUNT(CHILDREN([Clock In Location]1))) * 100), 0) + "%)"
-
That'll do it! Thank you for the help!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 149 Just for fun
- 70 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!