MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 24th, 2002, 08:51 AM   #1
Adrae
Board Regular
 
Join Date: Feb 2002
Location: Chicago, IL USA
Posts: 306
Default

Is it possible in Excel to create a graph that puts two stacked columns side by side for comparison. For example, the first column would include a segment for product budget and a segment for services budget. The second column that would be right next to it would be stacked with product actual & product budget. There would then be 5-6 of these pairs to represent different sales channels say, or months. Does this sound possible?

Any help would be greatly appreciated.

Thanks Adrae
Adrae is offline   Reply With Quote
Old Apr 24th, 2002, 09:08 AM   #2
jrnyman
Board Regular
 
Join Date: Mar 2002
Location: Boston, MA
Posts: 105
Default

I think what you want is along the lines of a 3D stacked and clustered column chart. Only, I have no idea how to do it.

I don't know if it's possible, but it ought to be given that both clusters and stacks exist independently.
jrnyman is offline   Reply With Quote
Old Apr 24th, 2002, 12:14 PM   #3
Adrae
Board Regular
 
Join Date: Feb 2002
Location: Chicago, IL USA
Posts: 306
Default

Any ideas at all would be greatly appreciated.

Thanks
Adrae is offline   Reply With Quote
Old Apr 24th, 2002, 01:26 PM   #4
PDuPre'
Board Regular
 
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
Default

To make a double stacked bar. This is what I do. A bit difficult to explain without graphics.

A B
1 2
2 2
3 2
4 2
5 2
6 2
7 2
8 2
9 3
10 1
11 3
12 1
13 3
14 1
15 3
16 1

Column A here is the first column of data, such as the budget. Column B is the actual for that category. Numbers 1 - 16 are the different categories. 1 - 8 simply repeat for 9 - 16. You will only use the labels for 1 - 8. Labels for 9 - 16 will not be shown.

Highlight the data. Click on the Chart Wizard. Select stacked bar. and then hit Next. Select series in rows. You will now see two stacked bars. Make any other changes you wish and then hit finish.

You now have a stacked bar with 16 labels and the colors do not match. To delete labels 9 -16 click once on the Legend. Then click once on the label for 16. In this case "16". Now hit the delete key. It will delete the label, but not the graphed data. If you had clicked on the color and not the label then you would have deleted the link to the input data. Repeat for labels 9 - 16.

Now simply click on the second stacked bar and change the colors to match the first stacked bar exactly.

Now you can go back and put your data into the cell range that the graph is pulling from.

Graphs always seem to take a bit to set up, but once you have it created and finessed for the presentation save it in a manner that it can be easily reused.

Philip
PDuPre' is offline   Reply With Quote
Old Apr 24th, 2002, 01:32 PM   #5
PDuPre'
Board Regular
 
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
Default

Please note that the graph input data did not show correctly. The first column contains row labels of 1 - 16. The actual value in the cells are number 1 - 16. The second column is labelled A and the values in the first 8 rows (1-8) are 2. There are no values in the second 8 rows (9 - 16). The third column is labelled B and contains no values in the first 8 rows. The second 8 rows (9 - 16) contain the data which was 3 and 1 alternating. In this example two stacked bars will appear next to each other and be the same height (16) but have different sized bars stacked on top of each other.

Philip
PDuPre' is offline   Reply With Quote
Old Apr 24th, 2002, 01:57 PM   #6
Adrae
Board Regular
 
Join Date: Feb 2002
Location: Chicago, IL USA
Posts: 306
Default

I need a bit more help. Here is an example of my data. What I want is two stacked columns side by side, one to represent product budget & services budget & the other to represent product actual & services actual. I tried to put the column letter and row numbers applicable below, but the cut and paste from Excel is pretty sloppy. There are 4 categories, 2 for each stacked column, and 12 months which should result in 12 pairs. I can't get it to work with this data scheme. I end up with sigle stacked columns with 4 segments. Any ideas? Thanks again

A B C D E F G H I J K L M
1 Jan-02 Feb-02 Mar-02 Apr-02 May-02 Jun-02 Jul-02 Aug-02 Sep-02 Oct-02 Nov-02 Dec-02
2 Product Budget 100 100 100 100 100 100 100 100 100 100 100 100
3 Product Actual 100 100 100 100 100 100 100 100 100 100 100 100
4 Services Budget 100 100 100 100 100 100 100 100 100 100 100 100
5 Services Actual 100 100 100 100 100 100 100 100 100 100 100 100




[ This Message was edited by: Adrae on 2002-04-24 13:00 ]
Adrae is offline   Reply With Quote
Old Apr 24th, 2002, 07:49 PM   #7
PDuPre'
Board Regular
 
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
Default

Using your data in rows across. Jan-2002 is in cell B1 and Dec-2002 is in M1. Then the labels repeat again from N1 to Y1. I put the Budget data in cells B2-M2 and B4-M4 respectively. I then put the Actual information in cells N3-Y3 and N5-Y5 respectively. The labels in N1-Y1 do not matter as they will not be shown on the graph, but it makes more sense to keep them the same as B1-M1. Now when you highlight A1-Y5 and click on the Chart wizard it will attempt to create the chart you want. Just select the Stacked Column and then Next. Now since your data is set up across instead of down choose Columns and then make any other changes you want. When you click Finish the graph should be made.
Now with 24 entries the legend may not show all the entries. You can increase the size of the legend to see all the entries if they do not show up in the default graph. Once you can see them all it will be easier to determine which ones you want to delete from the legend. Procedure same as my first message from here on out.

This graph is really powerful. I hope it works well for you.

Philip
PDuPre' is offline   Reply With Quote
Old Apr 24th, 2002, 08:46 PM   #8
PDuPre'
Board Regular
 
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
Default

OK. Now that I've re-read your question I may have misinterpreted what you are trying to accomplish.
Go ahead and follow my directions above to create the graph. Once created you will notice that there is a divider between each label. What you would want is two stacked bar columns per label.

OK. Difficult to explain.

Row 1 will be your main label. Starting in B1 will be January. Columns B&C will be January data. I centered across columns so the word January will be centered across the columns. Column B is Budget and Column C is Actual. These labels are shown in B2 and C2 respectively.
Row 3 is Product Budget and row 4 is Product Actual. Row 5 is Services Budget and row 6 is Services Actual.

Now continue the month format across so December data is column X and Y.

Input your sample numbers so that only the intersection between a Budget row and a Budget column have values in them. The same for the actual. In otherwords, B3, B5, C4, and C6 will be populated but B4, B6, C3, and C5 will be empty. Repeat this format across all the months.
Now select A1-Y6 and click on Chart wizard. In Excel 2000 it will create a graph like you want. Not sure if it works in earlier versions.
PDuPre' is offline   Reply With Quote
Old Apr 25th, 2002, 07:56 AM   #9
PDuPre'
Board Regular
 
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
Default

Tested it on Excel '97 and it doesn't work the same. The graph looks OK, but the labels for January to not span Actual and Budget. A work-around for that would be to add the labels manually outside of the graph so that it prints on top of the graph in the correct spot. Or, upgrade Excel.

Philip

PDuPre' is offline   Reply With Quote
Old Apr 25th, 2002, 09:28 AM   #10
Adrae
Board Regular
 
Join Date: Feb 2002
Location: Chicago, IL USA
Posts: 306
Default

Thanks Phillip. This works great. One last question. Is there any way to eliminate the gap between the bars in the same month. So that it appears more like a clustered chart with stcked columns?

Thanks again for your help.

Adrae
Adrae is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:48 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes