A Pivot Table Peeve..

PolarBear

Board Regular
Joined
Sep 26, 2005
Messages
215
This isn't earth shattering, but it still ticks me off...

Why can't I set the default settings for fields in the data portion of a pivot table? They always revert to "Count", even though that's hardly ever what I want to do ("Sum" works over 90% of the time).

It's just annoying when I'm building a table with 20 columns in it, and every time, I have to drop in the data field, then double click, change from Count to Sum, click off, and then repeat the whole process.

I've gone through everything I can think of Tools-Options and in the Pivot Table wizard. Am I missing something?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

bjwillingham

Active Member
Joined
Jun 17, 2003
Messages
287
Ensure that each row of the column has numerical data, with no empty cells, and it defaults to 'sum'.

Other than that, you can put a macro on your toolbar to do it.
 

bjwillingham

Active Member
Joined
Jun 17, 2003
Messages
287
Here is one I have. Build the pivot table and after it is presented, highlight the data of the fields you want to format and sum.

Sub sumf_PIVOT_FIELDS()

Application.Dialogs(xlDialogFormatNumber).Show (new_format)
new_format = ActiveCell.NumberFormat
Selection.Name = "SELECTION"

For Each curr_cell In Selection

PIVOT_TABLE = curr_cell.PivotTable.Name
PIVOT_FIELD = curr_cell.PivotField.Name
With ActiveSheet.PivotTables(PIVOT_TABLE).PivotFields(PIVOT_FIELD)
.NumberFormat = new_format
.Function = xlSum
End With
Next

End Sub
 

Forum statistics

Threads
1,141,681
Messages
5,707,791
Members
421,527
Latest member
Tamiwsw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top