Dynamic Chart from data based on drop-down...

markmdz

New Member
Joined
Mar 24, 2011
Messages
3
What a mess I've gotten myself into.

Here's my headache...
I have a good sized workbook that tracks my clients on a daily basis, then a monthly summary. ...each of the past 4 years are on individual sheets all formatted very similarly.

Example:
Sheet 1 = 2008
Sheet 2 = 2009
Sheet 3 = 2010
Sheet 4 = 2011

Each sheet has accounts listed in a row across the top of the sheet.
Just below each account name, is a YTD (year to date), and below that is a sum of all days in each month, and below that is the sales of every single day.

Not all sheets are identical, as each year new account are added. No account names are removed even if we do not do business with them in the entire year.

I have another worksheet where I want to create a dynamic chart (line graph).

I would like to create a drop-down list where the selection list is a lookup on the row where all accounts are listed on a sheet. (that's already done)

But, here's where it starts to melt my brain...

Based on the selection from the drop-down, I would like the chart to lookup that account name on all sheets (2008, 2009, 2010, and 2011), then pull the values within the accounts respective column for each month and chart that data.

So...

I select account "red stapler" from the drop-down.

Then, I lookup "red stapler" through the cell ranges identified on each sheet. ('2008'!B4:ZZ4, '2009'!B4:ZZ4, '2010'!B4:ZZ4, and '2-11'!B4:ZZ4).
Then, if "red stapler" is found in '2008'!AB4, '2009'!AC4, '2010'!AF4 and '2011'!BB4, I want it to pull data from rows 7-18 within that respective column ('2008'!AB7:AB18, '2009'!AC7:AC18, '2010'!AF7:AF18, and '2011'!BB7:BB18) and chart each value on a montly basis. (axis labels are (x-axis) JAN-DEC (7-18), and (y-axis) $ values, with each line labeled respective to the year (2008-2011).

I can map the chart out manually for each account, so the values can all be identified within the chart without trouble, it's the dynamic selection that's a royal pain in the ***.

Any help is greatly appreciated.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
...I'm more than happy to simplify (if it helps) the task by having individual drop-down lists for each sheet where I would just select the same account name on each drop-down, but the hurdle that remains (and I have no idea how to attack it) is based on the drop-down, having it capture rows 7-18 in the same columns where the name is found.
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,820
Members
452,946
Latest member
JoseDavid

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