How To Effectively Graph This Data Using Excel - excel

I'd like to create an appropriate graph for the following sort of data. I'm using an example as the actual data is 1000+ lines.
Date Player Points
02/06/2014 Bob 2500
03/06/2014 Bob 4000
04/06/2014 Bob 5100
02/06/2014 Steve 1000
03/06/2014 Steve 1500
04/06/2014 Steve 3600
02/06/2014 Sam 5000
03/06/2014 Sam 3700
04/06/2014 Sam 4100
I'd like the graph to track each player's progress over time. Ideally a line graph. I am having trouble with excel trying to do this.

Use the data above to generate a pivot table. Put the date in the Rows Area, the player in the Columns Area, and the Points in the Data Area. This will give you a column of values for each player.
Make a pivot chart from the pivot table. Each player will be plotted separately in the chart.

Related

Create a Pivot Chart which compares an individual's score with that of his teams Average score

I need to compare how Fred is performing compared to the rest of his team Team 1 in the form of Pivot Line Graph. Below is the data.
A B C D
James Team 1 20 11/05/18
Fred Team 1 50 12/11/18
Elliott Team 2 100 21/04/18
Sarah Team 1 75 11/04/18
Fred Team 1 75 11/04/18
I need to create a Pivot Table from this data and then a Pivot Chart which shows a line graph for Team 1 and a line graph overlaid for Fred. The Team scores would be the average i.e. total of C Team As / No. of Team As.
The chart would have slicers attached to other Charts where a different Name or possible Team could be selected to filter.
I can create a chart for the names or for the teams but weighing a name against the team aggregate doesn't look possible.
Ok here it is, let me know if it solves your problem
Formula in E2 is
=AVERAGE(IF($B$2:$B$26=B2,IF($C$2:$C$26=C2,$D$2:$D$26)))
It is an array formula and have to be entered using Ctrl+Shift+Enter
The pivot table is as below
and the graph looks like this
Here is the pivot options window

Pivot Table and Formulas

I have the following Pivot Table:
Product: Type: CalculateFeild:
TV Small
Computer Big
HeadPhones Medium
In the Calculate feild, I want it to calculate the number of TV's that are small for the raw date which the pivot table is created from based on the two parameters/look up values: TV and Small.
I tried creating a calculated field using IF and sum but it's not working.
Is that possible? Any tips on how?
You are looking to summarize the data, not calculate it. You already put in your parameters, TV and Small. You just need to add another column that would be the summary. For example, if your raw data is like this:
Order number Product Type
101 TV Small
102 TV Big
103 TV Big
104 Computer Medium
105 TV Small
106 TV Small
Then you can use the Order number field as your summary field, and change the setting to Count. Your resulting PivotTable would be:
Product Type Count of Order number
TV Small 3
TV Big 2
Computer Medium 1

How to build a line graph from two data sets in one table in Excel

I'm having an issue with Excel to which I can't find an accurate solution online.
I have this table:
PERSON | DATE | SIZE
==========================
Matt | 1-10 | 90.1
Jane | 1-10 | 71.3
Matt | 1-11 | 90.0
Jane | 1-11 | 71.0
Matt | 1-12 | 89.6
Jane | 1-13 | 70.2
And so on...
The thing is that this is the best solution for inputting this kind of data. I can't have two different tables, one for each person involved, because more people will probably be involved later on, and they all should be included in the same table.
As you can see, the idea is to monitor their weights. And this would be better achieved visually by a line graph that can tell each person what their progress is.
To this end, I would like to set up one graph that shows each person's progress individually as a different line. Like this:
I was wondering if there was any way of having Excel automatically build this line graph using this table but ordering values according to if cell X has value....
Not being able to find that, I also tried to set up an invisible table that would gather each set in its own column. For that, I was thinking of using an IF statement but I can't seem to find a way of getting that to populate a separate table, row by row, with the data from the original table. On the Internet I can only find how to add up all the values in a certain cell if another certain cell has X value.
I was wondering if anyone out there could give me a hand with this. Thanks in advance!
I would use a pivot table and pivot chart to accomplish this.
Insert a pivot table, select your entire data range (including headers).
Select Person, Date, and Size in the field list.
Under pivot table options select pivot chart and choose your desired chart type.
Move Person to Legend Fields, Date to Axis Fields, and Size to Values.
Right click the pivot table and go to PivotTable Options
Under "For empty cells show: " write N/A (this will let Excel ignore missing dates)
Here is an example of the blank values.
Let me know if any further clarification is needed.

Display Grouped AND Individual labels in Excel Bar Chart

I'm trying to create a chart that contains the percentage of Paid Time Off (PTO) that people have used for the calendar year. Each person is on a specific team, so I would like to group the bars per team, but still display everyone's name. Is this possible? I have 4 teams total.
Example Data:
Employee Name Employee Team % PTO Take for Year
Person 1 Team 1 .2
Person 2 Team 1 .35
Person 3 Team 1 .6
Person 4 Team 2 .15
Person 5 Team 2 .3
The x-axis is 0% - 100% and the y-axis should be everyone's name, but grouped by team. Something like this:
Thank you!
Here's two ways to achieve similar result. You have to prepare the data a bit differently, but it's quite easy to generate this kind of a chart then.
The first way is to separate the teams into different series by separating the team values into different columns. This automatically colours the different teams in a different colour:
The second way uses multilevel categories to achieve a similar result. It's a bit easier to prepare the data based on your current data. But you would have to manually colour the teams with different colours:
I used random to generate the data so chart don't have the same values. I also used reverse axis on both charts and added a blank line between the teams to separate them a bit more. Both are simple clustered bar chart (overlap to 100 and 0 gaps), but make sure that you select the whole range of data, as shown on the first picture or excel will plot only a part of the data.

How do I Use Pivot Tables to Create One Line Per Sub Category

Forgive me if this is not the "the best" place to ask excel questions. I looked at the data analysis page and it looks like there aren't any real questions about excel in there.
I'm trying graph the sales of various products over a period of time. I'm pulling it from the database in the format
Sales Person | End of Month | Sales | Product Type
John Doe 1/31/2010 1,000 Widget A
John Doe 1/31/2010 2,000 Widget B
John Doe 1/31/2010 3,000 Widget C
John Doe 2/28/2010 5,000 Widget A
John Doe 2/28/2010 2,000 Widget B
John Doe 2/28/2010 3,000 Widget C
I then get a summary like:
Year | Month | Product | Total Sales
2010 Jan Widget A 1,000
Widget B 2,000
Widget C 3,000
Feb Widget A 5,000
Widget B 2,000
Widget C 3,000
The problem is that I'm wanting to graph The widgets as separate lines so that I can track sales against each other. Over time.
However, excel treats it all as one "total" and then shows 3 points on the graph for each month rather than showing 3 separate lines.
No matter how I manipulate it, I can't get it to make 3 separate lines.
The example above should show how it works with two products. I show how widget A and B are two points on the same line rather than belonging to two separate lines.
I have had success in the past for a different project when I hand entered information into a spreadsheet with the format of:
End of Month | Product A Sales | Product B Sales | Product C Sales
However, my current data is not in this format and it doesn't seem I can take the same approach...
Any help is welcome.
That is an excellent example for a pivot chart. Choose Insert->Pivot Table->Pivot Chart (Excel 2007). Afterwards select your original table. Then use "End of Month" for the rows, "Product Type" for the columns, and "Sum of Sales" for data. Excel will then automatically create one line per widget type (if line is not selected as default graph type you may have to change the chart type).
Based on your description, I think what you need might be a chart like this, the X-axis would be months while within each month, there would be several bars representing data of different widgets. Here I made an example based on your data.
As for data format, you should do some preprocessing to arrange your data into several (three in this case) subsets, each subset contains monthly sale data for a widget. It could look like the format below.
Jan Feb
WidgetA 1000 5000
WidgetB 2000 2000
WidgetC 3000 3000
As you could see, this is not an original Excel chart, I actually made this chart with the Funfun Excel add-in. This add-in allows you to use JavaScript directly in Excel so you could use powerful libraries like Chart.js or D3.js to make charts. Here in this example, I used Chart.js to create this chart.
Funfun also has an online editor which allows you to test your JavaScript code. For this example, you could check the details of the code on the link below.
https://www.funfun.io/1/edit/5a25653acf76561801b732b4
If you are satisfied with the result, you could easily load the result into your Excel using the URL above. Here are some screenshots of what it looks like.
Disclosure: I'm a developer of Funfun.
You can reorder the columns in the Pivot Table:
| Product | Month-Year | Total Sales
Widget A Jan 2010 1,000
Feb 2010 5,000
Widget B Jan 2010 2,000
Feb 2010 2,000
Widget C Jan 2010 3,000
Feb 2010 3,000
That would make it easier to create three series, one for each widget. Make the chart an X-Y chart and the series will line up.

Resources