General Question

LeopardGecko's avatar

In Microsoft Excel, can you change the settings of the representative bars so they are not all the same colour?

Asked by LeopardGecko (1237points) January 18th, 2010

For example, my current Histogram for Statistics, I have the bars which represent the frequency of a test score all in red. Is there a way I can change this so some of them are red, some are green and some are yellow? Or will the always remain the same color?

Observing members: 0 Composing members: 0

3 Answers

lilikoi's avatar

If they are in the same data set, they will be the same color. If you plot more than one group of data, then the different sets will have different colors. Say I’m plotting fruit sales at my supermarket over time. I have data for the number of apples and oranges sold each month over a year. I plot a bar graph of this, so the apples will correspond to the purple bars while the oranges correspond to the orange bars and there would be one bar of each for each month with a magnitude proportional to the number of fruit sold.

CyanoticWasp's avatar

One way that you can do something to force this is to make separate data sets, out of a single data set.

Say, for example, that you have a frequency that “should” happen 5 times a day. Sometimes it happens more often (and that’s a good thing) and sometimes it happens less often (which is a bad thing). So the more-frequent occurrences should be shown in Green, the less-frequent occurrences in Red, and all ‘normal’ occurrences (or in an “acceptable range” around the 5 per day) should be shown in yellow.

Your raw data can be arranged by “Date” and “Number of Occurrences”. Then you need to set up three additional columns, which would be the graphed information. To break it down,
Col. A = Date
Col. B = # of Occurrences
Col. C = Too Low: =if( b2 < 5, b2, null())
Col. D = Just Right: =if( b2 = 5, b2, null())
Col. E = Extra Occurences: =if( b2 > 5, b2, null())

This is very simple; you can make the data sets as complex as work for you.

Now you graph only Columns C, D and E against Col. A (date), and use the appropriate color for each data set.

And there you go: One set of data broken into three virtual series.

se_ven's avatar

You can also edit the individual bars on the graph.
– Select a bar (you may have to click a second time after a pause)
– Right click, format datapoint

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther