Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jimmydageek
 
Posts: n/a
Default Getting Difference between two cells


OK I have two cells (different than last posting) that have times listed
in there as shown below.

:20:30
and
:30:40

I want to get the difference between these two cells to show in a third
area so I can see lets say -:10:10 like D2-D1. I try to do this now
but get the #Value! Error. And no Formatting cells helps. How would I
go about this?

TIA.
Jimmy


--
Jimmydageek
------------------------------------------------------------------------
Jimmydageek's Profile: http://www.excelforum.com/member.php...o&userid=31692
View this thread: http://www.excelforum.com/showthread...hreadid=513936

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JJ
 
Posts: n/a
Default Getting Difference between two cells

Jimmydageek wrote:
OK I have two cells (different than last posting) that have times listed
in there as shown below.

:20:30
and
:30:40

I want to get the difference between these two cells to show in a third
area so I can see lets say -:10:10 like D2-D1. I try to do this now
but get the #Value! Error. And no Formatting cells helps. How would I
go about this?

TIA.
Jimmy


format those cells as time 00:00:00 and then subtract them
0:30:40-0:20:30=0:10:10 ...... the o is 12 AM as this is a 24 hour format
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jimmydageek
 
Posts: n/a
Default Getting Difference between two cells


Problem is that the report that I generate does not enter a value for
the Hour if there is no Hour. For example it literally prints :20:10
and not a "0" in the Hour spot. This creates some havoc on the
Formatting tool. Any ideas?


--
Jimmydageek
------------------------------------------------------------------------
Jimmydageek's Profile: http://www.excelforum.com/member.php...o&userid=31692
View this thread: http://www.excelforum.com/showthread...hreadid=513936

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK
 
Posts: n/a
Default Getting Difference between two cells

The values are being treated as text, so try this:

Highlight the column containing these entries, choose Data |
Text-to-columns then <finish

Hope this helps.

Pete

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 do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
Fill cells from non-adjacent cells Abes Excel Discussion (Misc queries) 2 March 25th 05 01:15 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


All times are GMT +1. The time now is 03:41 PM.

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

About Us

"It's about Microsoft Excel"