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

Recognising no of days within years

John B

New Member
Help!!!!!
I am trying to write a formula that will show how many days an event took place within a year. The dates of the events are shown but I am trying to show how many days the event occurred within certain annual periods. I have the basics right, as can be seen on the attached file, the problem I am having is when the event crosses over two of the annual periods. Can anybody make suggestions as to how this can be corrected.

All comments will be gratefully accepted as I am at my wits end
 

Attachments

Hi Luke!

Amazing use of ROWS()!
I would never think of something like that, I just learned something today, thank you for that! :)

Best
 
Glad you liked it. I stumbled across the trick of combing the intersect method with rows awhile back, and find it pretty helpful when dealing with date range overlaps. :cool:
 
Hi Luke

That's brilliant!! Problem solved.

I knew somebody out there would know the answer.

Many thanks
 
Back
Top