How to Convert Excel Time To Decimal Seconds in Excel

Learn multiple Excel methods to convert time values to decimal seconds with step-by-step examples, business use-cases, and advanced tips.

excelformulatimetutorial
10 min read • Last updated: 7/2/2025

How to Convert Excel Time To Decimal Seconds in Excel

Why This Task Matters in Excel

Imagine receiving a raw‐data export from an industrial machine that records cycle start and end times as [hh:mm:ss] values. Your analytics platform, however, expects duration in pure seconds so it can perform throughput calculations. Or picture a call-center dashboard that monitors agent talk time, but the telephony system only understands whole seconds when calculating per-second billing. Converting a conventional Excel time stamp into a decimal number of seconds is the bridge that lets those systems talk to each other.

In business reporting, engineering logs, sports timing, or scientific experiments, many downstream tools—databases, APIs, BI platforms—treat duration as an integer number of seconds. Excel is often the staging area where you clean and transform that data. If you do not convert times reliably, your KPIs will skew, your SLAs will look out of compliance, and financial models built on time‐based billings will be off by significant amounts.

Excel excels (no pun intended) because its serial-date engine stores days as whole numbers and times as fractions of a day. That design makes it incredibly easy to transform between human-readable [hh:mm:ss] and numeric equivalents; you just need to know the right multiplier or the supporting functions. Being proficient in this conversion unlocks downstream skills such as calculating throughput per second, building Gantt charts with second-level precision, and feeding time data into Power Query, Power BI, or VBA automations.

Conversely, lack of knowledge here can cause subtle—but costly—errors. A one-hour call logged as “1:00:00” treated as 1.00 second instead of 3600 seconds will create dramatically wrong cost calculations or performance metrics. Mastering this conversion gives you confidence that your time-based analyses are accurate, portable, and easy to audit.

Best Excel Approach

The fastest, most transparent way to turn an Excel time value into decimal seconds is to multiply the time by the number of seconds in a day (86 400). Because Excel stores a single day as 1.0, any time fraction multiplied by 86 400 immediately yields the equivalent number of seconds.

Syntax:

=TimeCell*86400

where TimeCell is the cell that holds your [hh:mm:ss] time.

Why this method is best

  • Speed: A single multiplication is computationally cheaper than calling three functions.
  • Clarity: Anyone familiar with Excel’s date serial system will instantly recognize the intent.
  • Flexibility: Works with both pure time values (e.g., 0.75 representing 18:00:00) and full date-time stamps (e.g., 3-Apr-2024 18:00). The date portion is ignored automatically because only the fractional part is multiplied.
  • Portability: This formula works in all versions from Excel 2007 through Excel 365 on Windows and Mac.

Alternative (function‐based) approach: break the time value into hours, minutes, and seconds, then convert each component.

=HOUR(TimeCell)*3600 + MINUTE(TimeCell)*60 + SECOND(TimeCell)

Use this variant when:

  • Your workbook prohibits multiplication by constants (rare governance rule).
  • You want to build in guards against non-time values (HOUR returns zero for text that cannot be parsed, so you can nest extra validation).

Parameters and Inputs

To make either approach bulletproof, understand your inputs:

  • Required input: A valid Excel time or date-time value in TimeCell. Internally that means a numeric serial where the fractional part represents time.
  • Data type: Number (not text). If your data is imported as text like “12:34:56”, convert first using =TIMEVALUE("12:34:56") or Text to Columns.
  • Acceptable range: 0 to slightly below 1 for pure times, or any positive number for date-time stamps.
  • Optional formatting: Format TimeCell as Time, Custom “[hh]:mm:ss”, or General—the formula still works.
  • Edge cases: Negative times (from elapsed calculations) will yield negative seconds; blank cells return zero seconds.
  • Validation: Wrap the formula in IFERROR to trap invalid entries:
=IFERROR(TimeCell*86400,"Check input")

Step-by-Step Examples

Example 1: Basic Scenario

Suppose you have a stopwatch log in column A with simple lap durations:

A (Lap Time)
0:01:15
0:02:42
0:00:58
  1. Enter the following in B2 and copy down:
=A2*86400
  1. Format column B as General so you see plain numbers 75, 162, and 58 instead of time. The multiplication by 86 400 converts each time fraction to seconds:
  • 0:01:15 is 75 seconds because 0.020833 … (Excel’s fractional value) times 86 400 equals 75.

Why it works: 1 minute equals 1/1440 of a day, so Excel’s internal math is perfectly aligned.

Variations:

  • If your lap times can exceed 24 hours, custom format A as “[hh]:mm:ss” to avoid rollover.
  • If your list comes from text “1:15”, add a helper column C with =TIMEVALUE(A2) first.

Troubleshooting:

  • If the result looks like 0.000868—your output cell is still formatted as Time. Switch to General or Number.
  • If you see #VALUE!, the input was text that Excel could not parse.

Example 2: Real-World Application

A call-center exports a daily file where column B holds call start times and column C holds call end times (both as full date-time stamps). Management wants total talk seconds per call to feed into a billing system.

  1. Insert column D titled “Talk Seconds.”
  2. In D2 enter:
=(C2-B2)*86400
  1. Copy down through all rows—Excel calculates the difference in days, multiplies by 86 400, and yields an integer number of seconds.

Business context: The billing system multiplies seconds by a rate of $0.002. You can now add column E:

=D2*0.002

Integration: Because the final field is now a decimal number, you can load it via Power Query into a SQL table without worrying about data-type mismatch.

Performance: Multiplication is “vectorized” in Excel’s calc engine, so even on a sheet with 50 000 calls this approach recalculates instantly. Using HOUR, MINUTE, SECOND individually would require three times as many function calls and extra memory.

Troubleshooting large data:

  • Ensure both start and end times are numeric. If the export is text, run =DATEVALUE and =TIMEVALUE conversions or use Power Query’s “Change Type.”
  • Watch for calls that span midnight; the subtraction still works because date parts are included.

Example 3: Advanced Technique

Scenario: You manage IoT sensor data with millisecond resolution. The source CSV logs Timestamp and ElapsedSeconds, but you only get Timestamp in Excel. You must calculate seconds—including fractional seconds—and push to Power BI.

  1. Load the CSV via Data > Get & Transform.
  2. After import, ensure column [Timestamp] is type Date/Time.
  3. In Power Query’s formula bar add a custom column:
=Duration.TotalSeconds([Timestamp] - Date.StartOfDay([Timestamp]))
  1. Close & Load back to Excel.
  2. The resulting column is numeric seconds past midnight, including decimals such as 45296.378.

Back in Excel (if you skipped Power Query), you can deliver the same with a worksheet formula for micro audit:

=(A2 - INT(A2))*86400

where INT(A2) strips the date component explicitly, giving you precise seconds including decimals.

Edge-case management: For timestamps with time zone offsets or daylight-saving jumps, consider converting to UTC before subtraction.

Professional tip: Format the result as Number with 3-6 decimal places for millisecond readability. You can also round:

=ROUND((A2-INT(A2))*86400,3)

Performance optimization: Subtracting INT(A2) once is faster than calling HOUR, MINUTE, SECOND because INT is a single operation on the numeric serial.

Tips and Best Practices

  1. Keep source times numeric: Apply Text to Columns or VALUE conversions immediately after import.
  2. Store constants like 86400 in a named cell (e.g., SecondsInDay) so formulas read =A2*SecondsInDay; easier to audit and adjust.
  3. Use [hh]:mm:ss formatting on inputs exceeding 24 hours to prevent wrap-around confusion.
  4. Wrap complex formulas in IFERROR to surface friendly messages instead of cryptic error codes.
  5. For dashboards, convert seconds back to readable time with =B2/86400 and custom format if you need dual views.
  6. Optimize large models by using one helper column for date stripping instead of repeating INT() across thousands of cells.

Common Mistakes to Avoid

  1. Leaving result cells formatted as Time, which shows “0:01:15” instead of 75. Solution: change to General or Number.
  2. Multiplying text “01:15” by 86 400 without converting; Excel returns #VALUE!. Fix with TIMEVALUE or VALUE first.
  3. Forgetting to account for date part when using subtraction; end-start yields negative seconds for crossings past midnight. Always include full date-time stamps.
  4. Hard-coding 60 × 60 in multiple places, leading to typo risk. Use a single constant or the 86400 approach.
  5. Copy-pasting from systems that store times as Unix timestamps (seconds since 1-Jan-1970) and re-converting incorrectly. Validate source data type before applying formulas.

Alternative Methods

Several approaches achieve the same result. Compare before choosing:

MethodFormula ExampleProsCons
Multiplication=A2*86400Fast, simple, minimal typingRequires numeric input
Component Functions=HOUR(A2)*3600+MINUTE(A2)*60+SECOND(A2)Good for validation or partial inputsSlightly slower, longer formula
INT strip + multiply=(A2-INT(A2))*86400Explicitly removes date, avoids surprisesNeed to understand INT behaviour
Power QueryDuration.TotalSeconds(...)Scales to millions of rows, GUI friendlyRequires loading data through PQ
VBA UDFSec = TimeValue*86400Reusable across workbooks, can include error trappingNeeds macro-enabled file, security warnings

When to pick each:

  • Use pure multiplication for day-to-day spreadsheets.
  • Choose Power Query for large CSV imports.
  • Component functions help when inputs might not be valid times and you want zero outputs instead of errors.
  • VBA makes sense when other automation exists in the workbook.

Migration: You can switch from component functions to multiplication by search-replace *3600 etc. with *86400 / (HOUR+... patterns) to standardize.

FAQ

When should I use this approach?

Anytime downstream systems or formulas require elapsed time in seconds: billing, data warehouses, engineering analyses, or APIs that expect integers instead of [hh:mm:ss] strings.

Can this work across multiple sheets?

Yes. Reference another sheet like =Sheet2!A2*86400 or create a named range in one sheet and call it globally. For three-D formulas (same cell across several sheets) use =SUM(Sheet1:Sheet3!A2)*86400.

What are the limitations?

The multiplication method fails if inputs are text. Also, Excel’s maximum precision is roughly one millisecond, so if you need microseconds, use Power Query’s Duration.TotalSeconds with fractional precision or store numbers natively.

How do I handle errors?

Wrap in IFERROR or use ISTEXT to pre-check:

=IF(ISTEXT(A2),"Invalid input",A2*86400)

For negative durations, decide whether to allow negatives or wrap them with ABS().

Does this work in older Excel versions?

Yes, back to Excel 2003 for basic multiplication. HOUR, MINUTE, SECOND are available in even earlier versions. Power Query requires Excel 2010 Pro Plus with the add-in, or Excel 2016 and later.

What about performance with large datasets?

Multiplication scales efficiently; on modern hardware, 100 000 rows recalculate almost instantly. Power Query operates in memory and can handle millions of rows if you use 64-bit Excel.

Conclusion

Converting Excel time to decimal seconds is a cornerstone skill that keeps your analyses precise, auditable, and compatible with external systems. The 86400-multiplier method is quick, transparent, and works across virtually all Excel versions, while component functions, Power Query, and VBA provide flexible alternatives for special situations. Mastering this conversion lets you build more robust dashboards, perform second-level KPIs, and hand off clean data to any downstream application. Experiment with the examples in this tutorial, adopt the best practices, and integrate these techniques into your daily workflow to elevate your Excel proficiency.

We use tracking cookies to understand how you use the product and help us improve it. Please accept cookies to help us improve.