Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mreyes
 
Posts: n/a
Default subtact between times

I want to find the difference or elasped time between to times. my
spreadsheet is setup like this:
columnA columnB columnc
START END difference
TIME TIME
22.41.34 23.18.11 =(b1 - a1)

the cells are formattted as time but the value returnd in c1 is #VALUE!

Any suggestions are appreciated.


  #2   Report Post  
Junior Member
 
Location: Washington, DC
Posts: 16
Default

MrEyes,

Excel reads time as decimal values, so the multiple decimals are throwing it off. Once you tell Excel how to read your data you'll be fine. I'm assuming

part1.part2.part3

translates to

hour.minute.second

If so, use this formula:

=TIME(LEFT(B1,2),MID(B1,4,2),RIGHT(B1,2))-TIME(LEFT(A1,2),MID(A1,4,2),RIGHT(A1,2))

Basically it takes the value in each cell, cuts it up into pieces, and tells Excel that the first two characters are the HOUR, the two characters in the middle are the MINUTE, and the right two characters are the SECOND.

Knightly

Quote:
Originally Posted by mreyes
I want to find the difference or elasped time between to times. my
spreadsheet is setup like this:
columnA columnB columnc
START END difference
TIME TIME
22.41.34 23.18.11 =(b1 - a1)

the cells are formattted as time but the value returnd in c1 is #VALUE!

Any suggestions are appreciated.
__________________
---
SirKnightly
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
How are relay leg times or driving times entered and totaled? commissioner Excel Worksheet Functions 1 July 26th 05 09:27 PM
Charting and analyzing Times' times data for trends Johnny Excel Discussion (Misc queries) 1 May 5th 05 01:36 AM
Copy from worksheet to another x times Union70 Excel Discussion (Misc queries) 0 March 7th 05 09:03 PM
Formula for averaging times Denise Excel Discussion (Misc queries) 1 January 28th 05 04:05 PM
SUMPRODUCT ON TIMES Bob Phillips Excel Worksheet Functions 1 January 13th 05 05:28 PM


All times are GMT +1. The time now is 05:54 AM.

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"