Calculate number of sessions per time period

MattFree

New Member
Joined
Dec 30, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I am hoping someone can help me, I am struggling to find a way of auto calculating this.

I need to show the expected session against the time given to an individual.
Individuals are expected to carry out 1 session per 45min period

Time Given (hours)Number of Expected Sessions
00:451
01:302

Hope this makes sense.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
If they are time values then maybe the below formula:
Excel Formula:
=ROUNDDOWN(A2/"00:45:00",0)
 
Upvote 0
Thanks for this however its not what I'm looking for.

I need the expected hours to show how many sessions are expected based on the hours given, with a criteria that a 45 minuets period is 1 session.
 
Upvote 0
I think @Flashbond 's first solution works fine:
Book1
AB
1HoursSessions
20:150
30:300
40:451
51:001
61:151
71:302
81:452
92:002
102:153
112:303
122:453
133:004
143:154
153:304
163:455
174:005
184:155
194:306
204:456
215:006
225:157
235:307
245:457
256:008
266:158
276:308
286:459
297:009
307:159
317:3010
327:4510
338:0010
348:1511
358:3011
368:4511
379:0012
389:1512
399:3012
409:4513
4110:0013
4210:1513
4310:3014
4410:4514
4511:0014
4611:1515
4711:3015
4811:4515
4912:0016
5012:1516
5112:3016
5212:4517
5313:0017
5413:1517
5513:3018
5613:4518
5714:0018
5814:1519
5914:3019
6014:4519
6115:0020
6215:1520
6315:3020
6415:4521
6516:0021
6616:1521
6716:3022
6816:4522
6917:0022
7017:1523
7117:3023
7217:4523
7318:0024
7418:1524
7518:3024
7618:4525
7719:0025
7819:1525
7919:3026
8019:4526
8120:0026
8220:1527
8320:3027
8420:4527
8521:0028
8621:1528
8721:3028
8821:4529
8922:0029
9022:1529
9122:3030
9222:4530
9323:0030
9423:1531
9523:3031
9623:4531
Sheet2
Cell Formulas
RangeFormula
A2:A96A2=SEQUENCE(95,,TIME(0,15,0),TIME(0,15,0))
B2:B96B2=ROUNDDOWN(A2#/"00:45:00",0)
Dynamic array formulas.
 
Upvote 0
I think @Flashbond 's first solution works fine:
Book1
AB
1HoursSessions
20:150
30:300
40:451
51:001
61:151
71:302
81:452
92:002
102:153
112:303
122:453
133:004
143:154
153:304
163:455
174:005
184:155
194:306
204:456
215:006
225:157
235:307
245:457
256:008
266:158
276:308
286:459
297:009
307:159
317:3010
327:4510
338:0010
348:1511
358:3011
368:4511
379:0012
389:1512
399:3012
409:4513
4110:0013
4210:1513
4310:3014
4410:4514
4511:0014
4611:1515
4711:3015
4811:4515
4912:0016
5012:1516
5112:3016
5212:4517
5313:0017
5413:1517
5513:3018
5613:4518
5714:0018
5814:1519
5914:3019
6014:4519
6115:0020
6215:1520
6315:3020
6415:4521
6516:0021
6616:1521
6716:3022
6816:4522
6917:0022
7017:1523
7117:3023
7217:4523
7318:0024
7418:1524
7518:3024
7618:4525
7719:0025
7819:1525
7919:3026
8019:4526
8120:0026
8220:1527
8320:3027
8420:4527
8521:0028
8621:1528
8721:3028
8821:4529
8922:0029
9022:1529
9122:3030
9222:4530
9323:0030
9423:1531
9523:3031
9623:4531
Sheet2
Cell Formulas
RangeFormula
A2:A96A2=SEQUENCE(95,,TIME(0,15,0),TIME(0,15,0))
B2:B96B2=ROUNDDOWN(A2#/"00:45:00",0)
Dynamic array formulas.
I think he wants to derive column A from column B
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,787
Members
449,188
Latest member
Hoffk036

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