Skip to main content

How to quickly convert time to text or number of hours/minutes/seconds in Excel?

Author: Sun Last Modified: 2025-07-22

When managing data in Excel, it's common to work with time values formatted as hh:mm:ss or similar notations. However, for further analysis, reporting, or exporting purposes, you might need to convert these time values into plain text strings, their underlying number strings, or calculate the equivalent number of decimal hours, minutes, or seconds. Efficiently converting between these formats saves time, reduces manual effort, and ensures data consistency across calculations or summaries. This tutorial will introduce a variety of practical solutions to convert time values to text, numerical formats, or decimal representations in Excel, covering both built-in options and flexible methods for batch processing.

Convert time to text string

Convert time to number string

Convert time to number of hours/minutes/seconds

Paste Special & Multiply alternative method

Pivot Table for time data aggregation and conversion


Convert time to text string

To present the time values as text strings—for example, for exporting, reporting, or simply displaying the times without Excel’s time formatting—you can use the built-in TEXT formula. This approach is helpful when you want the cell values to remain unchanged regardless of any future cell formatting, and for concatenating times with other text data.

Select the cell where you want to display the converted text string. Enter the following formula (assuming your original time is in cell A1):

=TEXT(A1,"hh:mm:ss AM/PM")

After entering the formula, press Enter. To apply the same operation to multiple cells, drag the fill handle down along the adjacent cells.

A screenshot showing Excel formula for converting time to text
A screenshot of the converted text string from time in Excel

Parameter notes: You can customize the format string ("hh:mm:ss AM/PM") to suit 24-hour or 12-hour formats, or display only certain components (such as "hh:mm").

Tip: This conversion is best when you want the time to remain visually unchanged regardless of how the cell is formatted later. Be aware that after conversion, the output is text and no longer suitable for direct time calculations.


Convert time to number string

Excel stores time values as fractions of a day, so "1" represents 24 hours, and "0.5" represents 12 hours. To display the underlying number string corresponding to a time value, simply change the cell’s formatting to General. This can be useful for understanding how Excel stores time internally, or prepping values for further calculations.

Select the time cells you want to convert to their numeric representation.

Go to the Home tab, locate the Number group, and select General from the format dropdown list. After changing the format, the cell will display the underlying numeric value of the time.

For example, "06:00:00" converts to 0.25, "18:00:00" to 0.75.

A screenshot showing General format option for time cells in Excel

Tip: Since Excel expresses times as fractions, a full 24-hour day is 1. To convert these numeric strings into meaningful time units (such as hours, minutes, or seconds), see the following methods.

Caution: Changing cell format only affects display, not the actual stored value. When copying data for use outside Excel, remember that "General" formatted time values may appear as decimals.


Convert time to number of hours/minutes/seconds

If you need to perform calculations, aggregate durations, or export time as decimal hours/minutes/seconds, it’s necessary to convert time directly into those units. Below are several ways to achieve this, including formula methods and easy batch processing with Kutools for Excel.

Method 1: Convert time to number of hours/minutes/seconds with formula
This solution is suitable for quick conversions of a time value in a single cell.

Time Formula Result
16:15:48      =A1*24 16.26333
16:15:48 =A1*1440 975.803
16:15:48 =A1*86400      58548
  • =A1*24: Converts time to decimal hours.
  • =A1*1440: Converts time to decimal minutes.
  • =A1*86400: Converts time to decimal seconds.

Make sure to format the result cells as General or Number to display the decimal values correctly. Drag the fill handle to copy the formula down for additional rows as needed.

Tip: If you have whole hour values and want the output as integers, use functions like ROUND(A1*24,0), INT(A1*1440), etc.

Precaution: Large time values that span over 24 hours (e.g., durations calculated as end-start time where end < start) may cause negative or unintended results due to how Excel handles time rollovers.

Method 2: Convert time to number of hours/minutes/seconds with Kutools for Excel

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

If you frequently need to convert time data in large batches or into different time units, using Kutools for Excel can greatly simplify the process. Kutools has dedicated features for converting Excel time values to hours, minutes, or seconds with just a few clicks.

After installing Kutools for Excel, follow these steps:

Select the time cells you want to convert, click Kutools > Content > Convert Time > Time to Hours/Time to Minutes/Time to Seconds.
A screenshot showing Kutools Convert Time to Hours option in Excel

The selected times will be instantly converted to the target unit.
A screenshot of converted time values to hours in Excel using Kutools

Tip: If you want the converted results saved to a different cell range, click Kutools > Content > Convert Time > Convert Time to open the Convert Time dialog. Choose your desired conversion and check the Save to another location option, then specify the destination cell.
A screenshot of Kutools Convert Time dialog for saving results to another location

Note: Converting times in-place will overwrite the original cells; saving to another location will keep your source data intact.

Demo: Convert Time to number of hours/minutes/seconds with Kutools for Excel

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Paste Special & Multiply alternative method

This method is very useful when you want to quickly convert time values to their equivalent decimal hours, minutes, or seconds for multiple cells, especially if you want to avoid formulas or have static values for further use. It leverages Excel’s Paste Special with multiplication, which transforms the displayed time into a true decimal value in just a few steps.

How to use:

  1. Enter the conversion factor (for example, 24 for hours, 1440 for minutes, or 86400 for seconds) in a blank cell.
  2. Copy the conversion factor cell (Ctrl+C).
  3. Select the range of time cells you want to convert.
  4. Right-click the selection > choose Paste Special > in the dialog, select Multiply, then click OK.

For example, to convert time to decimal hours, enter 24 in a blank cell, copy it, then use Paste Special > Multiply on your time data. Each time value will be multiplied by 24 and displayed as a decimal hour value.

Advantages: Produces static results and does not rely on formulas; especially useful for preparing data for export or printing. Suitable for batch conversion of large datasets.

Limitations: The original time data will be overwritten. Consider making a backup if the original time format needs to be preserved.


Pivot Table for time data aggregation and conversion

If you need to summarize time data across different categories (e.g., employee work hours by project or machine operating times per day), a Pivot Table can help you both convert and aggregate time values efficiently. Although Pivot Tables display time values by default (in the hh:mm format), you can summarize and convert the output to hours/minutes/seconds as needed.

How to use:

  1. Prepare your data with a column of time values (formatted as hh:mm:ss) and corresponding categories or groups.
  2. Select your data range, go to Insert > PivotTable.
  3. Drag the categorical field into Rows and the time field into Values.
  4. The time values will be summed or averaged in time format. To show the total as decimal hours/minutes/seconds, right-click the total field > Value Field Settings > Summarize Value Field as SUM or AVERAGE, then apply a custom number format or multiply by 24 (hours), 1440 (minutes), or 86400 (seconds) in additional helper columns.

Using Pivot Tables for time aggregation is ideal when analyzing time data grouped by various dimensions (such as daily totals per employee, project, or machine) and when you want flexible summary formats. The results can be exported, formatted for presentation, or used for further data analysis.

Advantages: Highly suitable for grouping and aggregating large volumes of time data; built-in filtering and summary tools streamline reporting.

Limitations: For direct decimal conversion of PivotTable totals, you may occasionally need helper columns or calculated fields. Pivot Tables don’t modify original data but present it in a summarized and optionally converted layout.

Quickly and easily convert date to other date formatting in Excel

Have you ever tried to convert a date to day, month or year only? The formulas maybe hard to remember, but the Apply Date Formatting of Kutools for Excel can quickly convert a standard date to the date formatting as you need as below screenshot shown. Dont, waite, click for 30 days free trial!
doc apply date format
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!