+ Reply to Thread
Results 1 to 15 of 15

Copy-Paste in reverse?

  1. #1
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Copy-Paste in reverse?

    Hello everyone,
    Not sure this is should be in the programming section, but still I wonder if there is any easy way to copy numbers and then paste them backwards.
    Like I have these numbers:
    1
    2
    3
    4
    5

    And I want to copy-paste them just like this:
    5
    4
    3
    2
    1


    The thing is, I have 6331 numbers like that, so I can't do it manually.
    Any help will be appreciated.
    Last edited by rogerthatman; 07-19-2012 at 08:17 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,107

    Re: Copy-Paste in reverse?

    In next column write: =INDEX($A$1:$A$6331, COUNT(A1:A6331)) and extend formula down.
    Then you can copy this column and paste values
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy-Paste in reverse?

    Thank you very much!
    But the thing is, that I have couple of numbers. So how I should do it then?
    It actually looks like this:

    1 3 5
    2 4 6
    3 4 3


    and so on..

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,107

    Re: Copy-Paste in reverse?

    and opposite you want:

    Please Login or Register  to view this content.

    So you can write in next free column (or on other sheet):

    =IF(A1="", "", INDEX(A$1:A$6331, COUNT(A1:A6331)))

  5. #5
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy-Paste in reverse?

    Well, yes, but it's not only on the A column, but also B and C.

  6. #6
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: Copy-Paste in reverse?

    Hi
    try this code and data is in sheet1 and pasting into sheet2 change according to your r equirement

    Please Login or Register  to view this content.

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,107

    Re: Copy-Paste in reverse?

    Quote Originally Posted by rogerthatman View Post
    Well, yes, but it's not only on the A column, but also B and C.
    Doesn't matter... Pull formula down and right

  8. #8
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy-Paste in reverse?

    No, nothing works.
    zbor, you just gave me a counting formula, it's far away from what I need.

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,107

    Re: Copy-Paste in reverse?

    Quote Originally Posted by rogerthatman View Post
    No, nothing works.
    zbor, you just gave me a counting formula, it's far away from what I need.
    did you even try it?
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy-Paste in reverse?

    Well, it did work. thanks. but in a column of dates it doesn't work. For instance, like this:

    11/11/2010
    12/12/2011
    04/09/2004

    And I want them also with a reverse copy-paste value, but your formula doesn't work with them.
    Last edited by rogerthatman; 07-19-2012 at 05:40 AM.

  11. #11
    Forum Contributor
    Join Date
    11-26-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    159

    Re: Copy-Paste in reverse?

    have you tried my code ? If not , see the attachment and run code and your desired output will be in sheet2.
    Attached Files Attached Files

  12. #12
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Copy-Paste in reverse?

    A column of dates worked fine for me with zbor's function

    What do you mean by doesn't work?

  13. #13
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy-Paste in reverse?

    Everything works great, thanks a lot zbor!
    But now I'm facing a new problem: I'm trying to copy the numbers I got into a different excel file, but instead, it copies me the formula.
    Is there anyway to avoid it and copy actually the exact numbers?

  14. #14
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,107

    Re: Copy-Paste in reverse?

    Copy -> Paste spetial and choose: Values

  15. #15
    Registered User
    Join Date
    03-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Copy-Paste in reverse?

    Thank you so much. Everything is working great now.

+ 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