• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Datedif End date is prior to start date / days count

MichaelBuechler

New Member
Hi guys, I'm stuck, with the Datedif function and the calculation between two date ranges.

upload_2017-3-31_15-57-45.png

I'm using the following formula; =IFERROR(DATEDIF(B4,C4,"d"),"0")
The issue; the end date is prior to start date. Resulting the formula to return 0 instead of -1 ,as case above.

If tried most of the (Month)*365Days etc. function and most do not work as a string and only as a stand alone formula.

Any idea to solve the above issue?
Michael
 

Attachments

  • upload_2017-3-31_15-44-39.png
    upload_2017-3-31_15-44-39.png
    7.8 KB · Views: 4
  • upload_2017-3-31_15-51-1.png
    upload_2017-3-31_15-51-1.png
    7.6 KB · Views: 4
Back
Top