E
Erika
I have a phone report that is displaying total time is seconds, for example I
get 2136 seconds. How do I convert that to minutes and seconds?
get 2136 seconds. How do I convert that to minutes and seconds?
Rick Rothstein (MVP - VB) said:As an alternate to the two-stage calculation, there is "ugly" formula...
=TEXT(A1/86400,"[m] \m\i\n\u\t\e\s a\n\d s \s\e\c\o\n\d\s")
or using a function call instead of the division by 86400 (=24*60*60)...
=TEXT(TIME(0,0,A1),"[m] \m\i\n\u\t\e\s a\n\d s \s\e\c\o\n\d\s")
Although, we can shortened these formulas slightly by not "escaping" the pattern string's non-metacharacters...
=TEXT(A1/86400,"[m] \mi\nut\e\s a\n\d s \s\eco\n\d\s")
(similar for the second formula).
Rick
Erika said:I have a phone report that is displaying total time is seconds, for example I
get 2136 seconds. How do I convert that to minutes and seconds?
=TEXT(A1/86400,"[m] ""minutes and ""s"" seconds""")
Rick Rothstein (MVP - VB) said:Maybe slightly less ugly:
=TEXT(A1/86400,"[m] ""minutes and ""s"" seconds""")
Thanks for noting that. I don't know why, but I keep forgetting that you can force the quote marks around pieces of text in order to escape the characters contained within them... some kind of mental block, I guess.
Rick
Dave Peterson said:Well, I had to fix it a few times to get the quotes right <vbg>.
Rick Rothstein (MVP - VB) said:Maybe slightly less ugly:
=TEXT(A1/86400,"[m] ""minutes and ""s"" seconds""")
Thanks for noting that. I don't know why, but I keep forgetting that you can force the quote marks around pieces of text in order to escape the characters contained within them... some kind of mental block, I guess.
Rick
Rick Rothstein (MVP - VB) said:LOL
Rick
Dave Peterson said:Well, I had to fix it a few times to get the quotes right <vbg>.
Rick Rothstein (MVP - VB) said:Maybe slightly less ugly:
=TEXT(A1/86400,"[m] ""minutes and ""s"" seconds""")
Thanks for noting that. I don't know why, but I keep forgetting that you can force the quote marks around pieces of text in order to escape the characters contained within them... some kind of mental block, I guess.
Rick
Same with my formulas!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.