countif
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
Best Answer
-
Try doing it with a helper column. Such as this:
1st formula in the [3 hours saved] column:
=IF(CONTAINS(">3 hours saved", [Primary Column]@row), "Yes", "No")
2nd formula in the [3 Hours Saved Count] column:
=COUNTIF([3 hours saved]:[3 hours saved], "Yes")
You can hide the helper column if needed.
Answers
-
Try doing it with a helper column. Such as this:
1st formula in the [3 hours saved] column:
=IF(CONTAINS(">3 hours saved", [Primary Column]@row), "Yes", "No")
2nd formula in the [3 Hours Saved Count] column:
=COUNTIF([3 hours saved]:[3 hours saved], "Yes")
You can hide the helper column if needed.
-
Thank you for your help and idea Matt
I just replaced the signs with less and more than this time.
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!