+ Reply to Thread
Results 1 to 7 of 7

PLZ, Need help with Arrayformel in vba... urgent

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    hamburg, germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question PLZ, Need help with Arrayformel in vba... urgent

    Hi,
    i have an problem with an arrayformula, that i´m writing to a the cell (F27) in
    the following way:
    Please Login or Register  to view this content.
    the cells in (B26:E26) i filled with the value 25, the cells (B27:E27) with the start value of 2.
    i`m using the following code to set the cells:
    Please Login or Register  to view this content.
    in the result cell (F27) the error message #VALUE! (in german #WERT!) occured.

    to figure out, whta is the problem i changed the code to this:
    Please Login or Register  to view this content.
    note that i´m using now the verticaly cells (G3:G6) instead of (B26:E26), filled them the same way as
    before with "cells().value". but now, the formula is working fine, the value in the
    result cell (F27) is 2, as it should be.

    but where is the problem? why the formel doesn't work in the first example?

    thanks for a help and regards
    thorsten

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PLZ, Need help with Arrayformel in vba... urgent

    MMULT requires the second array to have the same number of rows as the number of columns in the first array. your original formula doesn't do that so it won't work-you'd need to transpose the second array.

  3. #3
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: PLZ, Need help with Arrayformel in vba... urgent

    Actually, what JosephP mentions is not only a requirement for the MMULT function, but comes from how the matrix multiplication is defined in Algebra. There is no way for the matrix multiplication to work ever unless you comply with that rule, simply because of the definition of this mathematical operation.

    What I mean is that what you were asking the function to do is simply IMPOSSIBLE.
    Last edited by Pichingualas; 04-23-2012 at 09:12 AM.
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  4. #4
    Registered User
    Join Date
    04-18-2012
    Location
    hamburg, germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: PLZ, Need help with Arrayformel in vba... urgent

    hi,
    thx for your replies.
    another user from another excel forum send me this version:
    Please Login or Register  to view this content.
    this formel works fine for me and does the job :-)

    regards
    thorsten

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PLZ, Need help with Arrayformel in vba... urgent

    glad you got an answer but please read the rules on crossposting

  6. #6
    Registered User
    Join Date
    04-18-2012
    Location
    hamburg, germany
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: PLZ, Need help with Arrayformel in vba... urgent

    Crossposting ? why crossposting ?

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: PLZ, Need help with Arrayformel in vba... urgent

    I assumed from "another user from another excel forum send me this version" you had posted this on other forums too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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