countif with > or < signs
Hi,
I would like to count the number of ">3 hours saved" using the countif function. However, it is not working.
I am writing the formula as follows: =countif(range, ">3 hours saved")
the same issue with "<1 hour saved". Apparently adding the < or > signs is affecting the formula.
Any suggestions please? I should mention I tried adding { } or [ ] around "[>3 hours saved]" still did not work.
Thank you in advance
Answers
-
Hi @Nabil Hayek,
You could use the CONTAINS function to achieve this. The formula would look like this
=COUNTIF(range, (CONTAINS("3 hours", @cell)))
More information on the CONTAINS function: https://help.smartsheet.com/function/contains
I hope this helps.
-
Thank you Summer for the tip
I just replaced the signs with words for now.
Have a good day
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!