Peltier Tech Blog

Excel Chart Add-Ins | Training | Custom Solutions | Charts and Tutorials | PTS Blog

 

Main menu:

 
Peltier Tech
Chart Add-Ins

Peltier Tech Waterfall Chart Utility
Peltier Tech Cluster-Stack Chart Utility
Peltier Tech Box and Whisker Chart Utility
Peltier Tech Marimekko Chart Utility
Peltier Tech Dot Plot Utility
Peltier Tech Cascade Chart Utility

 
Excel Dashboards

Subscribe

Site search

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Privacy Policy

Creative Commons License
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Mike Alexander’s Favorite Chart Labeling Tricks (Guest Post)

by Jon Peltier
Tuesday, April 28th, 2009
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

DataPig TechnologiesMy colleague and fellow Excel MVP Mike Alexander of DataPig Technologies has sent me another article, so instead of the blog being silent while I take today off, it will be graced with more of Mike’s wisdom. Last November, Mike shared with us his Ten Chart Design Principles.

Mike and I have taught advanced Excel classes together, and next month we will host the Second Annual Excel Dashboard Boot Camp. This will be a three-day extravaganza that will take you through the mechanisms of Excel data analysis and charting for purposes of creating effective dashboard-style visualizations.

Mike has written Excel 2007 Dashboards and Reports For Dummies, which is among the most comprehensive Dummies books I’ve come across. The book is geared towards Excel 2007, but its principles and techniques are valid for any version of Excel. Mike takes his readers through dashboard principles, data preparation and chart creation, advanced data techniques including pivot tables and dynamic ranges, automation of dashboards using VBA, and designing interactive dashboards.

Without further ado, Here’s Mike:


A Few of My Favorite Chart Labeling Tricks by Mike Alexander

Often times, a few basic labeling tricks can enhance your chart labels and help bring out an extra layer of analysis. Here are a few of my favorite ways to enhance my chart labels.

Conditionally Color the Y axis

Did you know you can apply a conditional format to your chart labels based on their values? Using custom number-formatting, you can repurpose the Excel’s number formatting to apply your own conditions. For example, if you highlight a range of cells and go to the number format dialog box, you can click on Custom in the ‘Category’ list Then you can enter in something like [Red][<=200]#,##0;[Blue][>200]#,##0.

This will color any number <= 200 Red, and any number >200 Blue.

Custom number format to apply colors to cell values based on values

Charting this range will give you colored chart labels! You can’t do this with conditional formatting.

This will color any number <= 200 Red, and any number >200 Blue.

Custom number format to apply colors to axis tick labels based on values

Jon explains these number format techniques in detail in Number Formats in Microsoft Excel.

Add layers to your X-Axis Chart labels

Have you ever created a pivot chart and got results like this?

Layered Category Axis Labels

You’ll notice that the X-axis has layered/nested labels. That is, month labels and associated years Well, you can achieve this result without a pivot chart by simply including another column of labels in your source data as shown here:

Data for Layered Category Axis Labels

Embed Data Values into your X-Axis Labels

We all know that you can use Data Tables to show the actual data values for your charts. But there are situations where you may want to show the values for only one series in your chart. For example, take a look at this chart:

Embedded Data in Category Axis Labels

How did I get the Data Table to show only the values for % Labor cost and not People Count? The answer: I didn’t use the Data Table option. I used Excel’s Alt+Enter trick.

If you’re in a cell and you hold down Alt while you hit enter, Excel will place a carriage return character into the cell, forcing your values to show on two lines.

You can take advantage of this behavior in your data labels. As you can see, the source for the Primary X-Axis label is a combination of the Month name and % Labor Cost (separated by a carriage return).

Formula that Embeds Data in Category Axis Labels

Here is a sample of the formula used to get this setup. After you enter this formula, click in the space between the quotes and hit Alt+Enter. This will trigger the carriage return.

Note the use of the TEXT function. This is necessary so that the number formatting (in this case, percentages) is retained after you apply the carriage return. See this link for more info on that: http://www.techonthenet.com/excel/formulas/text.php.


Embedded Data and Symbol in Category Axis Labels

Again, this is just a formula trick that concatenates all the values I want to see in my X-Axis label.

Formula that Embeds Data and Symbol in Category Axis Labels


Related Posts:

Bookmark and share this entry:
  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks
  • Reddit
  • MySpace
  • Slashdot
  • Yahoo! Buzz
  • Tumblr

Learn how to create Excel dashboards.

Comments


Comment from Liu ’s chart blog
Time: Tuesday, April 28, 2009, 10:05 am

ah,very cool tricks!


Comment from Jason
Time: Thursday, April 30, 2009, 8:30 am

In the final example…

How do you maintain the formatting of the triangle?

I think the triangle is Windings 3….but when I concatenate that with another cell, Wingdings doesn’t stick, and my triangle becomes the letter p.

Thanks for the tips….some nice ideas.

-Jason


Comment from Jon Peltier
Time: Thursday, April 30, 2009, 9:24 am

Jason -

Go to the Insert menu > Symbol, scroll about 2/3 of the way down, and you’ll see the black up-pointing triangle. Click Insert, and then close the dialog.

Write a comment

I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.

If you want to include an image in your comment, post it on your own site or on one of the many free image sharing sites, and include a link in your comment. I'll download your image and insert the necessary html to display the image inline.

Read the PTS Blog Comment Policy.





Subscribe without commenting

Peltier Tech Waterfall Chart Utility Peltier Tech Cluster-Stack Chart Utility Peltier Tech Box and Whisker Chart Utility Peltier Tech Marimekko Chart Utility Peltier Tech Dot Plot Utility Peltier Tech Cascade Chart Utility

Create Excel dashboards quickly with Plug-N-Play reports.