Is it possible to merge column counts in pivot table? - excel

I have data as following:Data
This data was deployed like this because base datafile had them combined into 1 column separated by comma. Therefore I used "Text to Columns" function what resulted in 11 different columns.
With this data I created pivot table as following:Pivot table
The problem lies in that the Action columns have same text value from time to time and I would love to have them merged into one count column so that the pivot table would not look hideous like it is now.

Related

How to transpose Excel Pivot table

I have source table where I have every number category in separate column (something like already pivoted).
I would like to create pivot table, where division are in columns and number category in rows.
I need to transpose columns with rows from this layout:
to something like this:
Is it possible within standard pivot without Power query and unpivoting my data? (I guess with PQ it would be bigger and took longer to refresh).
In the pivot field pane, drag Values from the Columns box to the Rows box, and drag Divisions from the Rows box to the Columns box.

Why pivot table does not show identical rows from the initial table?

Why pivot table does not show identical rows from the initial table? My expectation is that the pivot table could show these in separate rows.
The initial table has 100 rows and my pivot table (while taking 4 columns) showing less.
To be more specific: All cells in 3 columns out of 4 are formatted as text, 1 column as number. If there are two rows which are identical in all 4 columns why only one of these is shown in the end pivot table? The number column is not summarized.
Identical values in the rows of a pivot table will be rolled up into one row. If the number is in the values area of the pivot table, it will be summarized.
See this data example:
If the number column is in the Values of the pivot table, then the data gets summarised and only three rows of text are showing. It is entirely possible to rename the column title from "Sum of ..." to something else, so it may not be apparent that the data is summarised.
If you want to show all data, then put the number column into the rows area. You can then format the pivot table to repeat all item labels if you want to see the text for all rows.
Edit: If all values in the Rows area identical, then the data will be rolled up, too. A pivot table is about summarizing data. You'd typically have something in the values area that calculates something about this unique combination of four values.
If you want to show all duplicates, you need to enter a unique 5th column in the row area.

Excel Pivot Tables - Use same field as row and column label

Looking to create a pivot table with the same field for row & column labels.
If this isn't possible in Excel, is there a suitable alternative within excel to accomplish the same result?
Plan B.
Two columns in your source data that are identical, one for ROWS one for COLUMNS.

Excel Pivot Table Exclude one Row in Calculated Field

In Microsoft Excel I want to have a pivot table that uses a calculated field for a row. I would like the calculated Row to exlude the current year. So I want two summary rows one with current year and one without. The attachment in orange shows my desired result.
I know I can manually make the cell formula for each month, but I would like it to be automatic. Any thoughts?
If your row variable was called "Year", your column variable called "Month", E1 was one of the cells in your pivot table and your values variable was called "Score", you could do something like
=GETPIVOTDATA("Score",E1,"Month","Jan")-GETPIVOTDATA("Score",E1,"Month","Jan","Year",YEAR(NOW()))
and repeat for each month.
However you would need to leave room under the table for it to expand to avoid over-writing your orange cells.
The only other way I can think of is the obvious one of copying the whole pivot table and filtering on row labels, excluding 2015.
You can copy a pivot table by selecting the whole table (can use Ctrl Shift *), right-clicking, selecting Copy and then pasting it somewhere else.
This is a mini-example showing the two methods.

Complicated Formula Issue adding specific values based on a parameter

I have a table A and table B. Table A is the input table and table B is the output table. Table A has 2 Columns; Name and Quantity, and table B also has 2 Columns Name and Quantity, but the difference is that table B already has 48 names written inside it and the Quantity section is empty, And the whole of table A is empty. I'm not doing a very good job of explaining stuff. I know but if you are with me so far then.
Now I go to table 1 and put in the following data in the syntax [Name,Quantity] : {Sam,10},{Lilly,15},{Sam,25}. After putting in that data, I want the appropriate quantity cell in table B corresponding to the names to be equal to the total quantity each name has in table B.
In this case I want the output of table B show me {Sam,35},{Lilly,15} and the rest of the Names = 0.
I would prefer if this method stays in the terms of excel formula calculations and no macros or VBA as it will be easier for me to integrate this with the other functions of the spreadsheet I'm making. But I would not mind having alternatives.
If your data format is like this:
You could use either SUMIF or a Pivot Table
If you use SUMIF, then you could list all the names with zero's.
If you use a Pivot Table, a list of names will be generated automatically.
For SUMIF, if the Quantity column of Table B starts in B2, you could use a formula like:
=SUMIF(Table_A[Name],A2,Table_A[Quantity])
and fill down to last row.
If Table A is not a "real" table, just substitute the range references for the appropriate columns.
Results of the SUMIF method:
If you want to use a Pivot Table, then with the cursor in Table A, select Insert / Pivot table. Then drag Name to the Row Labels area, and Quantity to the Values area. Format to taste.

Resources