+ Reply to Thread
Results 1 to 2 of 2

Getting max value from Pivot

  1. #1
    Registered User
    Join Date
    02-15-2012
    Location
    Reston
    MS-Off Ver
    Excel 2007
    Posts
    4

    Getting max value from Pivot

    Hi

    this may be a very basic question. I have a dataset with 5 columns (thousands of rows). i want to identify the the max users in each zip code and the corresponding ID for it. For e.g. for zip 01105, max users are 1380 for ID 010840. I want my final data to have just these 3 values.

    I tried the pivot table and used the MAX formula under values on Users. This gives me the max value of users out of all the rows for a zip code but it hides the ID corresponding to the MAX value. Any input is appreciated. thanks. How can I get the pivot table to display info in other columns corresponding to the max value.

    ID Zip City State Users
    010840 01105 Springfield MA 1380
    010120 01105 Springfield MA 1102
    010030 01105 Springfield MA 518
    011450 01105 Springfield MA 27
    013840 01105 Springfield MA 3
    010840 01107 Springfield MA 629
    010030 01107 Springfield MA 498
    010120 01107 Springfield MA 487
    011450 01107 Springfield MA 158
    013260 01107 Springfield MA 18
    012160 01840 Lawrence MA 989
    010860 01840 Lawrence MA 10
    0218870 01840 Lawrence MA 1
    011280 02119 Boston MA 3121
    010290 02119 Boston MA 2179
    012070 02119 Boston MA 1789
    01E00090 02119 Boston MA 814
    011210 02119 Boston MA 660
    01E00089 02119 Boston MA 495
    010600 02119 Boston MA 217
    010170 02119 Boston MA 205
    013600 02119 Boston MA 114
    012010 02119 Boston MA 101
    010720 02119 Boston MA 97

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Getting max value from Pivot

    add zip and id to the row fields, users to the data field and then use a 'top 10' value filter on the ID field set to show only the top 1 by sum of users
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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