+ Reply to Thread
Results 1 to 7 of 7

Pivot columns sort

  1. #1
    Registered User
    Join Date
    02-14-2011
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    20

    Pivot columns sort

    Hello, Excel Gurus:

    Please help on this one!!

    I have two columns of data (A2:B2) with 1000 rows.

    1. Entered in Column A2 are students names and B2 is the year they graduated.

    2. I tried using pivot table to list the years (34 total) in 34 columns with the names sorted under the year they graduated.

    3. When I put both heading under rows it was sorted correctly but under one column only.

    How can I fix this to get the desire result?

    Please help when you can. Thanks in advanced

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot columns sort

    Pivot Table Tools > Design > Layout > Report Layout > Show in Outline Form
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    02-14-2011
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    20

    Re: Pivot columns sort

    I performed your request and it display "We can't recommend any PivotTables for the selected data because there are too many blank cells or duplicate valves, or not enough numerical columns." I was told to create a table first, whereas I could add records at a later time and refresh the new data. I think the pivot is the way to go so I hoping you can help. Thanks

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot columns sort

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    02-14-2011
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    20

    Re: Pivot columns sort

    I created the workbook with names that were made up.
    Attached Files Attached Files

  6. #6
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Pivot columns sort

    You can do this with Power Query:

    Please Login or Register  to view this content.
    Close and Load To Table.

    See attached example.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-14-2011
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    20

    Re: Pivot columns sort

    Wow! Amazing work. Thank You
    Last edited by searchmaster2010; 01-23-2020 at 12:52 PM. Reason: Spelling

+ 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. [SOLVED] Pivot: sort by two columns
    By jomili in forum Excel General
    Replies: 12
    Last Post: 07-04-2020, 12:27 PM
  2. [SOLVED] Sort By Two Columns in Pivot
    By AdrianneLL in forum Excel General
    Replies: 5
    Last Post: 04-24-2017, 02:49 PM
  3. [SOLVED] Sort pivot table by difference of two columns
    By rawbeanz in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-06-2015, 08:32 AM
  4. How to sort all columns in a pivot?
    By JohnnyWalker in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 07-11-2014, 01:30 AM
  5. Sort Columns in Pivot Tables
    By les8 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 01-25-2013, 05:03 PM
  6. Replies: 0
    Last Post: 12-12-2008, 12:06 AM
  7. How to sort Pivot table columns?
    By ramki in forum Excel General
    Replies: 1
    Last Post: 07-16-2008, 02:29 AM

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