Using Countifs, but column name has 2 words + Count will not work if 2 Items Exist in same cell
I'm trying to count how many rows with "XYZ Weekly" in a column called "Item Type" that have "Open" in a column called "Status":
Item Type column has a Dropdown list: XYZ Weekly, ABC Daily, Agenda
Status column has a Dropdown list: Open, Closed, On-Hold
This is the formual I'm trying to use:
=COUNTIFS(Item Type:Item Type, "XYZ Weekly", Status:Status, "Open")
I get UNPARSABLE unless I rename the column to "ItemType" (removing the space, also from the formula)
Q1. Must I remove the space, I would prefer not too?
Also, the count does not work, if XYZ Weekly & Agenda are present in the same cell of "Item Type".
Q2. Is there a way to count if XYZ Weekly is present, regardless of any other content in the cell?
Thanks in advance for any assistance 😎
Best Answer
-
Hi @JamesS !
Sorry about that, I messed up the range at the beginning! I was rushing writing the formula between meetings. Try this instead:
=COUNTIFS([Item Type]:[Item Type], HAS(@cell, "GDS Weekly), Status:Status, "Open")
Ashley Knight
Answers
-
Hi @JamesS !
When your columns have a space, format your formula with brackets around the column name. It would look like :
=COUNTIFS([Item Type]:[Item Type], "XYZ Weekly", Status:Status, "Open")
Because the dropdown in item type is multiselect, you will need to include HAS because the formula will need to look for one item among a list of items.
I would try for your final formula:
=COUNTIFS(HAS([Item Type]:[Item Type], "XYZ Weekly"), Status:Status, "Open")
Hope this helps! Let me know if your column type is different than what I assumed and I can help accordingly fix the formula.
Ashley Knight
-
Hi @AKnight ,
Solved the column with a space issue - thank you 😊
But I'm getting error #INCORRECT ARGUMENT SET when I use the following:
=COUNTIFS(HAS([Item Type]:[Item Type], "GDS Weekly"), Status:Status, "Open")
Any thoughts?
-
Hi @JamesS !
Sorry about that, I messed up the range at the beginning! I was rushing writing the formula between meetings. Try this instead:
=COUNTIFS([Item Type]:[Item Type], HAS(@cell, "GDS Weekly), Status:Status, "Open")
Ashley Knight
-
Thanks @AKnight
That work nicely 😊👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 444 Global Discussions
- 142 Industry Talk
- 473 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!