Whats wrong with this formula?
I'm using this in a metric sheet to count the term in a sheet that has multiple entries per row from a drop down list. It currently produces the error message #INVALID OPERATION.
=COUNTIF({PH Roadmap Intake sheet Range 1}, CONTAINS([Primary Column]@row))
I was attempting to copy the one @Paul Newcome provided on 9/8/21 but somethign obviously (not to me) not correct.
Thanks
Answers
-
I hope you're well and safe!
Try something like this.
=COUNTIF({PH Roadmap Intake sheet Range 1}, CONTAINS([Primary Column]@row,@cell)
Did that work/help?
I hope that helps!
Be safe, and have a fantastic week!
Best,
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
✅Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!
SMARTSHEET EXPERT CONSULTANT & PARTNER
Andrée Starå | Workflow Consultant / CEO @ WORK BOLD
W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35
Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.
-
@Phil Wightman You just forgot the "range" in the CONTAINS function.
=COUNTIF({PH Roadmap Intake sheet Range 1}, CONTAINS([Primary Column]@row, @cell))
-
Thanks @Paul Newcome . Can I check what the 'range' =. EG is it the same ref as the first part of something else?
-
@Phil Wightman The "range" in the CONTAINS function is going to be "@cell". The @cell reference basically tells the formula to take the previously established range and evaluate it on a cell by cell basis.
So your formula is basically saying:
Count how many times each cell in the {PH Roadmap Intake sheet Range 1} range contains [Primary Column]@row.
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!