+ Reply to Thread
Results 1 to 2 of 2

Changing field settings on multiple columns in pivot report...How

  1. #1
    Wayne
    Guest

    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

  2. #2
    Debra Dalgleish
    Guest

    Re: 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


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1