+ Reply to Thread
Results 1 to 2 of 2

Thread: Pivot Table - How to get value of a cell from the Max row

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    Mass, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Pivot Table - How to get value of a cell from the Max row

    Hi, say i use 3 columns (storeName, itemID, itemValue) as the data source of a pivot table, which shows the Max (largest) itemValue for each storeName. How can i show in the pivot table a columns that show the itemID that corresponds to the itemValue displayed?

    Example
    --source data
    Store1, 1, 500
    Store1, 2, 1000
    Store2, 3, 600

    --what i want to see in the pivot table
    Store1, 2, 1000
    Store2, 3, 600

    thank you.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,608

    Re: Pivot Table - How to get value of a cell from the Max row

    See attached.

    Insert the Pivot Table

    Drag Store and Code down to Row Area,

    Drag Amount to Data area, (change Sum of ... to Max of... if desired... doesn't really matter unless you have multiple amount for same store/code combo).

    Then go to PivotTable Tools|Design tab

    From Report Layout, choose Tabular form.

    Get rid of the Subtotal and Grand Total rows, by right clicking them and unchecking the Subtotal and Grand Total options.

    Then Click on the Code drop down arrow, Select Value Filters >> Top 10

    Change the 10 to 1.

    Click Ok.
    Attached Files Attached Files
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0