+ Reply to Thread
Results 1 to 4 of 4

Sort pivot table based on first column entry

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    New York, US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Sort pivot table based on first column entry

    I wish to sort the row (customers) by the date of their first invoice. This should enable be to see the build-up of revenue by customer. See attached for desired result.. I wish to sort customer by the date of their first invoice within the pivot table if possible. I wish to sort the row by an inactive field (invoice date). Thanks
    Attached Files Attached Files
    Last edited by Derek Cavanagh; 11-19-2013 at 10:44 PM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Sort pivot table based on first column entry

    In E2 Cell Tye
    #

    In E3 Cell

    =IF(COUNTIF($A$3:A3,A3)=1,COUNTIF($B$3:$B$18,"<="&B3),VLOOKUP(A3,$A$3:E3,5,0))

    Drag it down…

    Place the cursor in PT and Change the Data Source to include the New Column>> Data!$A$2:$E$18

    Drag and drop the # field in the first place of Row Field.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    04-12-2013
    Location
    New York, US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Sort pivot table based on first column entry

    Thank you very much. That works perfect. I'm not sure how but I'll go now and work through it..teach a man to fist...

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Sort pivot table based on first column entry

    Glad it helps you and thanks for the feedback and rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sort pivot table based on column selected in another sheet
    By holmes123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 05:42 PM
  2. Replies: 0
    Last Post: 11-11-2011, 04:10 PM
  3. Sort a Pivot Table Based on a Range
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-12-2009, 11:56 AM
  4. Sort Pivot Table Based on Partial String
    By yawnzzzz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2008, 02:41 PM
  5. [SOLVED] Sort a Column of Dates in Pivot Table
    By Linny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-22-2005, 09:05 PM

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