COUNTIFS to pull data from multiple columns
Hi everyone,
I'm running into an issue trying to count the number of times a word appears in a 10 column range (SCPD Log Range 9) in a one month period. I have a column that assigns the month its respective numerical value and the same for the year.
I'd expect this formula to look across all 10 columns and count how many times "Parking" appears if the month column also contains "1" and the year column also contains "2023".
I'm getting the #Incorrect Argument Set error. Any help would be appreciated!
=COUNTIFS({SCPD Log Range 9}, "Parking", {SCPD Log Range 3}, "1", {SCPD Log Range 4}, "2023")
Answers
-
That error is because your ranges are not the same size. All ranges within the same function must be of the same size/shape. You would either need to insert helper columns to replicate the month and year columns 9 more times each, or create 10 separate COUNTIFS (one for each of the 10 columns) and add them together.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 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!