Need help for this problem

Bomba
3StarLounger
Posts: 281
Joined: 20 Jan 2019, 19:43

Need help for this problem

Post by Bomba »

Hi,
I have a workbook that consists of 13 sheets. 12 of the sheets are identical and represent the months of the year (Name of sheets are January, February, March, etc). In these sheets, I have all the information of all 125 workers. Every sheet has column C for workers' ID and column AI for the total hours of vacation leave taken that month.
I want to use the 13th sheet (Named Summary) to see the total hours of vacation leave taken for the whole year for each worker by writing the worker's ID in cell A1 and automatically total hours of vacation leave appear in cell B1.
Is this possible?
Note: The ID consists of the number and a letter at the end. Ex: 12345C.

Thanks in advance

User avatar
p45cal
2StarLounger
Posts: 144
Joined: 11 Jun 2012, 20:37

Re: Need help for this problem

Post by p45cal »

Best attach a workbook…

Bomba
3StarLounger
Posts: 281
Joined: 20 Jan 2019, 19:43

Re: Need help for this problem

Post by Bomba »


User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Need help for this problem

Post by HansV »

See the attached version. It uses SUMPRODUCT, SUMIF and INDIRECT with a list of sheet names (month names) on the summary sheet.

Vacation Leave Records.xlsx
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

Bomba
3StarLounger
Posts: 281
Joined: 20 Jan 2019, 19:43

Re: Need help for this problem

Post by Bomba »

Hi Master,
Thanks a lot, great work.