+ Reply to Thread
Results 1 to 3 of 3

Arranging columns

Hybrid View

  1. #1
    Registered User
    Join Date
    04-15-2010
    Location
    ZH, Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    2

    Arranging columns

    Hi all,

    I'd like to find a solution for this worksheet.
    I have several columns (A, C, E, G, I) which have in many cases the same value.
    To those columns belong B, D, F, H & J.
    I'd like these columns to be sorted/arranged next to each other if the value in these columns is the same and that the value remains.

    Example :
    Currently
    No.    bv     No.    ev    No.    mb  No.    vm    No.    vn
    AAA  4      AAA   -8    EEE  4     BBB  -4     GGG  -3  
    BBB  8      DDD   -3
    CCC  12    FFF    -1
    DDD  21
    EEE  17
    FFF   1
    Must become
    No.    bv    No.    ev    No.    mb  No.    vm    No.    vn
    AAA  4    AAA   -8
    BBB  8                                     BBB -4
    CCC  12
    DDD  21   DDD -3
    EEE   17                   EEE  4
    FFF    1
                                                                      GGG  -3
    Hope somebody can help.

    Greets.

    Patrick
    Attached Files Attached Files
    Last edited by teylyn; 04-15-2010 at 08:23 AM. Reason: added code tags for formatting

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Arranging columns

    Hello Paddy, welcome to the forum.

    Maybe this as a starting point.
    Shift your cells C to J well to the right an use Vlookups to look up the values according to the code in column A.

    What do you want to do with codes that are not in column A?

    See attached

    cheers
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-15-2010
    Location
    ZH, Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Arranging columns

    Hey Teylyn,

    Thanx for the prompt reply.
    Maybe I was not entirely clear in how I want the file to look.
    Attached I've added a by-hand sorted file which maybe shows better what I mean.
    (I deleted some items, way too much work)
    It's possible that column A is empty, but one of the other columns is filled so all rows should drop a row.
    If you want to take a look at the file, you probably understand what I mean.
    I'm afraid some script is required here

    Greets,

    Patrick
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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