Using COUNTIFS with CONTAINS
When I try to incorporate a CONTAINS into a COUNTSIFS i keep getting errors
Works fine: =COUNTIFS({JSA - Daily Job Start Safety Form Range 1}, Date@row, {JSA - Daily Job Start Safety Form Range 2}, $Date$1)
Incorporate CONTAINS : These are 2 i tried
=COUNTIFS({JSA - Daily Job Start Safety Form Range 1}, Date@row, {JSA - Daily Job Start Safety Form Range 2}, CONTAINS($Date$1, {JSA - Daily Job Start Safety Form Range 2}))
=COUNTIFS({JSA - Daily Job Start Safety Form Range 1}, Date@row, CONTAINS($Date$1,{JSA - Daily Job Start Safety Form Range 2}))
Try to achieve - FIRST: if Date = date on reference sheet AND Name Contains name on reference sheet, Then 1 else 0
Best Answer
-
You could try this:
=COUNTIFS({JSA - Daily Job Start Safety Form Range 1}, Date@row, {JSA - Daily Job Start Safety Form Range 2}, CONTAINS($Date$1,@cell))
Depending on the type column that is in the {JSA - Daily Job Start Safety Form Range 2} you may run into errors as Date is likely a Date type column and your range most likely a string/text. And contains works with strings of characters.
If that happen, could you provide a screenshot or two with dummy data to sort this out?
Answers
-
You could try this:
=COUNTIFS({JSA - Daily Job Start Safety Form Range 1}, Date@row, {JSA - Daily Job Start Safety Form Range 2}, CONTAINS($Date$1,@cell))
Depending on the type column that is in the {JSA - Daily Job Start Safety Form Range 2} you may run into errors as Date is likely a Date type column and your range most likely a string/text. And contains works with strings of characters.
If that happen, could you provide a screenshot or two with dummy data to sort this out?
-
That worked! Thank you!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!