Countifs forumla
Hi, I am looking at doing a countifs forumla across 7 different sheets.
=countifs({spreadsheet 1}, "Green",{spreadsheet 2}, "Green",{spreadsheet 3}, "Green",{spreadsheet 4}, "Green",{spreadsheet 5}, "Green",{spreadsheet 6}, "Green",{spreadsheet 7}, "Green",)
Is this the correct formula? As it is not picking up the right amount - Thank you
Best Answer
-
Hi @ohoward,
The formula is trying to reconcile a case where all conditions are true at the same time, which is most likely why you are not getting the correct value.
Try something like this instead.
=COUNTIF({spreadsheet 1}, "Green") + COUNTIF({spreadsheet 2}, "Green") + COUNTIF({spreadsheet 3}, "Green") + COUNTIF({spreadsheet 4}, "Green") + COUNTIF({spreadsheet 5}, "Green") + COUNTIF({spreadsheet 6}, "Green") + COUNTIF({spreadsheet 7}, "Green")
Hope this helps,
Dave
Answers
-
Hello ohoward,
As far as I know, you cannot reference multiple sheets in a single function. Read this:
https://community.smartsheet.com/discussion/107877/can-you-reference-different-sheets-in-a-formula#:~:text=You%20cannot%20reference%20multiple%20sheets,single%20column%20references%20for%20example).
Could you elaborate a little more? Are you expecting back a number? You could pull back the data into Helper columns and then add or count the data on the main sheet.
-
Hi @ohoward,
The formula is trying to reconcile a case where all conditions are true at the same time, which is most likely why you are not getting the correct value.
Try something like this instead.
=COUNTIF({spreadsheet 1}, "Green") + COUNTIF({spreadsheet 2}, "Green") + COUNTIF({spreadsheet 3}, "Green") + COUNTIF({spreadsheet 4}, "Green") + COUNTIF({spreadsheet 5}, "Green") + COUNTIF({spreadsheet 6}, "Green") + COUNTIF({spreadsheet 7}, "Green")
Hope this helps,
Dave
-
@DKazatsky2 It worked thank you so much
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!