+ Reply to Thread
Results 1 to 6 of 6

sort pivot table by numerical values

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    Oakland, California
    MS-Off Ver
    Excel 2007
    Posts
    32

    sort pivot table by numerical values

    Hi,

    I would like to sort my pivot table by numerical order and not sure how to go about it. When I sort A to Z it breaks up the consecutive number order. Any suggestions? Thanks!

    Pivot table and data attached below.

    Pierre
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sort pivot table by numerical values

    That's because the underlying data (Column C) is text

    Do this..

    -In a separate cell input 1
    - Copy this cell
    - Select range in Column C
    - paste special -- values -- Multiply -- Ok

    Now,
    - refresh the pivot table
    - Sort A to Z

    Does this work for you?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    04-23-2012
    Location
    Oakland, California
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: sort pivot table by numerical values

    Actually, let me clarify actually. What I need is it to sort as if the first 4 digits are the year and the last 1-2 digits are the week number and needs to be sorted sequentially. So perhaps this isn't the best way to represent month and week number. Can you think of a way to do this using the week number column and the year column. Maybe concatenate as "2012 8" of "8 2012"?

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sort pivot table by numerical values

    Aah I see

    In that case in Cell C2 use

    =IFERROR((B2&TEXT(A2,"00"))*1,"")

    Copy down

    Your pivot table and sorting should now work well

  5. #5
    Registered User
    Join Date
    04-23-2012
    Location
    Oakland, California
    MS-Off Ver
    Excel 2007
    Posts
    32

    Re: sort pivot table by numerical values

    thank you!!!

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: sort pivot table by numerical values

    It isn't at all clear what you are trying to accomplish but already having a column for the Year and another for the Week number, why combine them?
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Sort Numerical-With-Dash Values In Order
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 05-22-2015, 11:54 AM
  2. How to graph a pivot of non numerical values
    By Profsaid in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-01-2013, 12:02 PM
  3. [SOLVED] Sorting numerical data in a pivot table
    By katieshields in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-25-2013, 04:20 AM
  4. Replies: 0
    Last Post: 11-11-2011, 04:10 PM
  5. Replies: 2
    Last Post: 05-19-2010, 05:14 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