count if statements not working
I'm trying to get my countif statements to work. I need to count multiple dept IDs in one column, and pulling information from multiple sheets into one dashboard.
In one column, the countif statement IS working and returning a calculated number. It looks like this: =COUNTIF({Age 65 and over Range 1}, ="362") + COUNTIF({Age 65 and over Range 1}, ="357") + COUNTIF({Age 65 and over Range 1}, ="366") + COUNTIF({Age 65 and over Range 1}, ="376") + COUNTIF({Age 65 and over Range 1}, ="379") + COUNTIF({Age 65 and over Range 1}, ="388")
In the same sheet, I'm trying to pull from another sheet similar information, and is NOT working. The results are calculating, but coming back 0: =COUNTIF({Employee Absence Tracking Range 1}, ="357") + COUNTIF({Employee Absence Tracking Range 1}, ="362") + COUNTIF({Employee Absence Tracking Range 1}, ="366") + COUNTIF({Employee Absence Tracking Range 1}, ="376") + COUNTIF({Employee Absence Tracking Range 1}, ="379") + COUNTIF({Employee Absence Tracking Range 1}, ="388")
What am I doing wrong?
Best Answer
-
Hi @Kasey Bernard,
Your formula looks correct in syntax. I'd recommend double-checking the cross-sheet references (by selecting "Edit Reference") to make sure the column containing these criteria is selected. If you don't see the column outlined in blue when you select "Edit reference", you may want to delete and recreate the references instead of editing them.
I hope this helps!
Answers
-
Hi @Kasey Bernard,
Your formula looks correct in syntax. I'd recommend double-checking the cross-sheet references (by selecting "Edit Reference") to make sure the column containing these criteria is selected. If you don't see the column outlined in blue when you select "Edit reference", you may want to delete and recreate the references instead of editing them.
I hope this helps!
-
Thank you @Alejandra, I was able to get it to work!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!