# showing negative numbers

1. ## 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. Try this formula

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

3. ## 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
>

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

#### 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