Solved

need a particular column chart in Excel

Posted on 2014-02-14
3
268 Views
Last Modified: 2014-02-17
I attached a simple Excel file with two columns of data: dates and scores.

How can I create a column chart like this: http://peltiertech.com/images/2009-10/stackchartlabels02.png

where each column (A, B, C, etc...) is a quarter of year and the 3 colors are respectively:
- blue: the number of items with score < 3
- red: the number of items with score = 3
- green: the number of items with score > 3

?
data-for-chart.xlsx
0
Comment
Question by:lucavilla
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
Harry Lee earned 500 total points
ID: 39860093
Is this what you want?

If it is, you can use this as a chart template.
data-for-chart.xlsx
0
 

Author Comment

by:lucavilla
ID: 39860905
Wow.  Just invert Date <-> Class  and it's what I needed!

Questions:
- how did you set the dates as quarters?
- how can I rename the legend texts?
0
 
LVL 12

Assisted Solution

by:Harry Lee
Harry Lee earned 500 total points
ID: 39865337
lucavilla,

To invert the date and class, right click on the chart and choose Select Data.

In the Select Data Source window, click the center button Switch Row/Column.

To answer your questions,

#1 Grouping Date as Quarters is a feature of Pivot Table. I first use the Pivot Table to create a summary of the data. Put the Date into the Pivot Table AXIS (Category), Count of Score in to the Values, and Class into the Legend (Series). After that, you will have a long table listing out all the dates. Now, right click on the any of the dates and select Group. In the Grouping window, select Quarters.

There are many other grouping to choose. Like, Seconds, Minutes, Hours, Days, Months, Quarters, and Years.

#2 To rename the Legends, instead of doing it in the chart, you do it in the Pivot Table. (The light blue colored table on above the chart.

Besides any calculated fields, you can pretty much change any of the fields by selecting it and use F2 to edit them.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now