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
Hello Pete,
Can you upload a sample file showing us the data structure and what you want to achieve?
Br,
Anders
Hi Pete,
The SPILL error occurs when you have data in cells that the dynamic array formula wants to spill the results to. Delete the data occupying those cells and the formula will work.
Mynda
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
Hi Pete,
Sorry, no file attached. But I assume the problem is solved as by Mynda’s suggestion.
Br,
Anders
Hi Anders,
Sorry about that, i have now uploaded my file. The issue I have is not about the spilled array and how to resolve that it is what formula is needed to capture the data onto the summary worksheet.
Many thanks
Pete
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
Thanks very much Anders I will take a look at that.
Regards
Pete