PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting in Bar Charts with Labeling

 
 
=?Utf-8?B?U3RldmVDaGFw?=
Guest
Posts: n/a
 
      18th Apr 2006
I have created conditional formatting in a bar chart, but need to know how to
suppress N/A or 0 in the chart. My bar chart shows differences between this
year's data series, and last year's. For example, category A is -2 compared
with last year, and category B is +9. We conduct statistical testing (like in
election polling) -- and highlight negative significant differences with a
red bar, positive significant differences with a green bar, and all
insignificant differences with a grey bar. I aligned my 16 category scored in
a column, and then in the column to the right, denoted significance testing
with a -1 (negative), 0 (insignificant), and 1 (positive). Then using an IF
statement, I created the conditional formatting just fine (for example, one
of my array statements is: IF($E9=T$8,$D9,NA()). WHere E9 is the marker for
significance testing next to the actual values, and T8 is the lookup value
(-1,0-1), and D9 is my actual difference. When the cart is created, I get the
three different conditional colors I need, but when I apply the data value
lables, I get not only the value, but also N/A all over the place. And,
depending on whether it is negative/insignificant/positive, the bars are in
slightly different vertical orientations (it's really treating each category
as if it has three different series, with -1 being the first bar, 0 the
second, and 1 the third). Any suggestions on either of these conundra?
 
Reply With Quote
 
 
 
 
Andy Pope
Guest
Posts: n/a
 
      20th Apr 2006
Hi,

One way would be to replace the NA() in your formula with text.
IF($E9=T$8,$D9,"N/A")
This will stop a column/bar from displaying as the text will be treated
as zero. You can then use a custom number format to hide zero's
General;-General;;

Cheers
Andy

SteveChap wrote:
> I have created conditional formatting in a bar chart, but need to know how to
> suppress N/A or 0 in the chart. My bar chart shows differences between this
> year's data series, and last year's. For example, category A is -2 compared
> with last year, and category B is +9. We conduct statistical testing (like in
> election polling) -- and highlight negative significant differences with a
> red bar, positive significant differences with a green bar, and all
> insignificant differences with a grey bar. I aligned my 16 category scored in
> a column, and then in the column to the right, denoted significance testing
> with a -1 (negative), 0 (insignificant), and 1 (positive). Then using an IF
> statement, I created the conditional formatting just fine (for example, one
> of my array statements is: IF($E9=T$8,$D9,NA()). WHere E9 is the marker for
> significance testing next to the actual values, and T8 is the lookup value
> (-1,0-1), and D9 is my actual difference. When the cart is created, I get the
> three different conditional colors I need, but when I apply the data value
> lables, I get not only the value, but also N/A all over the place. And,
> depending on whether it is negative/insignificant/positive, the bars are in
> slightly different vertical orientations (it's really treating each category
> as if it has three different series, with -1 being the first bar, 0 the
> second, and 1 the third). Any suggestions on either of these conundra?


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
 
Reply With Quote
 
=?Utf-8?B?U3RldmVDaGFw?=
Guest
Posts: n/a
 
      20th Apr 2006


"Andy Pope" wrote:

> Hi,
>
> One way would be to replace the NA() in your formula with text.
> IF($E9=T$8,$D9,"N/A")
> This will stop a column/bar from displaying as the text will be treated
> as zero. You can then use a custom number format to hide zero's
> General;-General;;
>
> Cheers
> Andy
>
> SteveChap wrote:
> > I have created conditional formatting in a bar chart, but need to know how to
> > suppress N/A or 0 in the chart. My bar chart shows differences between this
> > year's data series, and last year's. For example, category A is -2 compared
> > with last year, and category B is +9. We conduct statistical testing (like in
> > election polling) -- and highlight negative significant differences with a
> > red bar, positive significant differences with a green bar, and all
> > insignificant differences with a grey bar. I aligned my 16 category scored in
> > a column, and then in the column to the right, denoted significance testing
> > with a -1 (negative), 0 (insignificant), and 1 (positive). Then using an IF
> > statement, I created the conditional formatting just fine (for example, one
> > of my array statements is: IF($E9=T$8,$D9,NA()). WHere E9 is the marker for
> > significance testing next to the actual values, and T8 is the lookup value
> > (-1,0-1), and D9 is my actual difference. When the cart is created, I get the
> > three different conditional colors I need, but when I apply the data value
> > lables, I get not only the value, but also N/A all over the place. And,
> > depending on whether it is negative/insignificant/positive, the bars are in
> > slightly different vertical orientations (it's really treating each category
> > as if it has three different series, with -1 being the first bar, 0 the
> > second, and 1 the third). Any suggestions on either of these conundra?

>
> --
>
> Andy Pope, Microsoft MVP - Excel
> http://www.andypope.info
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting of Bar Charts septimus Microsoft Excel Charting 2 6th Nov 2009 02:35 AM
conditional formatting in charts =?Utf-8?B?RGFuX0dyZWVu?= Microsoft Excel Charting 2 1st Mar 2006 01:08 PM
Conditional formatting in Charts? Todd Microsoft Excel Charting 1 11th Jan 2005 06:32 PM
Conditional Formatting in charts? atom Microsoft Excel Misc 0 10th Nov 2003 09:06 PM
Conditional Formatting of Charts John Stanton Microsoft Excel Charting 4 10th Nov 2003 04:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 AM.