Spreadsheet Formulas

Convert Time to Decimal in Excel & Google Sheets

Spreadsheets store time as a fraction of a day. Multiply by 24 to get decimal hours, by 1440 for minutes, or by 86400 for seconds. The same formulas work in both Excel and Google Sheets.

The Three Formulas You Need

Assume your time value is in cell A1 (e.g. 7:45 or a cell formatted as Time):

Convert toFormulaResult for 7:45
Decimal hours=A1*247.75
Total minutes=A1*1440465
Total seconds=A1*8640027900

Format the result cell as Number (not Time), or you will see a time like 7:45 instead of 7.75. The constants come from 24 hours, 1440 minutes and 86,400 seconds in a day.

Why Multiply by 24?

Excel and Google Sheets record one day as the number 1.0, so one hour is 1/24 and one minute is 1/1440. The value 7:45 is stored as 7.75 รท 24 โ‰ˆ 0.3229. Multiplying by 24 reverses that and gives 7.75 decimal hours โ€” exactly what payroll needs.

Using HOUR and MINUTE Instead

If you prefer an explicit formula, extract the parts and divide minutes by 60:

=HOUR(A1) + MINUTE(A1)/60 + SECOND(A1)/3600

For 7:45 this returns 7 + 45/60 + 0 = 7.75. The multiplier method (A1*24) is shorter and works in every version, so it is usually the better choice.

Text Times Like “7:45”

If your time is text, wrap it with TIMEVALUE:

=TIMEVALUE("7:45")*24

This returns 7.75. If hours can exceed 24 (e.g. a weekly total like 45:30 entered as text), split the text on the colon:

=LEFT(A1,FIND(":",A1)-1) + MID(A1,FIND(":",A1)+1,2)/60

Calculate Pay from Time in a Spreadsheet

Once time is in decimal hours, multiply by the rate. With clock-in in A1, clock-out in B1, lunch in C1 (minutes) and an hourly rate of $20:

=((B1-A1)*24 - C1/60) * 20

For a 9:00โ€“17:00 shift with a 60-minute lunch this gives (8 โˆ’ 1) ร— 20 = $140.00. For a no-formula version, total the week in the time card calculator, or convert single values with the time to decimal calculator.

Common Errors

For a printable reference of every minute value, see the minutes to decimal chart; for payroll rounding rules see payroll time conversion; and a plain-language explanation is in how to calculate decimal time.

Advertisement

Filling a Whole Column at Once

Once the first row has a working formula, grab the fill handle (the small square at the cell's bottom-right) and drag down. Excel and Google Sheets copy the formula to every row, adjusting the references automatically. A 200-row timesheet converts in one motion instead of 200 copy-pastes.

12-Hour vs 24-Hour Time Formats

Spreadsheets store time as a fraction of a day, so both "9:30 AM" and "17:30" work โ€” but only if the cell is a real time format, not text. If your values are typed as "9:30 AM" and the formula returns 0 or an error, re-format the column as Time first. The multiply-by-24 trick then works on every row.

Summing a Column of Decimal Hours

After conversion, total the decimal column with a normal =SUM(B2:B50). The result is already in decimal hours, so it drops straight into a pay formula: =SUM(B2:B50)*rate. No extra conversion step is needed because the column is pure numbers.

Building a Pay Column

Add a column next to decimal hours with =B2*20 (for a $20 rate) and fill down. Each row shows that day's pay; the column total is gross wages. This is the spreadsheet equivalent of the time card calculator, and it scales to any number of rows.

Fixing the #VALUE! Error

๐Ÿ’ก Sanity check: 8:00 should convert to 8.00, and 8:30 to 8.50. If you see 0.35, the cell is text โ€” fix the format.

Excel vs Google Sheets: What Changes

The multiply-by-24 method works identically in both, but a few details differ. Google Sheets handles time cells the same way, yet some Excel keyboard shortcuts (like the fill handle behaviour) look different. Array formulas (below) use the same syntax in both. If a formula works in one, it works in the other โ€” the conversion logic is identical.

Automating With Array Formulas

Instead of filling down row by row, use a single array formula that converts a whole column at once:

=ARRAYFORMULA((B2:B50-INT(B2:B50))*24)

This returns decimal hours for every time in B2:B50 in one cell. In modern Excel, =MAP() or a table column calculation does the same. One formula, no dragging, and new rows are converted automatically when the range is a table.

A Reusable Template Layout

Build the sheet once and reuse it forever:

Total E with =SUM(E:E) and you have the week's decimal hours and gross pay in two cells. Save it as a template and every timesheet is a copy-paste of raw times.

๐Ÿ’ก Lock the rate cell. Put the hourly rate in a single named cell so editing pay later never touches the formula.

Excel Shortcuts That Save Time

Handling Zero and Unexpected Values

An empty time cell returns 0 in the decimal column โ€” that is fine, not an error. A text value returns #VALUE!; re-format it as Time or parse it. A negative result (out before in, no date) means the cell is text or the times crossed midnight without a date โ€” add the date or use a 24-hour value.

A Real Example File Walkthrough

Imagine B2 = 09:00, C2 = 17:30, D2 = 0:30. The decimal formula =(C2-B2-D2)*24 gives 8.00. Fill down for the week; =SUM(E:E) returns 39.00; =E:E*Rate (or a SUM of the pay column) returns gross pay. The entire week is three formulas and a rate โ€” no manual conversion anywhere.

๐Ÿ’ก Build once, reuse forever: save the layout as a template and each timesheet is just pasting raw clock times.

Excel Tips for Large Timesheets

For sheets with hundreds of rows, convert the whole column with one array formula and total it with =SUM โ€” no per-row dragging. Freeze the header row so labels stay visible while scrolling, and use a table so new rows inherit the formula automatically. These small setup steps turn a daunting monthly sheet into a two-minute task.

Wrap-Up

Excel and Google Sheets turn clock times into decimal hours with one multiply-by-24 formula โ€” filled down a column, arrayed across a range, or built into a reusable template. Pair the spreadsheet with the converter on this site for the rare value that will not parse, and every timesheet becomes a copy-paste of raw times plus three formulas.

You're Set

With the multiply-by-24 formula and a reusable template, time-to-decimal in Excel or Sheets takes minutes. Paste your raw clock times and let the spreadsheet do the rest.