+ Reply to Thread
Results 1 to 4 of 4

how to reference a matrix?

  1. #1
    Registered User
    Join Date
    01-07-2014
    Location
    Rome, Italy
    MS-Off Ver
    Excel 2003
    Posts
    2

    how to reference a matrix?

    Hi all,
    I have an Excel Sheet with a long list with some data, like this:

    CODE MONTH VAL1 VAL2 ....
    ----------------------------------------
    xxx 01 100 150 ...
    xxx ....
    xxx 12 200 120 ...
    yyy 01 150 220 ...
    ...


    so that I have n blocks of 12 rows each, representing some money values for one year for n persons (identified by the code value). The list is ordered by the 1st column and then by the 2nd one.

    I wish to create a summary Sheet with the annual data only for a particular code the user have to type in a cell. I thought to identify the starting row with a vlookup() function but I can't find a way to reference an entire matrix starting at row x.

    Could you give me some advice? Please tell me if you want me to explain better...

    Thank you again,
    Filippo

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,433

    Re: how to reference a matrix?

    You could use MATCH to get the first row number for each block of data and then increment it for subsequent rows.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    01-07-2014
    Location
    Rome, Italy
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: how to reference a matrix?

    Hi, thank you for the reply.

    I thought something like

    a) selecting the entire (12 rows x n columns) block in the summary sheet
    b) entering one formula using somewhere a corresponding block in the list sheet
    c) pressing Shift+Ctrl+Enter to confirm it as a matrix formula

    That is, I would like not to copy and paste formulas all over the page, but use a matrix instead.

    I made it!
    Something like:

    =INDIRECT("i"&MATCH(code;list_1st_col,0)&":k"&MATCH(code,list_1st_col,0)+12)

    assuming the list block is on columns i:k, and code and list_1st_col are named ranges. To make that simple, I considered only 1 sheet.

    btw, thank you again!

    Filippo

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,433

    Re: how to reference a matrix?

    See the attached example

    Regards, TMS
    Attached Files Attached Files

+ 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. Using a transition matrix as input to a cummulative matrix
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 04:19 AM
  2. matrix
    By angusmdmclean in forum Excel General
    Replies: 0
    Last Post: 12-29-2011, 08:15 PM
  3. matrix reference or what
    By xx_yy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2008, 07:34 AM
  4. [SOLVED] Matrix
    By Attempt at solving a Matrix Problem? in forum Excel General
    Replies: 2
    Last Post: 08-14-2005, 08:05 PM
  5. [SOLVED] Matrix
    By Basil in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-03-2005, 12: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