+ Reply to Thread
Results 1 to 8 of 8

inverse (flip) column of numbers

  1. #1
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    inverse (flip) column of numbers

    I have 3 col of number A B and E. I need a macro that can inverse (flip) the numbers in each col.
    ex:
    1
    2
    3
    4
    5
    6
    7
    I need a mcro that flip it so it becomes:
    7
    6
    5
    4
    3
    2
    1


    Thanks so much

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: inverse (flip) column of numbers

    Why not Sort?

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: inverse (flip) column of numbers

    Good afternoon VBisgreat
    Quote Originally Posted by VBisgreat View Post
    I have 3 col of number A B and E. I need a macro that can inverse (flip) the numbers in each col.
    Chip Pearson has posted a routine on his website that does just this. You can find it here.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: inverse (flip) column of numbers

    Quote Originally Posted by StephenR View Post
    Why not Sort?
    I would suspect that the numbers 1 - 7 are for demonstration purposes only.

    DominicB

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: inverse (flip) column of numbers

    you could just number the rows down then sort descending on those but thats three lots of operation!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Contributor
    Join Date
    05-12-2009
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    219

    Re: inverse (flip) column of numbers

    Actually, 1-7 is for demonstration purpose only it could be something like this:

    2
    10
    5
    7
    103
    19
    then becomes
    19
    103
    7
    5
    10
    2

    Thanks all for helping me!!!

  7. #7
    Registered User
    Join Date
    07-08-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: inverse (flip) column of numbers

    vbisgreat.
    Thanks! I have been trying to program my arms off for the same purpose, thanks for the post, and the link to the macro.

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,692

    Re: inverse (flip) column of numbers

    From Mr DonkeyOte

    Please Login or Register  to view this content.
    Change Range as required

    HTH
    John

+ 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