Need help completing an IF function with date & time as inputs

Miskondukt

New Member
Joined
Jan 16, 2014
Messages
4
Using the attached doc, and its legend tab, I need the following columns corrected as I am seriously tripping up on formats vs inputs for outputs.

1.) Column "N's" (OSAT) result based on the duration output of the preceding column "M" is:
<=4 = 40
5 = 30
6 = 20
>=7 = 10

2.) Column "Q's" (IUT) result based on the duration output of the preceding column "P" is:
<=18 == 40
>=19<=24 == 30
>=25<=48 == 20
>=49 == 10

The legend tab shows the info as well.

Let me know if anyone needs further explanations.

Can I not attach a spreadsheet? Pasting my cells into this table only paste the results, not the formula.

Assignment ReceivedCustomer ContactCC
(Mins)
CC
Grade
OnSite ArrivalOSAT
(Hrs)
OnSite
Arrival
Grade
Initial UploadIUT
(Hrs)
IUT
Grade
Final UploadFinal Upload Appr.
9/8/2013 16:409/8/2013 17:100:30:00409/8/2013 20:404109/10/2013 15:49472010/8/2013 15:5310/30/2013 10:01

<colgroup><col span="2"><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

The grade column is where I cannot produce a viable formula (based on the legend and/or numbered items above) provided the data cells of the Date and Time format (restricted to this format).
 
Last edited:

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the Board!!

Look at my sig and check out MrExcel's HTML maker add-in

Not sure what you are looking for

you can use the formula
=IF(N2<=4,40,IF(N2=5,5,IF(N2=6,6,IF(N2>=7,7))))

1.) Column "N's" (OSAT) result based on the duration output of the preceding column "M" is:
<=4 = 40
5 = 30
6 = 20
>=7 = 10

you can use the formula
=IF(P2<=18,40,IF(AND(P2>=19,P2<=24),30,IF(AND(P2>=25,P2<=48),20,IF(P2>=49,10))))

2.) Column "Q's" (IUT) result based on the duration output of the preceding column "P" is:
<=18 == 40
>=19<=24 == 30
>=25<=48 == 20
>=49 == 10
 
Last edited:
Upvote 0
Thanks Shyy; however, the formula isn't VB and this work cpu isn't allowing me access to that download.

I've tried the formulas you provided (and a tone more variations), but the format of the input cells seems to effect the way the formula is written and produces the result.

The input for the IF functions is in the format (unavoidable) "mm/dd/yy & h:mm:ss" and when I am making the IF functions the answers are not coming out correct.

I've also tried:
`=IF(M6=0,0,IF(AND(NOT(A6),M6=0),0,IF(M6<=4,40,IF(M6=5,30,IF(M6=6,20,IF(M6>=7,10,"wrong"))))))
`=IF(M7=0,0,IF(M7<TIME(5,0,0),40,IF(M7>=TIME(5,0,0)<TIME(6,0,0),30,IF(M7>=TIME(6,0,0),20,IF(M7>=TIME(7,0,0),10,"wrong")))))

<tbody>
</tbody>

<tbody>
</tbody>
`=IF(AND(M7<=TIME(4,0,0),M7<TIME(5,0,0)),40,IF(AND(M7>=TIME(5,0,0),M7<TIME(6,0,0)),30,IF(AND(M7>=TIME(6,0,0),M7<TIME(7,0,0)),20,IF(M7>=TIME(7,0,0),10,"wrong"))))

<tbody>
</tbody>
We really can't post excel docs in an EXCEL help forum?
 
Last edited:
Upvote 0
you can post docs its just that most people won't bother downloading them for personal reasons.
 
Upvote 0
Must have some number of posts to fulfill before being able to attach, because I do not see any attach icon or button.

The permissions say I cannot post attachments.

Quite the online oxymoron.
 
Upvote 0
You can use sites like imageshack get the html code/board code and post it here
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,961
Latest member
nzskater

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