KuraiChikara
Board Regular
- Joined
- Nov 16, 2016
- Messages
- 111
- Office Version
- 2013
- Platform
- Windows
Hello,
I am simply trying to use a COUNTIF function to find a lesser than or equal to result for time.
Example: I have the times 5:00 PM through 9:00 AM (descending) listed in column C. And lets say for testing purposes the exact same time frames in column B for the range.
This formula below will return a 1 if 5:00 PM is listed once in cells B2-B10.
=COUNTIF(B$2:B$10,C2)
However, if B3-B10 has the times 4:00 PM, 3:00 PM, 2:00 PM, 1:00 PM, 12:00 PM, 11:00 AM, 10:00 AM and 9:00 AM
with my less than or equal to formula returns a zero:
=COUNTIF(B$2:B$10,"<=C2")
I'm simply trying to yield the same results just by adding the less than or equal to function; 5:00 pm is less than or equal to 5:00 PM, I should get a 1. 12:00 PM is less than or equal to 5:00 PM, should yield a 1. So on and so forth.
But my formula returns 0.
I am simply trying to use a COUNTIF function to find a lesser than or equal to result for time.
Example: I have the times 5:00 PM through 9:00 AM (descending) listed in column C. And lets say for testing purposes the exact same time frames in column B for the range.
This formula below will return a 1 if 5:00 PM is listed once in cells B2-B10.
=COUNTIF(B$2:B$10,C2)
However, if B3-B10 has the times 4:00 PM, 3:00 PM, 2:00 PM, 1:00 PM, 12:00 PM, 11:00 AM, 10:00 AM and 9:00 AM
with my less than or equal to formula returns a zero:
=COUNTIF(B$2:B$10,"<=C2")
I'm simply trying to yield the same results just by adding the less than or equal to function; 5:00 pm is less than or equal to 5:00 PM, I should get a 1. 12:00 PM is less than or equal to 5:00 PM, should yield a 1. So on and so forth.
But my formula returns 0.