Cell A1 has the value 1305.500 stored in it. I’d like to do arithmetic on it.
I want to subtract 10 seconds from it, to get the value 1255.500 instead of 1295.500.
I don’t want to change its format (right click on cell>Format cells>Numbers tab), as this makes data entry of times more tedious, and doesn’t permit me to rely only on the num pad of standard keyboard.
I’d like to use cell C1, designate A1’s value as a ‘time data type’ then go ahead and subtract 10 seconds from it.
The following works in Excel, but not in LibreCalc, 0450.000 is displayed:
=REPLACE(TEXT(--REPLACE(A1,3,0,":")-TIME(0,0,10),"mm:ss.000"),3,1,)