I'm trying to subtract one elapsed time from another, where the times are in the format of 1.12.43 (i.e. 1 minute, 12.43 seconds)
None of the times are longer than ten minutes.
I've been playing around with the cell formatting for ages and I'm getting some seriously odd results !
Say, I've got 1.12.43 in cell A1 and 50.00 in cell A2 (i.e. 50 seconds), what cell format should I be using (is it even important for the formula ?) and what formula should I be using to get the result of 22.43 (i.e. A1-A2) ??
I'm stumped ! Ta !!
Lack of planning on your part does not constitute an emergency on mine.
Also chips are "Plant-based" no matter how you cook them.
Comments
Then format sells to time, using that exact format
Then Formula =SUM(A1-A2) (also in time cell format)
Result
Or format all 3 cells to CUSTOM
H:MM:SS
Of course I misread that you were looking for 1 min 12.43 seconds... although I suppose it works as a factor?
2. The value "1" is used to define 1 day, so a time of eg 10 minutes, is going to be 1/24 x 10/60 = 0.0069444444 . I think once you've set the formatting properly, you can enter them in the form 00:10:00 or so
The value 50.00 will be interpreted as 50 days
Convert the whole lot into seconds as a number then do you calculation, then convert back to mm:ss
The SUM() function sums (ie adds together) its arguments, it is not a generic envelope function.
For the above the correct syntax is =A1-A2
Either way, formatting the cells as 'time' doesn't work, I have to specify custom, then mm.ss.00 to get it to display correctly. Subtracting is still a puzzle though - I keep getting #VALUE! errors.
Also chips are "Plant-based" no matter how you cook them.
Once you have that it's simply =TEXT(B2-A2,"h:mm:ss"). Where B2 and A2 are the cells you need
Stuff for sale:
OWC Thunderbolt 2 Dock (12 port) & Apple Time Capsule 2TB
Two approaches occur to me.
1) Divide the data into two cells, one with the minutes, one with the seconds. Use a simple formula to convert that to seconds (along the lines of =(60*A1)+B1 ), do the comparison in seconds, then convert the outcome back to minutes and seconds.
2) Have your custom format as in your first post, and use LEFT() and SEARCH() and LENGTH() and RIGHT() to determine the minutes from the seconds, convert the whole lot to seconds then as (1).
Thanks to everyone else who contributed too.
I don't truly understand what the TEXT function does, but the formula works.
Also chips are "Plant-based" no matter how you cook them.