Prevost
Board Regular
- Joined
- Jan 23, 2014
- Messages
- 198
Hi There. I want to use an if function to determine whether or not the time difference between 2 cells is not equal to 1 hour. I tried
=if((A2-A1)=0.0416666666666667, 0,1)
but it does not work all the time. For example, 16:00-15:00 is not 0.0416666666666667. I converted the time difference of one hour to a number. Is there a way to check if the time difference is 1:00?
I also tried creating a column that displays the difference between the times in the 2 cells and used
if(B2=time(1,0,0),1,0)
and it doesn't work all the time because again, the time difference of 1 hour is not always 0.0416666666666667, some times it is 0.0416666666666666.
Any help would be great!
=if((A2-A1)=0.0416666666666667, 0,1)
but it does not work all the time. For example, 16:00-15:00 is not 0.0416666666666667. I converted the time difference of one hour to a number. Is there a way to check if the time difference is 1:00?
I also tried creating a column that displays the difference between the times in the 2 cells and used
if(B2=time(1,0,0),1,0)
and it doesn't work all the time because again, the time difference of 1 hour is not always 0.0416666666666667, some times it is 0.0416666666666666.
Any help would be great!