Hello, I have a table similar to this (attachment - 2 columns and 12 rows).
Here I want to plot A on x axis and B on y axis using column chart. The columns color should be based on the x value (4 unique colors for 4 unique values - P/Q/R/S). How can I do this? I have hundreds of such rows.
Thanks
Hi,
it's all about the data layout.
Like this, maybe? See attached
hth
teylyn
Microsoft MVP - Excel
At Excelforum, you can say "Thank you!" by clicking theicon below the post.
Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.
Thanks for help. I want the graph look like this, but I want to -
1. Do it without making another table specifying values of P, Q, R and S
2. Would like to have P, Q, R and S written on x axis
Can you help?
Thanks.
Well, then the only way I can see is to create a simple column chart and manually select the color for each data point.
Every other solution will involve the creation of another table to hold the data, unless you find a VBA wiz to write a macro for you.
Data layout is an essential part of chart creation. I've solved your second requirement in the attached file, where you can see that each data label now has its own color. It's like conditional formatting for charts, but you need a helper table to achieve it. (the helper table could be on a different sheet, of course!)
See what you can do with that.
cheers
Last edited by teylyn; 11-19-2009 at 07:08 AM. Reason: typo. nitpick
teylyn
Microsoft MVP - Excel
At Excelforum, you can say "Thank you!" by clicking theicon below the post.
Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.
Many thanks Teylyn.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks