Bar graph with selection of combobox

amitjulius

New Member
Joined
Jun 10, 2016
Messages
2
I know there are lots of articles and videos on this title. But I have search a lot all over the internet and has not found what I am looking for.

I will try to explain with an example. Any help is greatly appreciated.

Example:
Category
Sub Category
Data 1
Data 2
Data 3
Category A
Sub Category A1234
Category ASub Category A2426
Category BSub Category B12218
Category BSub Category B2129010
Category BSub Category B3223412
Category BSub Category B4321214
Category C
Sub Category C1421716
Category CSub Category C2523118
Category DSub Category D1624120
Category DSub Category D3467822
Category DSub Category D433324

<colgroup><col><col><col span="3"></colgroup><tbody>
</tbody>

This is on worksheet1 - Called Data.
I want to create a Dashboard on worksheet2.

On worksheet2 I created an ActiveX combobox called "Category" in which I have unique Categories from column A.

On selection of a category from Category combobox, say "Category A", I want a bar graph with following data range:

Sub Category A1234
Sub Category A2426

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>
On selection of a category from Category combobox, say "Category B", I want a bar graph with following data range:

Sub Category B12218
Sub Category B2129010
Sub Category B3223412
Sub Category B4321214

<colgroup><col><col span="3"></colgroup><tbody>
</tbody>

and so on.

If I add more Categories or more Sub Categories under the existing category, it should be considered.

How can this be done?

I have the same excel that I can share.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
9k=


2Q==
 
Upvote 0

Forum statistics

Threads
1,215,352
Messages
6,124,453
Members
449,161
Latest member
NHOJ

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