Distributing Data per 30 mins

chaboyski

Board Regular
Joined
Aug 18, 2020
Messages
59
Office Version
  1. 2016
Platform
  1. Windows
Hi Team,

just wanted to check if there would be a simpler way to do this.

Final data would be Cell I11 - I34

i wanted to distribute and add the data from example, B2 - b8.

long method is cell A11 -I34

legend is, if the data is at 8am, it would end at 16:30, just add 8.5 hours.

not sure if the explanation is clear.

shift.xlsx
ABCDEFGHI
1Schedule1-Sep2-Sep3-Sep4-SepSchedule
28:00:00 AM54253558:0016:30
38:30:00 AM37037398:3017:00
49:00:00 AM20020189:0017:30
59:30:00 AM25022229:3018:00
610:00:00 AM212210:0018:30
710:30:00 AM404410:3019:00
811:00:00 AM403413911:0019:30
9
101-Sep
118:005454
128:30543791
139:00543720111
149:3054372025136
1510:00543720252138
1610:305437202524142
1711:00543720252440182
1811:30543720252440182
1912:00543720252440182
2012:30543720252440182
2113:00543720252440182
2213:30543720252440182
2314:00543720252440182
2414:30543720252440182
2515:00543720252440182
2615:30543720252440182
2716:00543720252440182
2816:30543720252440182
2917:003720252440128
3017:302025244091
3118:0025244071
3218:30244046
3319:0044044
3419:304040
Sheet3
Cell Formulas
RangeFormula
H2:H8H2=A2
I2:I8I2=H2+"8:30"
A12:A34A12=A11+"00:30"
I11:I34I11=SUM(B11:H11)
 

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.
This might do it. Adding the half-hour sometimes gives you trouble with rounding errors.

MrExcelPlayground20.xlsx
ABCDEFGHI
1Schedule9/1/20239/2/20239/3/20239/4/2023Schedule
28:00:00 AM54253558:00:00 AM4:30:00 PM
38:30:00 AM37037398:30:00 AM5:00:00 PM
49:00:00 AM20020189:00:00 AM5:30:00 PM
59:30:00 AM25022229:30:00 AM6:00:00 PM
610:00:00 AM212210:00:00 AM6:30:00 PM
710:30:00 AM404410:30:00 AM7:00:00 PM
811:00:00 AM403413911:00:00 AM7:30:00 PM
9
10
118:00:00 AM5425355
128:30:00 AM9129094
139:00:00 AM1112110112
149:30:00 AM1362132134
1510:00:00 AM1383134136
1610:30:00 AM1423138140
1711:00:00 AM1826179179
1811:30:00 AM1826179179
1912:00:00 PM1826179179
2012:30:00 PM1826179179
211:00:00 PM1826179179
221:30:00 PM1826179179
232:00:00 PM1826179179
242:30:00 PM1826179179
253:00:00 PM1826179179
263:30:00 PM1826179179
274:00:00 PM1826179179
284:30:00 PM1826179179
295:00:00 PM1284126124
305:30:00 PM9148985
316:00:00 PM7146967
326:30:00 PM4644745
337:00:00 PM4434543
347:30:00 PM4034139
Sheet19
Cell Formulas
RangeFormula
H2:H8H2=A2
I2:I8I2=H2+"8:30"
B11:E34B11=SUMPRODUCT(B$2:B$8,--($A$2:$A$8<=$A11),--($A$2:$A$8+8.51/24>=$A11))
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,568
Members
452,652
Latest member
eduedu

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