+ Reply to Thread
Results 1 to 3 of 3

showing negative numbers

  1. #1
    Registered User
    Join Date
    06-03-2005
    Posts
    5

    showing negative numbers

    I am using this formula to show the amout of days between two dates.
    =datedif(today(),a2,"d") this works well as long as the date in cell A2 is in the future. If todays date is after the the date in cell A2 It wont show the days as a negative number as I want it to. insted the cell shows this. #NUM! can anyone help with this. Thanks

  2. #2
    Forum Contributor
    Join Date
    12-02-2004
    Location
    London
    Posts
    255
    Try this formula

    =IF(TODAY()>A2,-DATEDIF(A2,TODAY(),"d"),DATEDIF(TODAY(),A2,"d"))

  3. #3
    Ron de Bruin
    Guest

    Re: showing negative numbers

    Try this

    =A5-TODAY()

    The formulas that you can insert with this Add-in are working also this way
    http://www.rondebruin.nl/datarefiner.htm

    --
    Regards Ron de Bruin
    http://www.rondebruin.nl


    "dzeitler" <dzeitler.1qbf2d_1118246711.2072@excelforum-nospam.com> wrote in message
    news:dzeitler.1qbf2d_1118246711.2072@excelforum-nospam.com...
    >
    > I am using this formula to show the amout of days between two dates.
    > =datedif(today(),a2,"d") this works well as long as the date in cell
    > A2 is in the future. If todays date is after the the date in cell A2
    > It wont show the days as a negative number as I want it to. insted the
    > cell shows this. #NUM! can anyone help with this. Thanks
    >
    >
    > --
    > dzeitler
    > ------------------------------------------------------------------------
    > dzeitler's Profile: http://www.excelforum.com/member.php...o&userid=24019
    > View this thread: http://www.excelforum.com/showthread...hreadid=377418
    >




+ 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