+ Reply to Thread
Results 1 to 4 of 4

Reverse selected rows & columns (Mirror)

  1. #1
    Registered User
    Join Date
    11-27-2022
    Location
    earth (Isle of Sodor)
    MS-Off Ver
    MS Excel 2019
    Posts
    22

    Reverse selected rows & columns (Mirror)

    Hello:

    How can I switch the following:
    1 2 3 4 5
    6 7 8 9 10
    11 12 13 14 15

    to look like this (which is the exact opposite rows & column):
    15 14 13 12 11
    10 9 8 7 6
    5 4 3 2 1


    Thanks in advance

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Reverse selected rows & columns (Mirror)

    Here is a Power Query Solution
    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.

    Excel 2016 (Windows) 64 bit
    A
    B
    C
    D
    E
    1
    Column1 Column2 Column3 Column4 Column5
    2
    1
    2
    3
    4
    5
    3
    6
    7
    8
    9
    10
    4
    11
    12
    13
    14
    15
    5
    6
    Column1 Column2 Column3 Column4 Column5
    7
    15
    14
    13
    12
    11
    8
    10
    9
    8
    7
    6
    9
    5
    4
    3
    2
    1
    Sheet: Sheet1
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Reverse selected rows & columns (Mirror)

    OR A FORMULA:

    =IFERROR(INDEX($A$1:$E$4,1/(1/(4-ROWS(H$1:H1)+1)),IF(COLUMNS($H1:H1)>5,"",5-MOD((COLUMNS($H1:H1)-1),5))),"")

    adjust the range (purple) to suit and the value in RED to be the number of ROWS and the values in GREEN to be the number of columns. Copy across and dnown, until blanks appear.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Reverse selected rows & columns (Mirror)

    shorten version of Power Query
    Please Login or Register  to view this content.
    or like this

    Please Login or Register  to view this content.
    Column1 Column2 Column3 Column4 Column5
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    Column5 Column4 Column3 Column2 Column1
    15
    14
    13
    12
    11
    10
    9
    8
    7
    6
    5
    4
    3
    2
    1

+ 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. How to reverse selected columns
    By doncole in forum Excel General
    Replies: 10
    Last Post: 06-15-2018, 09:34 PM
  2. How to reverse selected columns
    By doncole in forum Excel General
    Replies: 1
    Last Post: 06-12-2018, 12:40 AM
  3. [SOLVED] Why do columns and rows in the array reverse?
    By dejavision in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-19-2014, 02:05 PM
  4. Need to reverse an array (rows become columns, columns become rows)
    By duby13 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-04-2012, 05:43 PM
  5. [SOLVED] How do I reverse text (ie. get a 'mirror image') in Excel?
    By SuperNikki in forum Excel General
    Replies: 1
    Last Post: 05-09-2006, 08:10 AM
  6. How to reverse order of rows and columns
    By Johnny in forum Excel General
    Replies: 3
    Last Post: 09-11-2005, 11:05 AM
  7. [SOLVED] reverse columns and rows
    By Teri from Florida in forum Excel General
    Replies: 1
    Last Post: 08-12-2005, 12: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