So VALUE(3600*LEFT(A1,2))
is converting 00
, the hours place, to seconds. Item two works on the next number 02
, converting it to minutes. And so on. Now, notice in the full formula that each of the items in the list above are added +
together. That gives you the seconds and the decimals, 122.3
. If you are still having trouble understanding what this formula does, type it out slowly in Excel and pay attention to the formula hinting that pops up automatically. It tells you exactly what each part does.
If you put all the items in the above list into their own separate cells, your output would be:
0
120
2
0.3
Put it together and what do you get? Bibbidi Bobbidi Boo! Add them up and it's your answer 0 + 120 + 2 + 0.3 = 122.3
.2
- If A1 is already formatted as text, leave it. Excel still uses it correctly in the formula in cell B1. Caution, converting back and forth between formats can permanently mess up your data. I strongly recommend working off a copy of your data, rather than the main file, because when you start playing with formats and text-to-number conversions (what the VALUE formula does), there is a good chance you accidentally and permanently change your data to something unusable.
- At this point you might ask, why separate the numbers
02
and300
? the.300
is parts of a second and02
is also seconds. They are the same thing. Well, your data in the future might have a peculiar separator in the future, like,
or;
. Data I have separates it with;
and the trailing numbers are actually frames of a video within that time frame, so I have to do additional calculations on it to get decimal-seconds.