Solved

Excel Bar Graph help

Posted on 2011-09-21
8
360 Views
Last Modified: 2012-05-12
I am having trouble getting a Bar Graph. I have a sheet with 9 columns. A represents a city, B is the Percentage of visitors who made a purchase, and C is the Number of visitors. Columns B and C are repeated three more times. Each two columns represent a year (B/C = 2005, D/E = 2006, etc.)

How do I get a bar chart that will show two bars for each year. A blue one that will show the Percent Visited and a Red one showing Number Visited. This would be repeated three times so that each years has a two color bar, blue showing percent and red showing number. (Color can be anything I used blue/red for illustration.) I want to graph only one row.

Sheet
0
Comment
Question by:Jess31
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 8

Expert Comment

by:ragnarok89
ID: 36576779
Not sure, it works fine for me... I highlight cells A1 to I3 then click the graph button. I leave all settings to their defaults and just click next next next - and I get exactly what I expect.
0
 
LVL 1

Author Comment

by:Jess31
ID: 36576807
I only get one bar when I do it (one bar for each year).
0
 
LVL 17

Expert Comment

by:andrewssd3
ID: 36576874
It doesn't look quite right to me like that either.  I think you need to rearrange the data so the years are rows, and the % visited and number visited are columns.  The you can create a column graph, but you have the problem that scales are quite different for the two series, so the % visited are hardly visible.  

I think the best way to deal with this is to plot the % visited on a secondary axis (Format data series - plot on secondary axis).  Then the bars are on top of each other, so I'd be inclined to change one series to a line superimposed on the bars which I think conveys the message you want to show.   There are other ways, but this is how I'd do it.

See attached barchart.xlsx
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Jess31
ID: 36576897
It seems like there is a second bar but it is too small to see (maybe one pixel!). So if I change it to 2000% then I see the second bar.
Also it is same color and way too short.
Here is another screenshot
Capture.JPG
0
 
LVL 17

Expert Comment

by:andrewssd3
ID: 36576948
The default plot in your picture sort of works, but only by accident.  You're actually plotting a category axis with the year followed by an empty column where the cells are merged.  Then you have the name series, which is empty as there are no numbers, and the 'Oklahoma series, which has some very small numbers (percentages less than 100% are obviously numbers less than 1), and some big numbers.  You won't be able to get this looking how you want, because you can't scale the smaller numbers differently as they are part of the same series.
0
 
LVL 1

Author Comment

by:Jess31
ID: 36577002
Is there no way I can get this?
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 500 total points
ID: 36577080
Hello,

you cannot have a clustered chart where the data series have two different scales. That will require plotting the data on two different axes.

You would need a different data layout to achieve the look and feel of a clustered chart, though.

See attached for a data layout with spacing and two series plotted on different axes.

cheers, teylyn
Book4.xlsx
0
 
LVL 2

Expert Comment

by:jan24
ID: 36577095
Here's a slight variant of teylyn's which pretties up the x-axis formatting a bit ... you may prefer the original of course! Book4-jan24.xlsx
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question