Hi.
I'm using a left function to get the hour from a cell that contains a date, and then using COUNTIF to get a total of how many columns match that hour:
UC.Data!M2: 9/9/14 6:13 PM
C2: =UC.Data!M2
G2: =LEFT(HOUR(C2),2)
I2: =COUNTIF(G2,">9")
G2 displays "18" in the cell (left 2 of 1800). The COUNTIF in I2 should return a 1 because 18 is greater than 9. Am I doing something wrong?
I'm using a left function to get the hour from a cell that contains a date, and then using COUNTIF to get a total of how many columns match that hour:
UC.Data!M2: 9/9/14 6:13 PM
C2: =UC.Data!M2
G2: =LEFT(HOUR(C2),2)
I2: =COUNTIF(G2,">9")
G2 displays "18" in the cell (left 2 of 1800). The COUNTIF in I2 should return a 1 because 18 is greater than 9. Am I doing something wrong?