Can anyone help me solve this?
I am trying to use a simple IF function to display which shift is working based on a series of time entries. I am working with a UTC time set, but I need to adjust the times to be UTC+1, to use this I am using a simple addition calculation. However, when I apply the IF function to the adjusted (UTC+1) time entries, it returns the same results as the UTC time set around 00:00, but outputs correctly around 12:00 (the shift change times). If I manually type in the adjusted times, the IF function works as expected. What is going on?
The functions being used are;
I have included a sample of the dataset and the formulas actively being applied.
Thank you in advance,
Charles
I am trying to use a simple IF function to display which shift is working based on a series of time entries. I am working with a UTC time set, but I need to adjust the times to be UTC+1, to use this I am using a simple addition calculation. However, when I apply the IF function to the adjusted (UTC+1) time entries, it returns the same results as the UTC time set around 00:00, but outputs correctly around 12:00 (the shift change times). If I manually type in the adjusted times, the IF function works as expected. What is going on?
The functions being used are;
- =A2+(1/24) Where A2 is UTC time - I have tried other methods of adding 1hr but all return the same result as described above, so I do not think that this is where the issue lies.
- =IF(A2>(12/24),"DAYS","NIGHTS") Where A2 is UTC time - This works as expected
- =IF(B2>(12/24),"DAYS","NIGHTS") Where B2 is UTC+1 time - reruns the same result as UTC time around 00:00, but correctly adjusts around 12:00 - Again, I have tried other forms of writing 12:00 within the function, but all yield the same outcome around 00:00.
- =IF(E8="","",IF(E8>(12/24),"DAYS","NIGHTS")) Where E8 is manually written time and this works as expected - Obviously the first IF function is there just to keep things tidy - I have tired without this and there is the same correct outcome.
I have included a sample of the dataset and the formulas actively being applied.
Thank you in advance,
Charles
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B120 | B2 | =A2+(1/24) |
C2:D120 | C2 | =IF(A2>(12/24),"DAYS","NIGHTS") |
F2:F120 | F2 | =IF(E2="","",IF(E2>(12/24),"DAYS","NIGHTS")) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A1 | Expression | =$G1="Incomplete" | text | NO |
A1 | Expression | =$G1="Complete" | text | NO |