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
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!