+ Reply to Thread
Results 1 to 4 of 4

Getting Difference between two cells

  1. #1
    Registered User
    Join Date
    02-18-2006
    Location
    Vancouver, WA - USA
    MS-Off Ver
    All components of Office 2007
    Posts
    31

    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

  2. #2
    JJ
    Guest

    Re: 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. #3
    Registered User
    Join Date
    02-18-2006
    Location
    Vancouver, WA - USA
    MS-Off Ver
    All components of Office 2007
    Posts
    31
    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?

  4. #4
    Pete_UK
    Guest

    Re: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1