Formula help

kyddrivers

Board Regular
Joined
Mar 22, 2013
Messages
59
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.

Column E FGHIJUVWXYZAAABAC
Work DaysStartStopLunch StartLunch StopFTE030100130200230300330400
CurrentSMT==FY223024001000000000
SMT==FY5730230330111111LL11
CurrentSMT==FY22307302303301000000000
What I am looking forSMT==FY2230730230330111111LL11

<tbody>
</tbody>
 
Last edited:

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,214,651
Messages
6,120,739
Members
448,989
Latest member
mariah3

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