MS Excel pivot table for arranging and selecting attributes - excel

I have raw data as shown in this image:
img 1- raw data
I want to know how the pivot table in the image below is created:
img 2 req pivot table
Currently, the fields that I select are appearing as rows below one another.
[img3][3]

Using Excel 2010: Go to the "Design" tab, click the "Report Layout" dropdown, select "Show in tabular form."

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.

How to avoid conditional formatting change and pivot table columns disappearance when refreshing?

I have a pivot table which shows the relation of employees' names and FTEs per month, and I put conditional formatting according the range of the FTE:
0 - 0.85 = light orange
0.86 - 1.14 = solid green
greater than 1.14 = red
However, when I refresh the pivot table, some columns disappear, is there a way to solve this with a macro or why do I have this error?
I already have selected the field of keeping format when refreshing in pivot table options, but this is not working.
By default, the Pivot Table shows only the items for which there is data. To show all the data in a Pivot Field you have to make the following change for each field in which you want to see all the data:
Right-click an item in the pivot table field, and click Field Settings;
In the Field Settings dialog box, click the Layout & Print
tab;
Check the 'Show items with no data' check box;
Click OK.
You can also preserve cell formatting by the following simple actions:
Right-click the pivot table and choose PivotTable Options from the
resulting submenu;
Click the Layout & Format tab;
At the bottom of the options, check 'Preserve cell formatting on update' and 'Autofit column widths on update';
Click OK.

Excel graph subclsification

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.

Pivot Table shows blank value labels

I have a pivot table which ideally I would like to exclude any row labels that have empty values. The pivot table can be seen below:
As can be seen in the image, there is no values for the row label Type 2.
For some reason the option to display these items is checked and grayed out in the pivot table options under the display tab as can be seen here:
I found a number of resources online that said to check the "show items with no data" field under the Layout & print tab in field settings, but still to no avail.
Basically I want to have the above pivot table to display Type 1 and Type 3 values but not Type 2 as it has no values.
I am using Excel 2010.
Any help on this matter would be greatly appreciated!

Resources