Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minutes to seconds


Hi, I'm facing a little problem and I have no idea how to solve this, so
I hope some of you guys can help me out on this.

I'd like to see a time of for instance 6:08.74 (6 minutes, 8 seconds
and 74 hundreds) to be calculated as a value of 368.74 seconds.
So let's say C10 says 6:08.74 then I'd like to have a formula in C11
which tells me that it's the same as 368.74 seconds.

Hope you guys can help me out,
thanks is advance

Partysquad.


--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile: http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=487040

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Minutes to seconds

try this formula "=c11*60*60*24" and make sure to format the cell as a
number

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minutes to seconds


Bob and Andrew, thanks for replying, I've added the formula into my
sheet, and I've format both cells (the one with the minutes and the one
with the formula) as a number, but all I get as a result is #VALUE!

Leith, I think I'm too much of a newbie in Excel to understand what
you're talking about, sorry for that, but I appreciate your reply.


--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile: http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=487040

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Minutes to seconds

See response in .newusers

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Partysquad" wrote
in message ...

Hi, I'm facing a little problem and I have no idea how to solve this, so
I hope some of you guys can help me out on this.

I'd like to see a time of for instance 6:08.74 (6 minutes, 8 seconds
and 74 hundreds) to be calculated as a value of 368.74 seconds.
So let's say C10 says 6:08.74 then I'd like to have a formula in C11
which tells me that it's the same as 368.74 seconds.

Hope you guys can help me out,
thanks is advance

Partysquad.


--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile:

http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=487040



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Minutes to seconds


Hello Partysquad,

Add a VBA module to your project. Copy the following code into it. On
the worksheet use it like any other formula.

Example:
Cell C10 = "6:08.74"
Cell C11 =TotalSeconds(C10)


Code:
--------------------

Public Function TotalSeconds(Cell As Range)

Application.Volatile

Dim I As Long
Dim TimeStr As String
Dim X

TimeStr = Cell.Value
I = InStr(1, TimeStr, ":")

If I 0 Then
X = Val(Left(TimeStr, I - 1)) * 60
X = X + Val(Right(TimeStr, Len(TimeStr) - I))
Else
X = 0
End If

TotalSeconds = X

End Function

--------------------

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
View this thread: http://www.excelforum.com/showthread...hreadid=487040



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Minutes to seconds

If 6:08.74 was in c10, I could use:
=c10*24*60*60
Format the cell as General.

Partysquad wrote:

Hi, I'm facing a little problem and I have no idea how to solve this, so
I hope some of you guys can help me out on this.

I'd like to see a time of for instance 6:08.74 (6 minutes, 8 seconds
and 74 hundreds) to be calculated as a value of 368.74 seconds.
So let's say C10 says 6:08.74 then I'd like to have a formula in C11
which tells me that it's the same as 368.74 seconds.

Hope you guys can help me out,
thanks is advance

Partysquad.

--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile: http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=487040


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Minutes to seconds

The formula you want is =C10*24*60*60 formatted as general. Why?


Times are really numbers where 1.0 is actually a day. Multiply by 24 to get
hours, then by 60 to get minutes, then by 60 again to get seconds.
--
Gary's Student


"Partysquad" wrote:


Hi, I'm facing a little problem and I have no idea how to solve this, so
I hope some of you guys can help me out on this.

I'd like to see a time of for instance 6:08.74 (6 minutes, 8 seconds
and 74 hundreds) to be calculated as a value of 368.74 seconds.
So let's say C10 says 6:08.74 then I'd like to have a formula in C11
which tells me that it's the same as 368.74 seconds.

Hope you guys can help me out,
thanks is advance

Partysquad.


--
Partysquad
------------------------------------------------------------------------
Partysquad's Profile: http://www.excelforum.com/member.php...o&userid=28970
View this thread: http://www.excelforum.com/showthread...hreadid=487040


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to convert Minutes:Seconds format to minutes with seconds con Cliff Excel Worksheet Functions 3 June 18th 09 05:22 AM
How do I change a minutes and seconds as a 2400 time to seconds? NickBrown419 Excel Worksheet Functions 1 August 10th 08 09:12 PM
Entering Seconds but displaying minutes & seconds DaveWHAC Excel Discussion (Misc queries) 7 October 20th 06 02:14 PM
Formula to Change Hours:Minutes:Seconds to Seconds only Cheri Excel Discussion (Misc queries) 4 August 30th 06 12:44 AM
Convert "Time Interval" in "hours : minutes : seconds" to seconds Ianukotnorth New Users to Excel 7 May 8th 05 08:11 PM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"