+ Reply to Thread
Results 1 to 9 of 9

How can we turn a matrix to 180 degree in excel?

  1. #1
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    How can we turn a matrix to 180 degree in excel?

    We can easily turn a matrix to 90 degree by using of TRANSPOSE’ formula in excel. I am not a specialist in excel maybe there is another formula to turn a matrix to 180 degree. I utilized from below rule in set theory to solve this case as follows:
    Let consider set “A” and power set of A which is set “C” as follows:
    A = {a1, a2, a3, a4… an}
    C = {{}, {a1}, {a2}, {a3}, {a4}, {a1, a2}, {a1, a3},….{an}}
    Rule: Number of sets in power set (C) which are included sequence of numbers and for each specific size of members (r) can be calculated by below formula:
    N (n, r) = n - r +1
    Where: n = number of members set A, r = specific size of members in sets with sequence numbers
    Example:
    Assume, we have:
    A = {1, 2, 3, 4} then
    C = {{}, {1}, {2}, {3}, {4}, {1,2}, {1,3}, {1,4}, {2,3}, {2,4}, {3,4}, {1,2,3}, {1,2,4}, {1,3,4}, {2,3,4}, {1,2,3,4}}
    n = 4,
    r = 1, N (4, 1) = 4 and sets are: {1}, {2}, {3}, {4}
    r = 2, N (4, 2) = 3 and sets are: {1, 2}, {2, 3}, {3, 4}
    r = 3, N (4, 3) = 2 and sets are: {1, 2, 3}, {2, 3, 4}
    r = 4, N (4, 4) = 1 and set is: {1, 2, 3, 4}
    Case: How can we turn a matrix to 180 degree in excel?
    Here, I am willing to show you my solution to solve this case step by step by an example and also using of above formula (N (n, r) = n - r +1 ) as follows:
    - Assume we have a matrix of 16*8 including members of a, b, c…
    - Copy matrix between cells N1:U1 and N16:U16
    - On cell M1 to M16 fill numbers 1 to 16
    - On cell A1 fill formula = 16 – M1 + 1 which is the same N (n, r) = n - r +1 and copy to A16
    - On cell B1 copy below formula and copy to K1 and B16 to K16
    =IFERROR(INDEX($M:$W,MATCH($A1,$M:$M,0),COLUMN(B1)),"")

    Have you another solution to solve this case?

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How can we turn a matrix to 180 degree in excel?

    Are you sure, it's 180 deg turn? I'd rather say it is mirrored against horizontal axis (or in other words, turned upside down).
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How can we turn a matrix to 180 degree in excel?

    PS. to have N1:U16 really turned 180 degrees write somewhere (may be in B1 as your original solution)
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy right and down. (columns A and M formulas are not needed to have it working)

    Note that TRANSPOSE is no really rotating 90 degrees, it is also mirroring but against diagonal (-45 deg).

  4. #4
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How can we turn a matrix to 180 degree in excel?

    Sorry. Your formula does not work. It gaves a error on excel.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How can we turn a matrix to 180 degree in excel?

    Change semicolons to commas in the formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How can we turn a matrix to 180 degree in excel?

    Thank you very much for your solution of a new one. It as well as works. You are true because when we speak about turning, we should specify the axis of turning. Unfortunately, I forgot to specify axis of turning. Now, I have two questions:
    1. Could you please also specify the axis of turing for 180 degree in accordance with your formula? (It means that each member of matrix turns in related to a axis 180 degree)
    2. Have you another formula or solution when the axis of turning is horizental (As you told: it is mirrored against horizontal axis (or in other words, turned upside down))?

  7. #7
    Forum Contributor
    Join Date
    10-07-2015
    Location
    Tehran - Iran
    MS-Off Ver
    2013
    Posts
    111

    Re: How can we turn a matrix to 180 degree in excel?

    I have attached my example on excel file.Matrix_180.xlsx

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How can we turn a matrix to 180 degree in excel?

    for such mirroring:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    would be enough
    Attached Files Attached Files

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How can we turn a matrix to 180 degree in excel?

    Hava a look also on the picture. Leftmost transformation is transpose - mirroring vs tilted axis. In center is what you asked for - mirrored against horizontal mirror. Righmost what I understand as 180 degrees rotation.
    Attached Images Attached Images

+ 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. Replies: 1
    Last Post: 06-14-2014, 07:18 AM
  2. VBA to turn relational table into matrix
    By aeewing in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2014, 11:42 AM
  3. Replies: 11
    Last Post: 01-08-2014, 09:51 AM
  4. Convert Coordinates. Degree Minute.decimal to degree.decimal
    By stewman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2013, 07:37 PM
  5. How do I turn cells to a 45-degree angle?
    By WJason in forum Excel General
    Replies: 4
    Last Post: 03-22-2006, 12:46 AM
  6. Excel should be able to default to a degree mode
    By William Lipsky in forum Excel General
    Replies: 0
    Last Post: 01-15-2006, 12:15 PM
  7. [SOLVED] Convert decimal degree (lattitude/longitude) into Degree,
    By Tim Ashcom in forum Excel General
    Replies: 5
    Last Post: 08-17-2005, 12:05 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