Hello!
Firstly - maybe answer is already somewhere here, but search give only different problems answers.
I've made this neat macro that calculates days free of work and then populates this into new sheet, makes named range from it to use it in NETWORKDAYS formula last parameter.
But I'm always wondering could I not do this by adding another sheet to workbook? I have similar function that tests one day, but for this formula you need all work-free days in a year.
Already tried with similar sub that returns array, but I cannot use array in Excel formula?
So maybe I can add something like named range for array to use in in formula? Or any other way?
Best Regards
Skiff
Firstly - maybe answer is already somewhere here, but search give only different problems answers.
I've made this neat macro that calculates days free of work and then populates this into new sheet, makes named range from it to use it in NETWORKDAYS formula last parameter.
But I'm always wondering could I not do this by adding another sheet to workbook? I have similar function that tests one day, but for this formula you need all work-free days in a year.
Already tried with similar sub that returns array, but I cannot use array in Excel formula?
So maybe I can add something like named range for array to use in in formula? Or any other way?
Best Regards
Skiff