Hi,
My data contains time lengths in the following format:
2h 18m 43s
01m 16s
I need to use to total number of seconds, so for example for the second one I want to display the number 76.
Any ideas?
Hi,
My data contains time lengths in the following format:
2h 18m 43s
01m 16s
I need to use to total number of seconds, so for example for the second one I want to display the number 76.
Any ideas?
B1 and copy down:![]()
Please Login or Register to view this content.
=86400 * SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IF(ISERROR(FIND("h", A1)), "0h ", "") & A1, "h ", ":"), "m ", ":"), "s", "")
Entia non sunt multiplicanda sine necessitate
That's awesome!
Thanks a lot!
My bad I forgot to mention that some cells only have seconds, like:
16s
How should I modify your formula? it works great when hours and/
=86400 * SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IF(ISERROR(FIND("h", A3)), "0h ", "") & IF(ISERROR(FIND("m", A3)), "0m ", "") & A3, "h ", ":"), "m ", ":"), "s", "")
Works like a charm, thanks!
You're welcome.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks