+ Reply to Thread
Results 1 to 6 of 6

Diagonal Matrix Repeat value

  1. #1
    Registered User
    Join Date
    07-08-2014
    Location
    england
    MS-Off Ver
    2007,2010
    Posts
    9

    Diagonal Matrix Repeat value

    Hye,


    The diagonal matrix that I want should be something like this.

    10000
    02000
    00300
    00040
    00005

    However it become like this (having repeated value)

    10000
    02000
    02300
    00040
    00045

    Im using this array formula IF(A8:A18=TRANSPOSE(A8:A18),A8:A18,0)

    Please help me, thanks

  2. #2
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Diagonal Matrix Repeat value

    Please find attached excel sheet for diagonal matrix by formula.

    Regards,
    Suhas
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-08-2014
    Location
    england
    MS-Off Ver
    2007,2010
    Posts
    9

    Re: Diagonal Matrix Repeat value

    Hi thanks,

    Can you explain what are the cells for me to put in row() and column().
    I have a straight vertical line of data

  4. #4
    Forum Contributor
    Join Date
    10-07-2011
    Location
    India, Mumbai
    MS-Off Ver
    Excel 2007
    Posts
    212

    Re: Diagonal Matrix Repeat value

    I have attached what i understand, if you need something different then please attache your sheet with expected results.
    Regards,
    Suhas

  5. #5
    Registered User
    Join Date
    07-08-2014
    Location
    england
    MS-Off Ver
    2007,2010
    Posts
    9

    Re: Diagonal Matrix Repeat value

    Attached file is the example. I have about 500 lines of data in real.
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Diagonal Matrix Repeat value

    Try

    =IFERROR(INDEX($C$7:$C$9,ROW(A1)*(ROW(A1)=COLUMN(A1)))*(1-INDEX($C$7:$C$9,ROW(A1)*(ROW(A1)=COLUMN(A1)))),0)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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 do I get the diagonal of a matrix from excel?
    By JoeNiner in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2017, 02:04 AM
  2. Returning the diagonal of a matrix as a column vector
    By thebski in forum Excel General
    Replies: 1
    Last Post: 06-04-2012, 03:45 PM
  3. Diagonal Matrix Fill
    By don.harvey in forum Excel General
    Replies: 5
    Last Post: 09-05-2009, 03:24 AM
  4. copy matrix (diagonal)
    By Mut in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2006, 09:52 PM
  5. [SOLVED] show a set of diagonal values in a matrix as a set of consecutive.
    By Kelvin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-08-2005, 09:06 AM

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