+ Reply to Thread
Results 1 to 6 of 6

Rotating a data range 180 degrees

  1. #1
    Registered User
    Join Date
    06-14-2016
    Location
    flagstaff, USA
    MS-Off Ver
    2013
    Posts
    3

    Rotating a data range 180 degrees

    so I need to rotate (not transpose, columns stay columns) a data range (table) by 180 degrees around its axis.

    E.g.:

    1 2 3
    4 5 6
    7 8 9

    needs to become -->

    9 8 7
    6 5 4
    3 2 1

    any ideas?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Rotating a data range 180 degrees

    This can be done with formulas to duplicate the table in the desired configuration in a different location, or by a macro to overwrite it in place. What do you prefer? How many rows and columns does your table have?

    To do it with formulas use this formula in the squares in the duplicate table:

    =INDEX($A$1:$C$3,4-ROW(),8-COLUMN())

    Update the first argument to be the range for your original numbers. Change 4 to be the number of rows in the data plus 1. Change 8 to be the column where the duplicate table starts plus the number of columns in the original data.

    This example is for your sample data with the duplicate table starting in E1.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Rotating a data range 180 degrees

    Try this:

    =INDEX($A$1:$C$3,ROWS($A1:$C$3),COLUMNS(A$1:$C$3))

  4. #4
    Registered User
    Join Date
    06-14-2016
    Location
    flagstaff, USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Rotating a data range 180 degrees

    yep, they both work, thanks!

  5. #5
    Registered User
    Join Date
    06-14-2016
    Location
    flagstaff, USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Rotating a data range 180 degrees

    how about rotating it 90 degrees?
    like:

    1 2 3
    4 5 6
    7 8 9

    to -->

    3 6 9
    2 5 8
    1 4 7

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,915

    Re: Rotating a data range 180 degrees

    Try this ...

    =INDEX($A$1:$C$3,COLUMNS(A$1:$A$1),ROWS($A1:$C$3))
    Last edited by Phuocam; 06-14-2016 at 10:25 PM.

+ 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] how can i convert degrees/minutes/seconds to decimal degrees?
    By russkris in forum Excel General
    Replies: 14
    Last Post: 03-03-2015, 04:32 AM
  2. [SOLVED] convert decimal degrees to degrees minutes seconds
    By Chris r in forum Excel General
    Replies: 6
    Last Post: 12-06-2013, 06:24 AM
  3. Replies: 2
    Last Post: 05-04-2013, 07:33 AM
  4. Replies: 4
    Last Post: 09-13-2012, 11:21 AM
  5. Converting Lat/Long (Degrees Minutes Seconds) to Decimal Degrees
    By Jeremy Rayne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2008, 06:02 PM
  6. [SOLVED] how can i convert degrees/minutes/seconds to decimal degrees?
    By Chrissy in forum Excel General
    Replies: 2
    Last Post: 04-28-2006, 07:20 AM
  7. calculate from degrees to degrees/minutes/seconds on excel?
    By C. Hollinger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2006, 05:00 PM

Tags for this Thread

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