Oct 04 2023 03:24 AM
In the "Yearly" named sheet under column E (leaves taken), i want to add the number in column D of Jan to Dec
doesnt want to use sum option..help please
Oct 04 2023 03:33 AM
You can use the 3 D reference.
Create a 3-D reference to the same cell range on multiple worksheets - Microsoft Support
Oct 04 2023 05:11 AM - edited Oct 04 2023 05:13 AM
I did the 1st "Create a 3-D reference" part from the given link but not understanding how to apply the description provided in "Create a name for a 3-D reference"
Also note that the Row & Column for a employee is not the same from Jan to Dec
Oct 04 2023 06:00 AM
This is a 365 solution where the position of the names on a given sheet does not matter. The formula stacks the data from the 12 months and does some filtering to arrive at the totals for each person.
=LET(
stack, VSTACK(AllMonths),
employee, TAKE(stack, , 1),
Leave, TAKE(stack, , -1),
TotalLeave, LAMBDA(row, LET(filtered, FILTER(Leave, employee = row, 0), SUM(filtered))),
BYROW(Employees, TotalLeave)
)
Oct 04 2023 06:55 AM
If the row and column for an employee isn't the same in all sheets you can't use 3 D reference. An alternative could be VLOOKUP for all tables. An example is in the attached file. If you have access to Office 365 or Excel for the web i'd suggest to use @Patrick2788 's solution.