Excel graph subclsification - excel

I have this information from which I am generating a graph, but I would like to add a subclassification.
I currently have the table and graph as follows:
I would like to know if there is any way to add a sub-classification so that
something like this is left, taking the data from column A:
Thanks for your support....

Yes, you can use "Pivot Table" & "Pivot Chart".
Go to "Insert" tab and click "Pivot Table". Select your data range and the position for your table. Arrange fields as appears on screenshot attached. After that, on the same "Insert" tab click "Pivot Chart" and configure it's style to match your requirements.

This can be done without a pivot table. Remove the duplicates in column A, then edit the chart source, click the Edit button for the Horizontal Axis Labels and select A2:B7.
Or, if you want to use a pivot chart, then pull both estado and nombre into the row area of the pivot panel.

Related

Merge two tables with some different headers in Excel formulas

I have a table in sheet a, that I want to merge with sheet b, and output on sheet c. Most of the column titles are the same but there are a few that are unique to a and to b. I want my output table to have every possible column title so that it can exist as a single table.
Please let me know if you know how to do this, or anything that can put me in the right direction. Very interested in not using Macros and using formulas.
Thanks
To merge two tables with formulas you can use either "Vlookup" or a combination of the "index" and "Match" functions. However, I prefer the method I did below Using power pivot.
If you want to use vlookup here is a good resource:
https://exceljet.net/excel-functions/excel-vlookup-function
Using Power Pivot:
You can merge 2 tables in excel using power pivot. It requires a bit of setup but it is not hard to do.
If you do not have power pivot you can get the add in by doing the following:
1.) Clicking on File on the top left > select "Options" on the bottom left
2.) From the pop up select the "Add-ins" section
3.) From the drop down on the bottom select "COM Add-ins" > click go
4.) Select the check box next to "Microsoft power pivot for excel"
5.) A new "Power Pivot" tab will appear on the ribbon
With That out of the way you first need to convert your tables into "Official excel tables" so you can merge them. To do this click anywhere onto the table and press CTRL+T. You have to do this for each table.
Next you need to click anywhere on one of your new tables and go to the data tab and select "From Table/Range"
Since there are two tables we just want to add the first table to our power pivot queries for now. In the next screen on the top left click on "Close and load to" >> then select "Only create connection".
We need to add the other table to power pivot as well but the second step is a bit different because we are going to merge the two tables.
1.) Like before click anywhere on the 2nd table and click on From Table/Range.
2.) This time when the power query editor comes up we want to select the merge "queries button" on the top
3.) From the merge window select the table that you want to join with and the click on the ID to join on from both tables. You may also want to update the join kind from the drop down list then click ok.
4.) After merging Your table will have a new column with a value of table, click on the little arrow icon next to the column header to expand it and select the fields that you want to display from table 2 and click OK. All the columns you selected will be added to the table. At this point you can rename the column names so they do not display something like Table2.Name
5.) Click close and load to from the top left, keep the first option "Table" , and click ok. You should have your new table in a new worksheet now.

Pivot Charts - how to choose columns to show on the graph

so far when I want to choose columns which I want to show in the graph, I have to click on the pivot table and then choose columns fom pivot fields. Is there a faster way to do that? I would like to add some nice looking list under the graph from which I could choose columns to show.
You don't need to use the PivotTable, you can add columns directly to the PivotChart using the same interface as for PivotTables. Right click on the PivotChart and select "Show Field List" as the bottom. The control pane will appear on the right.
Building a custom user interface below the PivotChart would require a significant amount of VBA and would not perform as well.

Chart only a subsection of data in my table

I have a table and I want to show only a part of that data as a chart.
This is my data
pets age
coco 3
rover 3
clifford 8
rugrat 7
doug 1
I want to make a chart that shows pets on the x-axis and age on the y-axis.
Importantly, I want to show data for pets that are at least four years old (clifford and rugrat).
In my use case, I cannot delete those rows from my table because it would adversely affect other tables in my worksheet. I would also rather avoid pivot tables. My band-aid fix is to select the data and manually select, in this example, clifford and rugrat.
You mentioned you prefer to avoid pivot tables. This solution utilizes pivot charts, NOT pivot tables.
Click anywhere in the table and go to insert->pivot chart
(Optional) In the Create PivotChart menu, select the check box to Add this data to the Data Model. This will prevent a Pivot Table from being created in the workbook.
Drag Age into the values section and Pets into the Axis (Categories) section.
Click the dropdown button on the Pets field and add a value filter. In this case you want the sum of age to be greater than 4. (Alternatively, you can use the Pets button on the pivot chart.)
Below is the final product. You may wish to adjust the y-axis, add titles, etc. from here.
In Case you have Office 365, Try this:
Let assume that the following:
"pets" is on column A
"age" is on column B
You are Working in "Sheet5"
File Name is Book2
From the name Manager, create a named range called "Titles" and with value as:
=FILTER(INDIRECT("Sheet5!$A$2:"&"$A$"&COUNTA(Sheet5!$A:$A)),INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B))>4)
From the name Manager, create another named range called "Values" and with value as:
=FILTER(INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B)),INDIRECT("Sheet5!$B$2:"&"$B$"&COUNTA(Sheet5!$B:$B))>4)
For Chart do the below:
Insert the chart type you need not based on the data in Column A & B and then
Click on the chart
From the Chart Design Tab click on "Select Data"
Under "Legend Entries (Series)" click "Add"
In The "Series Value" Box type Book2!Values (Values is the named range created before)
Under "Horizontal (Category) Axis Labels" click "Edit"
In The "Axis label range" Box type Book2!Titles (Titles is the named range created before)

How to make a bar chart with 2-level header in powerpoint?

I want to create a bar chart in Powerpoint with two level header, the exact result I want is as below:
I actually created this sample chart in excel.
Now I am going to duplicate it in Powerpoint. However the most I can do is one level header as below:
When I enter the "edit data" session, it seems extending the select grid (purple grid) to include the year level is impossible. Would anyone please help me?
Select the "Select Data" dialog not the "Edit Data" dialog.
Then, select, "Edit" for the "Horizontal (Category) Axis Labels"
Then, re-select the axis to include both columns A and B.
Then select OK.
Boom, your chart works.

how Create a graph comparing two dimensions

Hello I'm trying to figure out how I can do something like this with that table
Can you help me? because when I use candidate A as a row I can't compare them in a single graph
You need to start with propoer structured data you can report on. This menas you need a table with column "Candidate" and a column "Opinion". If your source is not like this we can unpivot the data.
Go to m-guery by clicking on "Transform data". In m-query, select both columns, click the "Transform" tab and click "Unpivot Columns". Result should be as below.
Close m-query "Apply & Close". In power by click on the matrix visual, add the columns to the fields as shown below. Pay attention to teh Values because you need to set it to count in the drop down.
Enjoy!

Resources