Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert seconds to display minutes and seconds 1

Status
Not open for further replies.

RachelD

MIS
Jun 14, 2000
136
US
Hi - I have a column showing duration in seconds, and I want it to display in minutes and seconds (instead of 78 seconds, I want to see 1 minute 18 seconds).

How do I do this simply? (excel 2002)
thanks
Rachel
 
Format Cells and on the Number tab select custom off the bottom of the list. Scroll down the Right hand pane and select the format [h]:mm:ss.

This should roll over times
Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
I had already tried this but it did not convert properly. For example, 66 seconds converted to 1584:00:00.
 
Are the figures the result of a formula based on times or are they just numbers type into the cell?

Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
Just numbers typed into a cell. They are currently formatted as General.
 
Try looking at Microsoft.com knowledge base for Q214095

Get back if thats no help Neil Berryman
IT Trainer
neil_berryman@btopenworld.com
 
Hi Rachel - try this formula
=INT(A1/60)&"m "&A1-(INT(A1/60)*60)&"s"

where your time in seconds is in A1. This will produce
1m 6s for 66 or 1m 18s for 78

If you want the words "Minute(s)" and "Second(s)" you'll need an IF statement to check whether it's 1 or more than 1 and adjust the grammer appropriately

HTH
~Geoff~
[noevil]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top