Forum

Notifications
Clear all

Holiday calendar 2021

8 Posts
3 Users
0 Reactions
78 Views
(@petebryant1961)
Posts: 4
Active Member
Topic starter
 

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

 
Posted : 09/12/2020 12:39 pm
Anders Sehlstedt
(@sehlsan)
Posts: 972
Prominent Member
 

Hello Pete,

Can you upload a sample file showing us the data structure and what you want to achieve?

Br,
Anders

 
Posted : 09/12/2020 2:12 pm
(@mynda)
Posts: 4761
Member Admin
 

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

 
Posted : 09/12/2020 11:23 pm
(@petebryant1961)
Posts: 4
Active Member
Topic starter
 

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

 
Posted : 10/12/2020 6:26 am
Anders Sehlstedt
(@sehlsan)
Posts: 972
Prominent Member
 

Hi Pete,

Sorry, no file attached. But I assume the problem is solved as by Mynda’s suggestion.

Br,
Anders

 
Posted : 10/12/2020 2:14 pm
(@petebryant1961)
Posts: 4
Active Member
Topic starter
 

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

 
Posted : 11/12/2020 6:29 am
Anders Sehlstedt
(@sehlsan)
Posts: 972
Prominent Member
 

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

 
Posted : 11/12/2020 3:24 pm
(@petebryant1961)
Posts: 4
Active Member
Topic starter
 

Thanks very much Anders I will take a look at that.

Regards

Pete

 
Posted : 12/12/2020 10:13 am
Share: