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
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 462 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 144 Just for fun
- 59 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!