showing negative numbers

D

dzeitler

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 cel
A2 is in the future. If todays date is after the the date in cell A
It wont show the days as a negative number as I want it to. insted th
cell shows this. #NUM! can anyone help with this. Thank
 
G

Gary Brown

Try this formula

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top