Formula help

kyddrivers

Board Regular
Joined
Mar 22, 2013
Messages
64
Office Version
  1. 365
Platform
  1. Windows
I am in need of some assistance in tweaking formulas to get the desired results. The situation may be impossible, but I need to ask to satisfy my curiosity.

I will try to include the spreadsheet and describe as best as possible...as always thank you for help in advance!

I have a file that calculates scheduled staffing by interval by entering work days, start of shift, end of shift, lunch start & lunch stop. The intervals (0, 30, 100....2400) are populated based on the start/stop and the lunch start and stop. What I am trying to solve for is shifts that cross over midnight, right now I have to create 1 entry for the time before midnight and a 2nd entry for the time after midnight. I would like to be able to enter the data into 1 line.

The 0 interval (Column U) calculates based on the following formula:
=IF(F15=5,J15,0)

The remaining intervals calculate based on the following formula:
=IF($F15>0,(IF(AND(V$13>=$H15,V$13<$I15),"L",(IF(V$13<$G15,IF(V$13>=$F15,$J15,0),0)))),0)

Let me know if you have any questions.

[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]Column E[/TD]
[TD] F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]U[/TD]
[TD]V[/TD]
[TD]W[/TD]
[TD]X[/TD]
[TD]Y[/TD]
[TD]Z[/TD]
[TD]AA[/TD]
[TD]AB[/TD]
[TD]AC[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Work Days[/TD]
[TD]Start[/TD]
[TD]Stop[/TD]
[TD]Lunch Start[/TD]
[TD]Lunch Stop[/TD]
[TD]FTE[/TD]
[TD]0[/TD]
[TD]30[/TD]
[TD]100[/TD]
[TD]130[/TD]
[TD]200[/TD]
[TD]230[/TD]
[TD]300[/TD]
[TD]330[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]Current[/TD]
[TD]SMT==FY[/TD]
[TD]2230[/TD]
[TD]2400[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
[TD]0[/TD]
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[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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