+ Reply to Thread
Results 1 to 4 of 4

expressing minutes negatively

  1. #1
    DJ
    Guest

    expressing minutes negatively

    I can figure out how to subtract one date/time from another, but the answer
    is always expressed "positively". I am trying to express a negative value.
    In other words, I'm trying to show a difference (in hh,mm) of something being
    "early" by 15 minutes versus being "late" by 15 minutes.

  2. #2
    Toppers
    Guest

    RE: expressing minutes negatively

    F1: <end time>
    F2: <start time>


    As Excel shows negative times as ##### take largest from smallest and prefix
    by negative sign.

    =IF(F1<F2,TEXT(F2-F1,"-" & "hh:mm"),F1-F2)

    HTH

    "DJ" wrote:

    > I can figure out how to subtract one date/time from another, but the answer
    > is always expressed "positively". I am trying to express a negative value.
    > In other words, I'm trying to show a difference (in hh,mm) of something being
    > "early" by 15 minutes versus being "late" by 15 minutes.


  3. #3
    Ardus Petus
    Guest

    Re: expressing minutes negatively

    Tools>Options>Calculation check Calendar since 1904

    Format your result as [h]:mm:ss

    HTH
    --
    AP

    "DJ" <[email protected]> a écrit dans le message de
    news:[email protected]...
    > I can figure out how to subtract one date/time from another, but the

    answer
    > is always expressed "positively". I am trying to express a negative

    value.
    > In other words, I'm trying to show a difference (in hh,mm) of something

    being
    > "early" by 15 minutes versus being "late" by 15 minutes.




  4. #4
    DJ
    Guest

    RE: expressing minutes negatively

    Thanks! Perfect!

    "Toppers" wrote:

    > F1: <end time>
    > F2: <start time>
    >
    >
    > As Excel shows negative times as ##### take largest from smallest and prefix
    > by negative sign.
    >
    > =IF(F1<F2,TEXT(F2-F1,"-" & "hh:mm"),F1-F2)
    >
    > HTH
    >
    > "DJ" wrote:
    >
    > > I can figure out how to subtract one date/time from another, but the answer
    > > is always expressed "positively". I am trying to express a negative value.
    > > In other words, I'm trying to show a difference (in hh,mm) of something being
    > > "early" by 15 minutes versus being "late" by 15 minutes.


+ 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