Here is a solution with a custom Function.
Actually its 2 Custom Functions cause the networkdays function from excel could not be used in VBA.
First the code for the Networkdays. This Code is not from me grabbed it once from somewhere cause its nice that you can add holidays and define the workingdays.
Next the Function that splits the Dates its very simple logic.
First 2 Parameters are the start and end of the Quartal.
next 2 Parameters are start and end of the Employee.
When the employee start is bigger then the Qx start his entry Day is the Startdate else its the first day of the Quartal
Same for the End Dates.
Attached the File with the implemented Formula
Bookmarks