SOLVED

Creating a Complex Points-Calendar System

Copper Contributor

Hi!

I want to create a point-calendar system for a schedule that I'm creating for my team. I'm new to excel, and my many google searches led me to be more confused. Here's what I'm trying to create:

Excel Trial.jpg

The bottom table is a calendar, and each day is assigned a number of points. Each person can pick whichever shift they want to take on any day. In the image, Tony decided to take a Monday shift (Week 1), a Wednesday shift (Week 2), and a Saturday shift (Week 3). This gives Tony a total of 4 points for the month.

 

Is there a way to create this, through a series of formulas, where I can simply put in a name into the calendar and it will automatically calculate the total number of points in another table?

 

Any tips, help, and suggestions are appreciated. Thank you!

6 Replies
Please attach your sample file so that I won't have to recreate your data layout when I test the formula.
best response confirmed by Abe_Ryker (Copper Contributor)
Solution

@Abe_Ryker 

I have modified the layout of your data. In the attached file, the formula in B4, copied down rows, is: 

=SUMPRODUCT((B$13:H$17=A4)*B$11:H$11)

@Twifoo 

Wow! This is exactly what I was looking for. Thank you so much!

You’re very much welcome!

@Abe_Ryker 

I sketched out a potential solution yesterday morning but the got side tracked.

The worksheet formula reads

= SUM(assigned)

where the points assigned is, in turn, given by

= (Calendar=Name) * TRANSPOSE(Points)

The reason for the named formula (visible in Name Manager) is to overcome Excel's tendency to break up array calculation with implicit intersection.  Other ways of preventing the implicit intersection step are 1. To use Ctrl+Shift+Enter, 2. To use a limited number of functions, including SUMPRODUCT, that process arrays correctly.

 

@Twifoo 

Transposing the points table simplifies both the formula and the UI design!

1 best response

Accepted Solutions
best response confirmed by Abe_Ryker (Copper Contributor)
Solution

@Abe_Ryker 

I have modified the layout of your data. In the attached file, the formula in B4, copied down rows, is: 

=SUMPRODUCT((B$13:H$17=A4)*B$11:H$11)

View solution in original post