PC Review


Reply
Thread Tools Rate Thread

Desperate for help with these formats

 
 
keri
Guest
Posts: n/a
 
      20th Dec 2006
The below are values in seconds and milliseconds.

28.921
36.432

If excel adds these values I get 65.353 If I change the format to
mm:ss.000 I get 28:19.200

I need to get 1:05.353. (ie 1 min and 5 secs etc) as these cells are
used in a formula. Does anyoe have any suggestions as I am stuck on my
sheet until I solve this.

Ps. I looked at len and tried some code that if the len < 6 then the
value was "00:" & cell.value but this didn't work - possibly due to my
code - but I was getting a decimal number in the cell.

 
Reply With Quote
 
 
 
 
PaulD
Guest
Posts: n/a
 
      20th Dec 2006
convert the times to days so the formula would be
=SUM(A1:A2)/86400
assuming your values are in cells A1 and A2 then apply your formatting

"keri" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
: The below are values in seconds and milliseconds.
:
: 28.921
: 36.432
:
: If excel adds these values I get 65.353 If I change the format to
: mm:ss.000 I get 28:19.200
:
: I need to get 1:05.353. (ie 1 min and 5 secs etc) as these cells are
: used in a formula. Does anyoe have any suggestions as I am stuck on my
: sheet until I solve this.
:
: Ps. I looked at len and tried some code that if the len < 6 then the
: value was "00:" & cell.value but this didn't work - possibly due to my
: code - but I was getting a decimal number in the cell.
:


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formats, how to scroll and view all formats? Bill E Microsoft Excel Worksheet Functions 0 12th May 2010 07:58 PM
Copying formats - column widths, formats, outlining to worksheets =?Utf-8?B?RGF2aWRCcjMxOA==?= Microsoft Excel Worksheet Functions 4 14th Aug 2009 05:03 AM
Conditional formats- paste special formats? =?Utf-8?B?amNhcm5leQ==?= Microsoft Excel Misc 1 1st Nov 2007 06:37 PM
Formats: Too many different cell formats error message vvaidya@pol.net Microsoft Excel Programming 3 1st Feb 2005 01:34 AM
Open Source C# code for file formats in HTML, Word, lit (unprotected), and other formats? news.austin.rr.com Microsoft Dot NET Compact Framework 3 17th Jan 2005 04:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:43 AM.