Countif for multiple columns
I am trying to count a score for multiple columns in a smartsheet summary. For some reason, it is only counting the first column if I use this:
=COUNTIF([Educational Background]:[Educational Background], COUNTIF([Prior Work Experience]:[Prior Work Experience]) = 5)
If I put the extra ) at the end, it makes it unparseable.
I'm not sure what I am doing wrong.
Answers
-
Are you trying to use two criteria to filter your count so that it only counts the number of instances that there are 5s in each column? If so, that formula would be:
=countifs([Educational Background]:[Educational Background], =5, [Prior Work Experience]:[Prior Work Experience], =5)
If you're just wanting to add up the total score for the two columns:
=sum([educational background]@row, [prior work experience]@row)
If you only want to sum scores where PWE=5, try
=if([Prior Work Experience]@row=5, sum([educational background]@row, [prior work experience]@row),"")
If I missed the mark, let me know.
-
Thank you for your help!
I tried your first solution, and it does count them, but the number is wrong. It was saying 17 and there are more than that in just one column.
I did find something online and it seems to be working well. (I added another column) =COUNTIF([Educational Background]:[Overall Impression and Recommendation], =5)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!