Autopopulate a calendar? - Cross month issue

I got a series of questions and thank for some experts I managed to solve all of them.

But now I got a new requirement to calculate the "working days" not only limited to a particular month, but this time to allow cross month calculation.

Please check the sheet "Calendar (Expected)" for what I try to achieve.

Current:

Untitled.png
Expected:

Untitled1.png
Thank you.
Costs.xlsx
trowaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

abbas abdullaCommented:
Hi,
What days other than public holidays should be considered as non working days?
0
trowaAuthor Commented:
Hi,

Saturdays and Sundays are not working days.

There's also a worksheet named "Off Days" which indicate non working days.

Thank you.
0
abbas abdullaCommented:
Hi,
Here is my solution:
1. Create Table includes Public Holidays and off.
2.  make sure all entries in calendar are formulas that returns date and not value.
3. Use this formula to find the number of working days =NETWORKDAYS(B4,H4,PHolidays[Dates])

Check the attached file it will be more clear for you

Best regards,
Abbas Abdulla
Costs.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
trowaAuthor Commented:
Thank you for your suggestion.
0
abbas abdullaCommented:
You are welcomed
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Spreadsheets

From novice to tech pro — start learning today.