Dynamic Lookup to generate sparklines

mwtinec

New Member
Joined
Aug 21, 2013
Messages
18
All,
Hoping someone can help me out here. Here's my need.

What follows is a simplified explanation of my spreadsheet. I have two sheets ASSIGNMENTS and AVAILABLE CAPACITY

The ASSIGNMENTS sheet has a list of staff members assigned to every project we are working on. There are as many rows for a project as there is staff assigned, e.g. 3 rows for Project 1 to accommodate Jan, Leanne and Dave. Each row has the following columns: project name, staffer name, jan hrs assigned, feb hrs assigned, etc. through 2017. A staffer can appear in the sheet multiple times when assigned to different projects. It looks like this:
Excel 2010
QRTUVWXYZAAABACADAEAF
FRONTIER (Nov-'15) (Rel 1 of 3)Jan Y30303030303030
FRONTIER (Nov-'15) (Rel 1 of 3)Leanne B3434348888
FRONTIER (Nov-'15) (Rel 1 of 3)Dave L3434348888

<tbody>
[TD="align: center"]4[/TD]
[TD="bgcolor: #B1A0C7, align: center"]3RD GROUPING
(2nd grp + Rel# + TargetMo)[/TD]
[TD="bgcolor: #B1A0C7, align: center"]Assignments[/TD]
[TD="bgcolor: #B1A0C7, align: center"]SPARKLINE SHOWING CAPACITY (NEXT 12 Mos)[/TD]
[TD="bgcolor: #4F6228"]Jan-2015[/TD]
[TD="bgcolor: #4F6228"]Feb-2015[/TD]
[TD="bgcolor: #4F6228"]Mar-2015[/TD]
[TD="bgcolor: #4F6228"]Apr-2015[/TD]
[TD="bgcolor: #4F6228"]May-2015[/TD]
[TD="bgcolor: #4F6228"]Jun-2015[/TD]
[TD="bgcolor: #4F6228"]Jul-2015[/TD]
[TD="bgcolor: #4F6228"]Aug-2015[/TD]
[TD="bgcolor: #4F6228"]Sep-2015[/TD]
[TD="bgcolor: #4F6228"]Oct-2015[/TD]
[TD="bgcolor: #4F6228"]Nov-2015[/TD]
[TD="bgcolor: #4F6228"]Dec-2015[/TD]

[TD="align: center"]42[/TD]

[TD="align: center"]43[/TD]

[TD="align: center"]44[/TD]

</tbody>
Staff Assignments


On the CAPACITY sheet I have one, and only one, row for each staffer. Each row has three sections: TOTAL CAPACITY vs ASSIGNED CAPACITY vs AVAILABLE CAPACITY. The sections have columns for each month from 2015 through 2017. For this question my interest is in creating sparklines for AVAILABLE CAPACITY only. It looks like this:

Excel 2010
CAFAGAHAIAJAKALAMANAOAPAQ
NAME
Dave L
Jan Y
Leanne B

<tbody>
[TD="align: center"]6[/TD]

[TD="bgcolor: #76933C, align: center"]Jan[/TD]
[TD="bgcolor: #76933C, align: center"]Feb[/TD]
[TD="bgcolor: #76933C, align: center"]Mar[/TD]
[TD="bgcolor: #76933C, align: center"]Apr[/TD]
[TD="bgcolor: #76933C, align: center"]May[/TD]
[TD="bgcolor: #76933C, align: center"]Jun[/TD]
[TD="bgcolor: #76933C, align: center"]Jul[/TD]
[TD="bgcolor: #76933C, align: center"]Aug[/TD]
[TD="bgcolor: #76933C, align: center"]Sep[/TD]
[TD="bgcolor: #76933C, align: center"]Oct[/TD]
[TD="bgcolor: #76933C, align: center"]Nov[/TD]
[TD="bgcolor: #76933C, align: center"]Dec[/TD]

[TD="align: center"]13[/TD]

[TD="align: center"]45[/TD]
[TD="align: center"]126[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]142[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]158[/TD]
[TD="align: center"]174[/TD]
[TD="align: center"]166[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]184[/TD]

[TD="align: center"]19[/TD]

[TD="align: center"]48[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]133[/TD]
[TD="align: center"]133[/TD]
[TD="align: center"]101[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]109[/TD]
[TD="align: center"]63[/TD]
[TD="align: center"]122[/TD]
[TD="align: center"]114[/TD]
[TD="align: center"]91[/TD]
[TD="align: center"]139[/TD]

[TD="align: center"]29[/TD]

[TD="align: center"]42[/TD]
[TD="align: center"]126[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]142[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]141[/TD]
[TD="align: center"]156[/TD]
[TD="align: center"]148[/TD]
[TD="align: center"]150[/TD]
[TD="align: center"]184[/TD]

</tbody>
Staff Capacity


What I want is to have a column in the ASSIGNMENTS sheet that shows a sparkline of the available capacity for each staffer. So in the examples above the sparkline tool would look at the name in each row in ASSIGNMENTS, say Jan Y, and bring back her sparkline based on Jan Y's capacity on the CAPACITY sheet. I'd prefer that the sparkline automatically adjust to show the next 12 months,e.g. on august 1 the sparklines show aug plus 11 more months. If automatic is too difficult I'm okay with doing a manual update each month of some sort (but not to every cell obviously).

My research suggests that this will require a dynamic named range. This person had part of the solution but it wasn't quite right. Basically, I'm now stuck but I KNOW this is possible with your help. Thanks in advance!

Matt
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,223,630
Messages
6,173,456
Members
452,514
Latest member
cjkelly15

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top