Formula wanted

CHML

Board Regular
Joined
Mar 19, 2023
Messages
57
Office Version
  1. 2019
Platform
  1. Windows
  2. Web
Hey there..
Attached is a report of the sessions. Some of them - in this case, 3 were 45-minute sessions and the other 3 were 60-minute sessions. Now, I need a total of HOURS. I need to break up the total amount of sessions in BA26, 3 of them are 45 min, and the other 3 60 min. In the formula I tried, I was not successful as this number doesnt make sense.

1698869454822.png
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Which items are 45 min and which are 60 min?

Can you do the forum a big favor please, and post your data using the xl2bb add in(Link below). If you cannot, please post the data as a table.

Thanks in advance.
 
Upvote 0
See if this helps. In Excel 45 mins = 0.03125. 1 day = 24 in Excel, so 1 hour = 1/24.
See example below.
Scaling Numbers from list.xlsx
ABCDE
11 day =24
21 Hour = 1/24 =0.041666667
345 mins is 3/4 or .75 of an hour = 0.03125
4
5So 45 mins is equal to 0.03125 in Excel
6So take the value in your cell BA26 and multiply by 0.031250.1875
7Then multiply by 24 to get hours4.5hours (4 hrs 30 mins)
8
Sheet3
Cell Formulas
RangeFormula
B2B2=1/24
B3B3=B2*0.75
B6B6=6*B3
B7B7=24*B6
 
Upvote 0
Thanks AhoyNC, that would be the case if all six sessions were 45-minute sessions, however, in my case, three of them were 45-minute sessions, and the other three were 60-minute sessions, so what would be the formula in this case?

Thanks awoohaw, for providing the links, so far I haven't had a chance to explore the mini-sheet, but I would definitely benefit from it.
 
Upvote 0
See formula in A10.
It would be (3 x 0.03125 + 3 x 0.041666667) x 24
Scaling Numbers from list.xlsx
ABCD
11 day =24
21 Hour = 1/24 =0.041666667
345 mins is 3/4 or .75 of an hour = 0.03125
4
5So 45 mins is equal to 0.03125 in Excel
6So take the value in your cell BA26 and multiply by 0.031250.1875
7Then multiply by 24 to get hours4.5hours (4 hrs 30 mins)
8
9If 3 sessions are 45 mins and 3 are 1 hour
105.25hours (5hrs 15 mins)
Sheet3
Cell Formulas
RangeFormula
B2B2=1/24
B3B3=B2*0.75
B6B6=6*B3
B7B7=24*B6
A10A10=(3*0.03125+3*0.041666667)*24
 
Upvote 0
Solution
You're welcome. Thanks for the feedback.
Another option would be to use the TIME function in Excel.

Book1
A
1With TIME function:
2=(3*TIME(0,45,0)+3*TIME(1,0,0))*24
35.25
Sheet3
Cell Formulas
RangeFormula
A2A2=FORMULATEXT(A3)
A3A3=(3*TIME(0,45,0)+3*TIME(1,0,0))*24
 
Upvote 0

Forum statistics

Threads
1,215,312
Messages
6,124,199
Members
449,147
Latest member
sweetkt327

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