TIMEVALUE Parameter Cannot Be Parsed in Google Sheets

Google Sheets TIMEVALUE returns #VALUE! for decimal hours, dotted times, blanks, and hidden spaces. A 25:00 duration parses anyway and wraps to 1:00 AM.

本文目录

A community pool export put 13:30 与 1.5 in the same Clock column. TIMEVALUE accepted the first as a time of day and rejected the second with #VALUE!: TIMEVALUE parameter '1.5' cannot be parsed to date/time.

Google Sheets cell D2 showing #VALUE! for TIMEVALUE of 1.5, with a hover titled Error that reads TIMEVALUE parameter '1.5' cannot be parsed to date/time, and a Fix button.
Screenshot: Google Sheets, Nov 2026

The hover uses a red Error heading and includes a Fix button; I did not click Fix.

Both values look like times. 1.5 is one and a half hours on a decimal-hour report, not clock text TIMEVALUE will parse. The same column also contains 25:00 for a 25-hour hire of the dive well. That value does not raise the parse error; TIMEVALUE wraps it to 1:00 AM. The parse error is obvious. The wrap is easier to miss.

Enter this fictional session log in A1:C11 of a spreadsheet set to the United States locale (en_US). Set C2:C10 to Plain text before typing the Clock values, so Sheets does not turn 13:30 into a serial behind the scenes. In C11, enter =TIME(13,30,0) and apply the Time number format.

SessionLaneClock
S-21113:30:00
S-22313:30
S-2321:30 PM
S-24Dive25:00
S-25124:00
S-2631.5
S-27213.30
S-2812026-11-26 13:30:00
S-29Diven/a
S-3031:30:00 PM

C2 is text (ISTEXT TRUE, ISNUMBER FALSE). C11 looks similar on the grid, but it holds the numeric serial 0.5625 (ISNUMBER TRUE).

In D2:

=TIMEVALUE(C2)

The result is 0.5625, the fraction of a day for 13 hours and 30 minutes. Under Automatic the cell shows 0.5625; under Time it shows 1:30:00 PM; under Duration, 13:30:00. =TIME(13,30,0) stores the same serial, but a cell left on Automatic already displays 1:30:00 PM. The date and time cheat sheet covers both functions; the rest of this page is about the values TIMEVALUE will not parse, and the durations it will parse by wrapping past midnight.

Decimal hours and dotted clock text

C7 holds the text 1.5. C8 holds 13.30, a dotted lookalike for 13:30. =TIMEVALUE(C7) returns #VALUE! with TIMEVALUE parameter '1.5' cannot be parsed to date/time. =TIMEVALUE(C8) returns #VALUE! with TIMEVALUE parameter '13.30' cannot be parsed to date/time. The same message appears if 1.5 is stored as a number rather than Plain text, so changing the cell format does not fix a decimal-hour figure.

For decimal hours, divide by 24:

=VALUE(C7)/24

That returns 0.0625. Automatic shows 0.0625, Time shows 1:30:00 AM, and Duration shows 1:30:00. The Time result is 90 minutes after midnight, not 1:30 PM.

If the period in C8 is genuinely an hour-minute separator, replace it with a colon:

=TIMEVALUE(SUBSTITUTE(C8,".",":"))

That returns 0.5625. I would not run this substitution on a mixed column. In a decimal-hour report, 13.30 means 13 hours and 18 minutes, and a global replace would change those values.

Fractional seconds in colon-separated text are fine: =TIMEVALUE("13:30:00.000") also returns 0.5625.

25:00 wraps to 1:00 AM

C5 contains 25:00 与 C6 contains 24:00. Neither one produced the parse error. =TIMEVALUE(C5) returns approximately 0.04166666667, the same serial as =TIME(25,0,0). Under Time both display 1:00:00 AM; under Duration both display 1:00:00, not 25:00:00. TIMEVALUE accepts the text and wraps the extra hour past midnight, just as TIME does.

=TIMEVALUE(C6) returns 0. Time displays 12:00:00 AM, and Duration displays 0:00:00. That is midnight, not a 24-hour duration.

Google Sheets showing TIMEVALUE of 25:00 as 0.04166666667 and 1:00:00 AM beside an elapsed-hours conversion of 1.041666667 displayed as 25:00:00.
Screenshot: Google Sheets, Nov 2026

To keep 25 elapsed hours as a fraction of a day:

=VALUE(INDEX(SPLIT(C5,":"),1,1))/24+VALUE(INDEX(SPLIT(C5,":"),1,2))/1440

The result is approximately 1.041666667. Time still shows 1:00:00 AM (the clock of day), but Duration shows 25:00:00. Use this kind of conversion for elapsed hours, not for a scheduled start time. The guide to summing time over 24 hours covers how to display accumulated durations without dropping the extra day.

Replacing TIMEVALUE with TIME on these inputs does not preserve the 25-hour hire either. Both functions wrap.

Clock text, AM/PM, and a date-time stamp

The missing seconds and the lowercase pm were not the problem. =TIMEVALUE(C3) on 13:30, =TIMEVALUE(C4) on 1:30 PM, and =TIMEVALUE("1:30 pm") each return 0.5625, with Time displaying 1:30:00 PM.

C9 holds a full stamp, 2026-11-26 13:30:00. =TIMEVALUE(C9) also returns 0.5625. There is no need to split the date and time first if you only want the clock fraction. Keep the original stamp if the session date still matters.

Blanks, empty strings, and n/a

Leave C12 genuinely empty. =TIMEVALUE(C12) 与 =TIMEVALUE("") both return #VALUE! with TIMEVALUE parameter '' cannot be parsed to date/time. =TIMEVALUE(C10) returns #VALUE! with TIMEVALUE parameter 'n/a' cannot be parsed to date/time.

Once those missing marks are identified:

=IF(OR(C10="",C10="n/a"),"",TIMEVALUE(C10))

For C10 the result is an empty string (ISNUMBER FALSE). Unlike a blanket IFERROR, this leaves an unexpected parse error visible, and it does not replace a missing time with zero, which would look like midnight.

When a serial already holds the time

C11 already contains the result of TIME. You can use =C11 directly. A formula that simply points at C11 inherits the Time display 1:30:00 PM; a Number format such as 0.0000 shows 0.5625.

If you pass that serial back into TIMEVALUE anyway, the result follows the displayed format, not the underlying number alone. =TIMEVALUE(C11) returns 0.5625 while C11 is formatted as Time (1:30:00 PM). The same serial formatted as 0.0000, or typed as the number 0.5625 and left on Automatic, returns #VALUE! with TIMEVALUE parameter '0.5625' cannot be parsed to date/time.

A mixed column can branch on type, but only when the numeric cells are actually time serials, not decimal hours, and only if you know how those serials are formatted:

=IF(ISNUMBER(C11),C11,TIMEVALUE(C11))

On C11 this keeps 0.5625. On the text in C2 it converts to the same fraction. It would be the wrong branch for the number 1.5.

The DATEVALUE cannot be parsed page covers the sister problem with date text and date serials.

A non-breaking space before PM

Text copied from a web page sometimes puts a non-breaking space where a normal space belongs. In C13:

="1:30"&UNICHAR(160)&"PM"

The cell looks like C4, but =UNICODE(MID(C13,5,1)) returns 160, compared with 32 for the ordinary space in C4. =TIMEVALUE(C13) returns #VALUE! with TIMEVALUE parameter '1:30 PM' cannot be parsed to date/time. The gap in that quoted time is a non-breaking space.

=TIMEVALUE(SUBSTITUTE(C13,UNICHAR(160)," "))

That returns 0.5625.

For times I type myself, I enter them in a cell that is not formatted as Plain text and check that ISNUMBER is TRUE. For an import, I leave the source column in place and convert beside it, with a different formula for decimal hours, dotted clock text, and elapsed hours past midnight, so a 25:00 block does not quietly become 1:00 AM.

Oscar

写 Excel 与 Google Sheets 的公式和排错。

Google Sheets, 26 November 2026, new private unshared spreadsheet (locale en_US, 1000-row grid, America/New_York). Formulas were entered as user input through the Sheets API. Error text was read from the Sheets API error message (type VALUE). C2:C10 were Plain text. TIMEVALUE of C2 (13:30:00 text) returned 0.5625 (Automatic 0.5625, Time 1:30:00 PM, Duration 13:30:00). TIME(13,30,0) stored 0.5625 and displayed 1:30:00 PM under Automatic. C11 held that TIME serial formatted as Time (displayed 1:30:00 PM, ISNUMBER TRUE, ISTEXT FALSE). TIMEVALUE of C3 (13:30), C4 (1:30 PM), and the lowercase literal 1:30 pm each returned 0.5625. TIMEVALUE of C5 (25:00) returned approximately 0.04166666667, the same serial as TIME(25,0,0); Time displayed 1:00:00 AM and Duration displayed 1:00:00, not 25:00:00. TIMEVALUE of C6 (24:00) returned 0 (Time 12:00:00 AM, Duration 0:00:00). TIMEVALUE of C7 (text 1.5) and of the number 1.5 returned #VALUE!, "TIMEVALUE parameter '1.5' cannot be parsed to date/time." TIMEVALUE of C8 (13.30) returned #VALUE!, "TIMEVALUE parameter '13.30' cannot be parsed to date/time." TIMEVALUE of 13:30:00.000 and of C9 (2026-11-26 13:30:00) returned 0.5625. TIMEVALUE of a blank cell and of "" returned #VALUE!, "TIMEVALUE parameter '' cannot be parsed to date/time." TIMEVALUE of C10 (n/a) returned #VALUE!, "TIMEVALUE parameter 'n/a' cannot be parsed to date/time." TIMEVALUE of C11 (Time format) returned 0.5625. TIMEVALUE of the number 0.5625, and of the same TIME serial formatted as 0.0000 or Plain text, returned #VALUE!, "TIMEVALUE parameter '0.5625' cannot be parsed to date/time." The number 0.5625 formatted as Time was accepted again. VALUE(C7)/24 returned 0.0625 (Time 1:30:00 AM, Duration 1:30:00). VALUE(INDEX(SPLIT(C5,":"),1,1))/24+VALUE(INDEX(SPLIT(C5,":"),1,2))/1440 returned approximately 1.041666667 (Time 1:00:00 AM, Duration 25:00:00). TIMEVALUE(SUBSTITUTE(C8,".",":")) returned 0.5625. IF(OR(C10="",C10="n/a"),"",TIMEVALUE(C10)) returned an empty string. C13 was 1:30 & UNICHAR(160) & PM; UNICODE of character 5 was 160 versus 32 in C4; TIMEVALUE(C13) returned #VALUE! with a non-breaking space in the quoted time; SUBSTITUTE of UNICHAR(160) with a normal space then TIMEVALUE returned 0.5625. Desktop hover on Shot D2 used a red Error heading, the same message, and a Fix button with a sparkle icon; Fix was not clicked. Excel was not run.

本主题下一篇:表格错误与动态数组 FILTER Condition Returns #N/A or the Wrong Rows