![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
at work i have to input time for the average
lenght of the call and then convert into seconds. is there a formula to do so like a1 is 3:15 in b1 i want a formula to convert the 3:15 into just seconds which would be 195 thanks |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
If cell A1 contains a time value formatted as m:ss then enter the following formula in cell B1...
=A1*86400 If cell A1 contains "3:15" use... =TIMEVALUE("0:"&A1)*86400 [ This Message was edited by: Mark W. on 2002-04-23 11:03 ] |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
thanks
just what i was looking for how did u know that formula chris |
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
also do u know what the formula is to convert back into minutes and seconds
thanks chris |
|
|
|
|
|
#5 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#6 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
the second one
|
|
|
|
|
|
#7 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
where B1 contains the seconds as an integer. |
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=TIMEVALUE("0:"&A1)*86400 ...first converts your text string to a time value and then converts that fraction of a day into seconds. |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|