• 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.

Calculate No. of Days Based on Entered Dates

shaikhrulez

Active Member
Hello Champs!

Lately, I have been struggling to calculate No. of Days based on date criteria.

I want to calculate No. of Days against each period in column C if the entered dates fall within the range based on dates entered in highlighted cells.

Here is the screenshot of manual days calculation I did for mentioned period. Any help in this would be greatly appreciated. Thanks.

1697199651188.png
 

Attachments

  • Chandoo Example.xlsx
    9.5 KB · Views: 8
are they the results you expect in the image

as A5 is not in the range

if the entered dates fall within the range based on dates entered in highlighted cells.
1/1/2007 is outside the range

what do you want if its outside the range zero ?
 
Hmm, didn't work how? Did it give error message?
DATEDIF has been in all Excel version since Excel 95 (though only documented for Excel 2000).
See sample attached, side by side with mohamed's formula.
 

Attachments

  • Chandoo Example - v1 (1).xlsx
    10.4 KB · Views: 6
Back
Top