Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel: convert seconds to dd Days hh:mm:ss format

I want to convert seconds into dd days hh:mm:ss.

This is what I have: I have a cell (A1) with value 457003 and in Cell B1 I am doing =Text(A1/(24*60*60),"dd hh:mm:ss" and it is returning 05 06:56:43.

What i am looking for is 05 days 06:56:43.

Please help!!

Thank you

like image 468
nmess88 Avatar asked Nov 04 '25 03:11

nmess88


1 Answers

Use this formula:

=TEXT(A1/(24*60*60),"dd \d\a\y\s hh:mm:ss")

enter image description here

Though I would simply use the formula part and do a custom format of dd \d\a\y\s hh:mm:ss. That way the number can be used in later calculations.

like image 57
Scott Craner Avatar answered Nov 05 '25 21:11

Scott Craner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!