
Active Member

December 9, 2020

Hi,
I am unclear as to the formula I need to insert on my "summary" worksheet that will capture the holidays booked per employee & month from the other worksheet named "calendar", I thought a SUMIFS formula would give me the result I wanted but that produced a SPILL erro on the summary worksheet against the name I tried the formula on.
Any help & assistance would be much appreciated

VIP

Trusted Members

December 7, 2016


Active Member

December 9, 2020

Hi Anders,
Please see attached the excel file with two worksheets, summary & calendar.
I want to show on the calendar tab the days an employee has a holiday (inserting the word HOL) and then summarise for each employee & month on the "summary" tab those holidays taken or booked.
Thanks
Pete

VIP

Trusted Members

December 7, 2016


VIP

Trusted Members

December 7, 2016

Hi Pete,
With the data structure you have the formula needs to be adjusted per month, examples below for employee Sam.
For January, cell D18
=SUMPRODUCT((Calendar!$C$5:$C$9=$B18)*(Calendar!$D$5:$AH$9="HOL"))
For February, cell E18
=SUMPRODUCT((Calendar!$C$12:$C$15=$B18)*(Calendar!$D$12:$AH$15="HOL"))
The suggested formulas above will give 0 results for employees that have no HOL listed in the Calendar worksheet. Those can be hidden using custom number formatting.
I do suggest you try to work out a solution where you have the data entries in a tabular data format. Based on such structure it becomes a lot easier to build the formulas and above all, to add new functionalities using same data set.
I hope this gives you some help.
Br,
Anders
1 Guest(s)
