Excel Pivot Table-Hiding specific Column Value - excel

I have a pivot table that looks like below.
Critical
Yes No Total
1 3 4
1 2 3
3 0 3
4 1 5
I need to Hide the No column from the pivot but shouldn't impact total column. I have tried using Hide "No" column but that changes the value in Total field.
TIA.

Related

Dynamically change row number in excel

I got a file in excel that often changes the row number (My first column) whenever there is a insertion of data. However, there is multiple rows of data with the same row number.
Example:
1
1
2
3
3
3
Is there a way I can change them dynamically beside grouping the number together via Filter and change it manually?
Edited.
1
1
1
2
3
4
4
4
Better example. Sorry about the indentation.
I can propose a partial solution.
Set the value only in the first identical value and change only those unique values when a group of rows is inserted:
1 1
1 =A1
1 =A2
2 2
3 3
4 4
4 =A6
4 =A7
Otherwise, you do it from VBA to change all values when a new row is inserted.

Excel how to sum rows that share a common attribute

In Microsoft Excel, I have many rows of data that each start with and ID value. I want to sum all rows that have the same ID value into one row. How do I do this?
Example:
ID Fig1 Fig2 Fig 3
1 5 8 2
1 7 2 6
2 4 7 8
2 5 3 0
becomes...
ID Fig1 Fig2 Fig 3
1 12 10 8
2 9 10 8
Using your example data then the sum of Fig 1 for ID = 1 will be:
=SUMIF(A2:A5,1,B2:B5)
i.e. sumif(range to filter by, criteria, range to sum)
If you have your source data in Sheet 1 ,use the formula in the other sheet in cell B2,
=SUMIF(Sheet1!$A:$A,$A2,Sheet1!B:B)
This is just one formula that you can drag it to right and then downwards to complete the formula for the entire range. Let me know if you need any help.
You can do this using a pivot table. Drag all the columns you need into rows and then the fields you need to sum in values. By formatting the report layout as tabular and showing all the row labels, you aggregate the fields into single rows. When you are done, if you would prefer not to have the pivot table functionality, you can copy and paste as values.

Excel Pivot count occurances under condition

In excel, and preferably using pivot tables, I want to count the number of occurrences that have a specific value for different line items.
Tom | yes
Tom | no
Max | n/r
Max | yes
Max | yes
Max | no
The pivot table should have two line items (Max/Tom), one column that counts the sum of occurrences of "yes" and "no" and one column that counts only "yes". The result would be that I can say "Max has won 2 out of 3 relevant cases; Tom has won 1 out of 2 relevant cases"
I know how to do it with formulas, but was wondering if using pivot-tables is also a possibility.
If you can add helper columns I would add two, one for yes and one for no. In the yes column (assuming your data starts in cell A1), in C2 type =--(B2="yes") then in D2 type =--(B2="no")
This will return a 1 if the cell is yes or no like follows:
Name Data Yes No
Tom yes 1 0
Tom no 0 1
Max n/r 0 0
Max yes 1 0
Max yes 1 0
Max no 0 1
Then create a pivot table, put Name as Row Labels, then in Values have Sum of Yes and Sum of No
http://oi63.tinypic.com/10z5j55.jpg
Additional fields are not necessary. When creating the pivot table, set Name equal to your Row value and Data for your Columns value. Then, drag the Name field into the Values area and voila! Screenshot attached.

Product of cells with changing row number

I'd like to get the product of the last three cells in the certain column. The row numbers will change as the data increases. For example,
ColA
2
4
1
6
5
The product of the last three cells in ColA will be 30 (1*6*5).
ColA
2
4
1
6
5
7
3
Now the product of the last three cells in ColA becomes 105(5*7*3).
Is there a function in Excel (not =Product) that will do the calculation above?
Try this:
=PRODUCT(INDEX(A:A,MATCH(1E+99,A:A)-2):INDEX(A:A,MATCH(1E+99,A:A)))

Excel Pivot Table Count Unique Values

I have a pivot table like so
Field Count of Field
Value1 1
Value2 4
Value3 6
The field that shows the summation of the count shows 11 which is correct but how do I just show the unique values in Field (which is 3 in this case)
Count the values in the Excel column and subtract 1 for the Pivot header and 1 for the Grand Total (if showing).

Resources