+ Reply to Thread
Results 1 to 10 of 10

Sorting data in a pivot table/ removing duplicate names from slicers

  1. #1
    Registered User
    Join Date
    02-03-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    67

    Question Sorting data in a pivot table/ removing duplicate names from slicers

    I have a pivot table with two issues:

    1.) I'd like to be able to sort the data below the slicers by the heading categories (in the attached pivot table, those would be the row headers such as "Contract Number," "Stardate 2375 Fees," etc).

    2.) There are repeat names in the slicers- see for example in the "National Manager Name" slicer, "Mr. Spock" appears twice. Is there a way to combine them into one? Can anyone figure out why two of the same name shows up to begin with? It's not a matter of spelling or spacing, so I just can't understand why.

    The real spreadsheet is 2,800 lines long so I made a smaller spreadsheet with fake data.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    1. You may only sort a row field within the fields which appear to the left of this field.
    2. Cell M19, M117, M147, M172 and M402 has "Mr. Spock "
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    02-03-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    1.) What do you mean by "to the left of this field?" (I.e. what are you calling "this field?")

    2.) Thanks- I suspect that is the problem with the real spreadsheets :-)

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    'This field' will be the field you wish to sort by.

  5. #5
    Registered User
    Join Date
    02-03-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    I guess I'm not understanding what you're trying to say, then.

    What I wish to do is have all the following be sortable:

    Contract Number
    Linked Contract #(s)
    Contract Name
    "Asset Balance as of Nov 29, 2013

    Stardate 2375 Fees
    Stardate 2376 Fees, Asset-Based
    Stardate 2376 Fees, Dollar-Based
    "Impact of fee increase
    as of Stardate 2376"
    Net fee reduction- Asset-based
    Net fee reduction- Dollar-based
    Starship Financial Institution (SFI) Name
    SFI ID #
    "Fee Increase Offset
    "Customer Service Agent


    (These are all the columns I selected as "row headers."

    Is it possible for all of these to be sortable?

    Thanks

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    No. If you will try to sort Linked Contract #(s) for example, it will only be sorted within each contract number grouping. If you wish to sort whole table by a field, it must be field on left of the pivot table.

  7. #7
    Registered User
    Join Date
    02-03-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    1.) I think maybe I understand what you're trying to say now-- are you saying that the only field you can sort by is the very leftmost field, and you cannot sort by any of the other fields?

    2.) Is there a way to use VBA code to work around this issue and make all the fields sortable?

    Thanks so much

  8. #8
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    You may sort by any field but the sort will only occur within the prior field. If there are multiple linked contracts for a contract number, you may sort the linked contract field so that it will appear in order within the Contract number field. VBA can not work around this - it is the basic principle of pivot tables that each field is a group.

  9. #9
    Registered User
    Join Date
    02-03-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    When I tried sorting, I could _only_ sort by the Contract Number field and no other fields. I guess I still don't understand your answer. Can you try simplifying the language a bit? I'm new to making pivot tables


    Thanks

  10. #10
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Sorting data in a pivot table/ removing duplicate names from slicers

    If there is contract number 1 with linked contracts 3, 8 and 1 and contract number 2 with contracts 7 and 2, you may sort linked contract field to show 1,3,8 for contract 1 and 2,7 for contract 2. You may also sort descending to show 8,3,1 for contract 1 then 7,2 for contract 2. What you may not see is linked contracts in 1,2,3,7,8 order because this would break Contract number grouping (it would have to show contract 1,2,1,2,1 in first field)

    Does this help to make it clearer?

+ 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. Removing "(Blank)" from pivot table slicers
    By tnovak in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-18-2014, 08:11 AM
  2. Is it possible for slicers in pivot table to also filter data sheet?
    By shelly2 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-22-2014, 07:08 PM
  3. Replies: 2
    Last Post: 05-24-2013, 03:58 PM
  4. Pivot Table Showing Duplicate Names
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2009, 07:49 AM
  5. Sorting names in a pivot table
    By fishy8000 in forum Excel General
    Replies: 0
    Last Post: 03-24-2005, 02:33 PM

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.6.0 RC 1