+ Reply to Thread
Results 1 to 3 of 3

Matrix multiplication with empty cells

Hybrid View

  1. #1
    Ingrid Voigt
    Guest

    Matrix multiplication with empty cells

    Hi,

    I've got matrices in my worksheet I'd like to
    multiply using MMULT. However, as long as some
    of the cells referred to are empty, I can't
    get a result. Excel apparently doesn't set the
    contents of these cells to 0 as I'd like it to.

    Is there a way or a setting around this? When
    multiplying "manually" (A1*B1 + A2*...) it
    works properly. Filling up the cells with zeros
    is not a good idea. (The table is a chess tournament
    table where an empty cell indicates "game not played",
    but a zero cell "game lost").

    I'm using the German language version of Excel 97
    if that matters.


    Regards
    Ingrid

  2. #2
    Harlan Grove
    Guest

    Re: Matrix multiplication with empty cells

    "Ingrid Voigt" <GiantPanda@gmx.net> wrote...
    >I've got matrices in my worksheet I'd like to
    >multiply using MMULT. However, as long as some
    >of the cells referred to are empty, I can't
    >get a result. Excel apparently doesn't set the
    >contents of these cells to 0 as I'd like it to.

    ....

    Since you'd be entering these as array formulas anyway, if RngA and RngB
    have blank cells, try

    =MMULT(RngA+0,RngB+0)



  3. #3
    Vasant Nanavati
    Guest

    Re: Matrix multiplication with empty cells

    Nice one, Harlan! Never thought of that.

    --

    Vasant

    "Harlan Grove" <hrlngrv@aol.com> wrote in message
    news:e6lnbs4IFHA.4028@tk2msftngp13.phx.gbl...
    > "Ingrid Voigt" <GiantPanda@gmx.net> wrote...
    > >I've got matrices in my worksheet I'd like to
    > >multiply using MMULT. However, as long as some
    > >of the cells referred to are empty, I can't
    > >get a result. Excel apparently doesn't set the
    > >contents of these cells to 0 as I'd like it to.

    > ...
    >
    > Since you'd be entering these as array formulas anyway, if RngA and RngB
    > have blank cells, try
    >
    > =MMULT(RngA+0,RngB+0)
    >
    >




+ 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