+ Reply to Thread
Results 1 to 4 of 4

Invert selected columns

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    norway
    MS-Off Ver
    2013
    Posts
    3

    Invert selected columns

    Hi.

    I have several hundred documents looking like this:

    Start 1 A B C D E F G
    1959 P 45 60 85 120 180 275 400
    1959 R 45 60 85 120 180 275 400
    1960 S 45 60 85 110 150 210 350
    1960 T 45 60 85 120 180 300 475



    Is there an easy way to "invert" how the last 7 columns are shown so that the sheet starts from left with G then F, E, D, C, B, A without having to copy/paste each coloumn seperately into a new sheet?
    In other words, is there an easy way to get to this?:


    Start 1 G F E D C B A
    1959 P 400 275 180 120 85 60 45
    1959 R 400 275 180 120 85 60 45
    1960 S 400 275 180 120 85 60 45
    1960 T 350 210 150 110 85 60 45



    Thankful if somebody have a "quickfix" on this for a excel newbee like me :-)

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

    Re: Invert selected columns

    With A to G at the top of the columns as headers, select the data A-G from row 1 to the end of the data. Click on the Data Tab, Sort Button, Options Left to right, Sort on Row 1, Z to A click ok

    BEFORE:

    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Start
    1
    A
    B
    C
    D
    E
    F
    G
    2
    1959 P
    45
    60
    85
    120
    180
    275
    400
    3
    1959 R
    45
    60
    85
    120
    180
    275
    400
    4
    1960 S
    45
    60
    85
    110
    150
    210
    350
    5
    1960 T
    45
    60
    85
    120
    180
    300
    475


    AFTER:

    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Start
    1
    G
    F
    E
    D
    C
    B
    A
    2
    1959 P
    400
    275
    180
    120
    85
    60
    45
    3
    1959 R
    400
    275
    180
    120
    85
    60
    45
    4
    1960 S
    350
    210
    150
    110
    85
    60
    45
    5
    1960 T
    475
    300
    180
    120
    85
    60
    45
    <---------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

  3. #3
    Registered User
    Join Date
    06-17-2014
    Location
    norway
    MS-Off Ver
    2013
    Posts
    3

    Re: Invert selected columns

    Thank you! Saved me a lot of work :-)

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

    Re: Invert selected columns

    It's a simple solution. I'm glad that it works for you.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Macros to transpose from multiple columns to selected columns and maintaining cell format
    By rrajnish in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2013, 01:45 PM
  2. [SOLVED] Merging selected sheets with selected columns into another sheet
    By harry_1805 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-24-2013, 01:51 PM
  3. Invert selected filters - column headers
    By datacruncher in forum Excel General
    Replies: 2
    Last Post: 12-09-2009, 10:49 AM
  4. Invert columns
    By gshock in forum Excel General
    Replies: 3
    Last Post: 07-30-2008, 05:05 PM
  5. [SOLVED] How do I invert data so that the columns become rows??
    By jsloman in forum Excel General
    Replies: 1
    Last Post: 08-18-2005, 02:05 PM

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