Results 1 to 5 of 5

Thread: pivot table - sort items with different order for each parent item

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,446
    Location
    Quote Originally Posted by tjmtest View Post
    That said the main reason is because my boss wants it like this.
    The worst reason, but the most understandable .

    I can't see anything in pivots that would facilitate this, the only way I could think is to have a calculated column in the original data that holds an index that gives the order that you want (something like
    =IF(A2="P1",MATCH(B2,{"C1","C3","C2"},0),1))
    , although that could get out of hand if you have lots of different types.
    Last edited by Aussiebear; 02-18-2025 at 01:31 AM.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •