Hi, I've got a problem with an IF/And Statement and do not know if this the correct function to use.
Basically I'm trying to say two things in Cell E2:
IF the date in column C2 is greater than column A2 it is Late, if not its on time AND If the time in column D2 is greater than column B2 it is Late, if not its on time.
So far I've come up with this formula =IF(AND(C2>A2,D2>B2),"LATE","ONTIME")
However the problem I have is that when the dates in Column A2 & C2 both match but the time in Column D2 is greater than the one in Column B2 it is still showing up as ontime when it should be late which is puzzling.
I've tried two IF(And(.. statements back to back as well as standard If statments back to back which didn't work, So i'm confused at the moment
Can anyone help!!
Basically I'm trying to say two things in Cell E2:
IF the date in column C2 is greater than column A2 it is Late, if not its on time AND If the time in column D2 is greater than column B2 it is Late, if not its on time.
So far I've come up with this formula =IF(AND(C2>A2,D2>B2),"LATE","ONTIME")
However the problem I have is that when the dates in Column A2 & C2 both match but the time in Column D2 is greater than the one in Column B2 it is still showing up as ontime when it should be late which is puzzling.
I've tried two IF(And(.. statements back to back as well as standard If statments back to back which didn't work, So i'm confused at the moment
Can anyone help!!