May 17 2023 02:58 AM
Hi all,
I have an Excel calendar for several teams. The columns are the dates. I want to, from a separate sheet, be able to enter a date range and count the days each person has annual leave for that range, so that I can calculate capacity.
I have dynamically created a range based on date range and team member, but putting that range into a formula is not working.
In H2 I have the value Sheet1!$I$4:Sheet1!$JB$4
This works: =SUM(Sheet1!$I$4:Sheet1!$JB$4)
But this does not work =SUM(INDIRECT(H2))
This also does not work =SUM(INDIRECT("H2"))
Please could someone advise what I need to do.
Thanks
Simon
May 17 2023 03:13 AM
SolutionEnter Sheet1!$I$4:$JB$4 in H2 and it shall work.