Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2008

Tip: Looking for answers? Try searching our database.

Conditional Formatting Colour in a Column Graph (Excel 2003)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
snowbunny00774@gmail.com - 20 May 2008 14:38 GMT
I have created a column graph, and I know I can manually colour the
columns to reflect their values.
I was wondering though if I can get them to automatically colour based
on the values being used
to create the columns
i.e.

a value from 0-79 would result in a red column
a value from 80-99 woudl result in a yellow column
a value of 100 would result in a green column

I've heard it can be done through VB, but unless the instructions were
super detailed for me to follow I would be lost!

Thanks for any help that you can give.
Bob Phillips - 20 May 2008 14:48 GMT
Add helper columns to get values for those ranges, such

C2: =IF(B2<80,B2,NA())
D2: =IF(AND(B2>=80,B2<100),B2,NA())
and so on, copy these down and then chart columns A, C, D etc. This will
give you multiple series and you can colour each series to your preferred
colour.

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

>I have created a column graph, and I know I can manually colour the
> columns to reflect their values.
[quoted text clipped - 11 lines]
>
> Thanks for any help that you can give.
snowbunny00774@gmail.com - 20 May 2008 15:17 GMT
> Add helper columns to get values for those ranges, such
>
[quoted text clipped - 32 lines]
>
> - Show quoted text -

Thanks Bob, I'm a little bit lost ( and a basic excel user) - what
will those formulas do exactly?
Right now I guess I just have one series, and it takes the info from
each cell - there are only 4, that have the numbers in them,
i.e.34, 55, 81, 100.

Should I be doing this another way?
snowbunny00774@gmail.com - 20 May 2008 18:33 GMT
> > Add helper columns to get values for those ranges, such
>
[quoted text clipped - 42 lines]
>
> - Show quoted text -

Bob? anyone?
Bob Phillips - 21 May 2008 11:59 GMT
They create a column of values or #N/A depending upon the actual value. You
then chart these columns not the original ones.

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> > Add helper columns to get values for those ranges, such
>
[quoted text clipped - 44 lines]
>
> - Show quoted text -

Bob? anyone?
Jon Peltier - 20 May 2008 21:47 GMT
I've written an illustrated tutorial about this technique:

http://peltiertech.com/Excel/Charts/ConditionalChart1.html

I've also blogged about a few VBA approaches, but the formulaic approach
above is preferred.

http://peltiertech.com/WordPress/2008/03/03/vba-conditional-formatting-of-charts
-by-value/

http://peltiertech.com/WordPress/2008/03/03/vba-conditional-formatting-of-charts
-by-category-label/

http://peltiertech.com/WordPress/2008/03/03/vba-conditional-formatting-of-charts
-by-series-name/


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

> Add helper columns to get values for those ranges, such
>
[quoted text clipped - 33 lines]
>
> - Show quoted text -

Thanks Bob, I'm a little bit lost ( and a basic excel user) - what
will those formulas do exactly?
Right now I guess I just have one series, and it takes the info from
each cell - there are only 4, that have the numbers in them,
i.e.34, 55, 81, 100.

Should I be doing this another way?
snowbunny00774@gmail.com - 21 May 2008 21:31 GMT
Jon, I'd found your blog before and because I'm a VERY basic user I
wasn't able to figure it out.

Thanks for replying, maybe you can help me a little bit more.

I have a report, and on the front page we have a category breakdown, a
summary which includes the % result from 3 previous test and the
current result. I'm trying to have the chart show on the page,
relecting each of the 4 tests, and a result scale from 0-100.

Here is what I have now -
[IMG]http://i232.photobucket.com/albums/ee306/snowpub/chart.jpg[/IMG]
I had coloured the columns myself, but I'd like them to colour
automatically as do the cells when the values are changed.

I have tried to work with your blog info and come up with this:

    Min    0    79    99
    Max    79    99    100
X Values    Y Values    Between 0 and 79    Between 79 and 99    Between 99 and
100
Visit 1    31    31    #N/A    #N/A
Visit 2    55    55    #N/A    #N/A
Visit 3    81    #N/A    81    #N/A
Visit 4    100    #N/A    #N/A    100

But now have no idea if that is right or what to do with it...as you
can tell I really don't know a whole lot about this and would
appreciate any help you can give!
Jon Peltier - 22 May 2008 17:51 GMT
So far so good. Select the first column (Visit 1, etc.) then hold Ctrl and
select the third thru fifth columns (with the formulas) and create a stacked
column chart. This should be all you need to do, plus format as needed.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______

> Jon, I'd found your blog before and because I'm a VERY basic user I
> wasn't able to figure it out.
[quoted text clipped - 25 lines]
> can tell I really don't know a whole lot about this and would
> appreciate any help you can give!
snowbunny00774@gmail.com - 23 May 2008 14:07 GMT
On May 21, 4:31 pm, snowbunny00...@gmail.com wrote:
> Jon, I'd found your blog before and because I'm a VERY basic user I
> wasn't able to figure it out.
[quoted text clipped - 25 lines]
> can tell I really don't know a whole lot about this and would
> appreciate any help you can give!

Okay, so anyone looking to conditionally format the columns on a
column graph - the formlua jon has outlined works really well. I
played with it for a bit and was able to make it work for what I
needed. Thanks Jon.

My next question is can I make that work having a column graph showing
test results from one unit in the columns and a line graph in the same
graph to reflect the test results of the business as a whole so that I
can show a comparison of unit vs the business. I will try to figure
out how to make it work with the CF formula and not mess anything up,
but if anyone can save me time that would be great!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.