Time and IF

Frank3923

Board Regular
Joined
Jan 20, 2003
Messages
244
I have a work sheet that I need a formula for that will classify the elasped time into 4 different classification. I have attempted 2 different formulas, that I will list below. An example of my desired restults, would be
K1= B-Late, K2=ok, K3=ok, K4=Blank, K5=A-Late, K6=B-Late and So, on.

Column K
=IF(AND(J3>=0,J3<=0.09),"Okay",IF(AND(J3>=0.09,J3<=0.18),"A-Late",IF(AND(J3>=0.18,J3<=10),"B-Late",IF(J3="",""))))

Column L
=IF(AND(J3>="0:00",J3<="0:15"),"Okay",IF(AND(J3>="0:15",J3<="0:30"),"A-Late",IF(AND(J3>="0:30",J3<="010:00"),"B-Late",IF(J3="",""))))

Any advise, or assistance would be appreciated.
LINEHAUL CUT TIMES-PROJECT-050803-Thursday-.xls
ABCDEFGHIJKL
15/8/03TimeSchedulesPage1of3
2Origin:AssignmentNameSchCutSchDeptSchArrActDepEtaTimeReview
3AnaFso-Mod-SacVincea20:0020:302:3021:453:15wa21:15OkayFALSE
4BakLax-ByndWillsr18:0018:3020:3018:3020:300:00OkayFALSE
5Lax-SacCollil21:3022:0023:0022:1023:150:10OkayFALSE
6EurSro-EurChrisp22:0022:303:0021:151:4522:45B-LateFALSE
7FsoSac-turnDalerm21:0021:300:3021:500:500:20OkayFALSE
8Sro-SacFritts1:001:303:302:305:45driverlatetowork1:00A-LateFALSE
9Bak-Fso-Mod-SacEckowr22:0022:302:0022:452:150:15OkayFALSE
10Fso-Lax-FonRiveez22:0022:301:3022:501:50wa20:20OkayFALSE
Sheet1
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Howdy Frank,

Try This

=IF(AND(J3>0,J3 <0.25),"Okay",IF(AND(J3>0.25,J3<=0.5),"A-Late",IF(AND(J3>0.5,J3<=10),"B-Late",IF(J3=0,"","Ahead!"))))

In Column J where you show your time ahead or behind departure use this

=(G3-E3)*24

Format That column as either General or Number.

Rather than giving you "1:15" it will show it in decimal time "1.25"

Does that work for you?
 
Upvote 0
Egress1 said:
Howdy Frank,

Correction

=IF(AND(J3>0,J3 <=0.25),"Okay",IF(AND(J3>0.25,J3<=0.5),"A-Late",IF(AND(J3>0.5,J3<=10),"B-Late",IF(J3=0,"","Ahead!"))))

add the = sign for <=.25
 
Upvote 0

Forum statistics

Threads
1,221,709
Messages
6,161,431
Members
451,705
Latest member
Priti_190

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