ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Changing field settings on multiple columns in pivot report...How (https://www.excelbanter.com/charts-charting-excel/69950-changing-field-settings-multiple-columns-pivot-report-how.html)

Wayne

Changing field settings on multiple columns in pivot report...How
 
You have brought up a pivot report but it defeaults to count for all columns.
Can you change all to max with one operation?

Thanks

Debra Dalgleish

Changing field settings on multiple columns in pivot report...How
 
You can't manually change all the calculations to MAX with one step.

You can change each field individually, by double-clicking on it, and
changing the summary function.

Or, you can use programming to change all the data fields. For example:

Sub MaxAllData()
'changes data fields to MAX

Dim pt As PivotTable
Dim pf As PivotField

For Each pt In ActiveSheet.PivotTables
For Each pf In pt.DataFields
pf.Function = xlMax
Next pf
Next pt

End Sub


Wayne wrote:
You have brought up a pivot report but it defeaults to count for all columns.
Can you change all to max with one operation?

Thanks



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html



All times are GMT +1. The time now is 06:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com