Excel time issue

svenopi

New Member
Joined
Jul 20, 2017
Messages
2
Hey guys,

I have a issue I have been trying to figure out all day.

We have a KPI for a late early arrivals and our KPI if the departure is after 8 minutes of planned time or 12 minutes earlier, it qualifies as "on time". If its more than 12 minutes early it qualifies as "early" and if it is more than 8 later, it qualifies as "late".

I am trying to write a formula to capture that but due to negative times showing as larger, for example -00:06:00 shows as a bigger number than -00:05:00, I can figure out how to write the formula.

You can see from the picture below my table, I am trying to put the formula in column N for data in Column L.

Thank you in advance.
 

Attachments

  • Capture.PNG
    Capture.PNG
    40.6 KB · Views: 16

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Screen captures are not easy to work from, there is too much detail missing. XL2BB captures are preferable.

See if this works for you, note that the results will not appear as negative.

J2: =MAX(I2-H2,0)
K2: =ABS(MIN(I2-H2,0))
L2: =MAX(J2,K2)
N2: =IF(J2>TIME(0,8,0),"Late",IF(K2>TIME(0,12,0),"Early","On Time"))

This is the best I can do from a screen captue.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top