Help with clock and time conversion and formula creation

arnob216

New Member
Joined
Jun 2, 2020
Messages
6
Office Version
  1. 2019
Platform
  1. Windows
Hi

I want to make a sort of calculator in excel. The scenario is as follows:

Lets say I have 2 businesses and these have a certain stock level which gets converted to supply in certain times (hours and minutes only). What I want to make is to put Current clock time in 1 cell. Then depending on the "Stock to supply" conversion time, I want to know when I the stock will be fully converted. In more details:

Say, current time is 7 PM. My stock gets converted to supply in 2.5 hours (which means 2 hours and 30 minutes). How do I add this decimal number '2.5' to the 7 PM so that the result comes as 9:30 PM?
Here the 2.5 hours of conversion time will change depending on situations. Therefore, the figure could be any decimal number.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi, another option to try.

=A1+(B1/24)

Note, you may need to format the cell that contains the formula as time.
 
Upvote 0
Hi, another option to try.

=A1+(B1/24)

Note, you may need to format the cell that contains the formula as time.
But the result comes out as 2:30:00 instead of 9:30:00 for some reason.
 
Upvote 0
Another thing I want to learn. How to convert 2.33 into 2 hours 20 mins or 2.5 into 2 hours 30 mins?
 
Upvote 0
Another thing I want to learn. How to convert 2.33 into 2 hours 20 mins or 2.5 into 2 hours 30 mins?

Just divide the number by 24 and format as time.
 
Upvote 0
Hi, here it is working for me.

Book9
ABC
107:002.509:30
Sheet1
Cell Formulas
RangeFormula
C1C1=A1+(B1/24)
Thanks working for me too. I had a mistake last time.


Just divide the number by 24 and format as time.

By doing this, I get the Time format. But I want to denote the figure before decimal as "x hours" and figure after decimal as "x minutes". Is that even possible?
 
Upvote 0
I want to denote the figure before decimal as "x hours" and figure after decimal as "x minutes"

With your decimal number in B1 - you could try.

=TEXT(B1/24,"[H] ""hours"" m ""minutes""")
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

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