+ Reply to Thread
Results 1 to 4 of 4

Average of matrix elements using row and column conditions

  1. #1
    Registered User
    Join Date
    03-14-2017
    Location
    Maputo, Mozambique
    MS-Off Ver
    2013
    Posts
    15

    Average of matrix elements using row and column conditions

    I have this matrix:
    Average_Intersect.png

    What I want is a formula that will:
    1. Identify each element in the "x" columns that intersect with the "w" rows.
    {3;9;5;7}
    2. Calculate the average of that return.
    AVERAGE(3;9;5;7) = 6

    So the final result has to be 6.
    Any ideas?
    Luis A. D. Ah-Hoy

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Average of matrix elements using row and column conditions

    Assuming that the values in the table are numbers and the data is in A1:E4, try this formula:

    =AVERAGE(IF((A1:D1="x")*(E2:E4="w"),A2:D4)) Ctrl Shift Enter

    If the values in A2:D4 are text, try this:

    =AVERAGE(IF((A1:D1="x")*(E2:E4="w"),LEFT(A2:D4,FIND(",",A2:D4)-1)+0)) Ctrl Shift Enter
    Last edited by 63falcondude; 06-09-2017 at 10:26 AM.

  3. #3
    Registered User
    Join Date
    03-14-2017
    Location
    Maputo, Mozambique
    MS-Off Ver
    2013
    Posts
    15

    Re: Average of matrix elements using row and column conditions

    That worked perfectly, Falcon.

    Many thanks! :-)

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Average of matrix elements using row and column conditions

    You're welcome. Thanks for the rep!

+ 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. deleted post
    By joemac92 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-10-2015, 12:19 AM
  2. How to compute the inverse of a matrix with some complex elements
    By Annoushka42 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-05-2006, 08:10 PM
  3. [SOLVED] How to do matrix operation with complex number elements in Excel
    By WILSON CHIRAMAL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. How to do matrix operation with complex number elements in Excel
    By Bernard Liengme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 07:05 AM
  5. [SOLVED] How to do matrix operation with complex number elements in Excel
    By Bernard Liengme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  6. How to do matrix operation with complex number elements in Excel
    By WILSON CHIRAMAL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  7. How to do matrix operation with complex number elements in Excel
    By WILSON CHIRAMAL in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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