+ Reply to Thread
Results 1 to 14 of 14

problems on application of Matrix Multiplication / Product sum functions

  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    problems on application of Matrix Multiplication / Product sum functions

    Dear all

    I am having some problems with two tables, one is related to species (column) vs traits (row) and the other one is related to sites (column) vs species (row).
    I would like to have a third matrix traits (column) vs sites (row) by matrix multiplication or or the sum of products functions. I have alraedy applied the matrix multiplication function but it results in value error. I send data as annex to get some help from you, if possible.

    Thank you

    Sincerely

    Jose Macedo
    Attached Files Attached Files
    Jos? Ant?nio Macedo
    University of Porto, Portugal

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: problems on application of Matrix Multiplication / Product sum functions

    Maybe you can post an small example of the desired result.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: problems on application of Matrix Multiplication / Product sum functions

    The number of columns in array1 must be the same as the number of rows in array2, (yours does not meet the requirement. . .) and both arrays must contain only numbers.

    See help on the MMULT function for additional notes on using this function.
    Pete

  4. #4
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    Thank you for the comments. I will see those aspects you referred. thanks

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: problems on application of Matrix Multiplication / Product sum functions

    Hi,

    What exactly are you trying to do here? What are your expected results?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    Hello again
    I have already changed the arrays. However I only can get a result for the first multiplication. The others result in value error when I drag the cells. Can you see please which could be the problem when dragging the cells?
    Thank you
    Attached Files Attached Files

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: problems on application of Matrix Multiplication / Product sum functions

    But you still haven't told us what the results should be (?)

    Regards

  8. #8
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    I have two arrays: one with species and the values of traits for each one. Other is related to data of each species per site.
    I would like to have, per site, data relative to traits.
    Ex: In site X 10 plants (5 from plant A, 3 from plant B and 2 from plant C). Plant A is a blue plant, plant B is red and plant C yellow.
    So, I would like to quantify, per site, each one of the characters (traits): blue, red, yellow.
    I hope this help
    Thanks

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: problems on application of Matrix Multiplication / Product sum functions

    But in your attachment there is no mention of "plant A", "plant B" "plant C", "blue", "red" or "yellow", just a series of values on two sheets.

    Perhaps, as oeldere said as far back as post #2, you could manually enter some of your expected results into the spreadsheet and tell us how you arrived at those results.

    Regards

  10. #10
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    I send I new file more simple
    please find data 3 (2) file
    regards

  11. #11
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    I send I new file more simple
    please find data 3 (2) file
    regards
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    another example

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: problems on application of Matrix Multiplication / Product sum functions

    Maybe with an pivot table.

    See the attached file.

  14. #14
    Registered User
    Join Date
    03-16-2012
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2007, 2010
    Posts
    27

    Re: problems on application of Matrix Multiplication / Product sum functions

    ok thank you very much
    I will see right now
    thanks again

+ 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] Matrix Multiplication in VBA
    By Milade8080 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-23-2015, 12:35 AM
  2. matrix multiplication
    By Daniel CHEN in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 12:05 PM
  3. matrix multiplication
    By Carine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. matrix multiplication
    By Carine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. matrix multiplication
    By Carine in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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