How would I convert time values to words?

Indominus

Board Regular
Joined
Jul 11, 2020
Messages
160
Office Version
  1. 2016
Platform
  1. Windows
Hello. I have a workbook I created to track break times at my work. I have a column of times in a workbook in the custom format [h]:mm:ss. Example 0:06:00 for six minutes. This column tells us how long the person went over the required break time. I would like to, in another column display this in words such as "6 minutes". I know using something like this (=MINUTE(N29)&" minutes") works. However, I would like to include the hours if there are any and if there are not any hours then not include them. For example, if a time is 1:24:45 I would like it to show 1 hour and 24 minutes. In the case of 0:06:00 I do not want it to say 0 hours and 6 minutes. How could I create a formula for excel to identify if there is an hour or not for this?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
How about:
varios 23jul2020b.xlsm
NO
2915:26:4515 Hour 26 Minutes
Hoja6
Cell Formulas
RangeFormula
O29O29=IF(HOUR(N29) > 0,HOUR(N29)& " Hour ","") & MINUTE(N29) & " Minutes"
 
Upvote 0
How about:
varios 23jul2020b.xlsm
NO
2915:26:4515 Hour 26 Minutes
Hoja6
Cell Formulas
RangeFormula
O29O29=IF(HOUR(N29) > 0,HOUR(N29)& " Hour ","") & MINUTE(N29) & " Minutes"

Thank you that works for that. Upon doing this I thought of other scenarios. There might not be minutes just seconds. So is there a way to display the seconds also but only if there are any seconds? In essence I would like to display any time values in hours, minutes, and seconds and not display the time values with 0. I added an IF formula (attached) to display the seconds but doesn't check if there are any. Also I would need to check if there any minutes greater than 0. Thank you
seconds (break tracker).JPG
 
Upvote 0
How about:

=IF(HOUR(A2) > 0,HOUR(A2)& " Hour ","") & IF(MINUTE(A2) > 0, MINUTE(A2) & " Minutes ","") & IF(SECOND(A2)>0,SECOND(A2)&" Seconds", "")
 
Upvote 0
Solution
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,592
Members
449,089
Latest member
Motoracer88

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