+ Reply to Thread
Results 1 to 3 of 3

sumif vs sumproduct

  1. #1
    ww
    Guest

    sumif vs sumproduct

    If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it returns
    the correct value.
    However if I use
    sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
    it returns #value. Anybody have any ideas as to what I might be doing
    wrong? Thanks.



  2. #2
    Don Guillett
    Guest

    Re: sumif vs sumproduct

    try
    =sumproduct(--([table.xls]sheet1!rng=A1),--[table.xls]sheet1!table)
    or
    =sumproduct(([table.xls]sheet1!rng=A1)*[table.xls]sheet1!table)

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "ww" <[email protected]> wrote in message
    news:[email protected]...
    > If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it

    returns
    > the correct value.
    > However if I use
    > sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
    > it returns #value. Anybody have any ideas as to what I might be doing
    > wrong? Thanks.
    >
    >




  3. #3
    Duke Carey
    Guest

    RE: sumif vs sumproduct

    Sumproduct() requires the two ranges to be of identical size - a 1 col
    multi-row range, or a 1-row, multi column range. Is your range rng identical
    in size to range table?

    "ww" wrote:

    > If I use sumif([table.xls]sheet1!rng,A1,[table.xls]sheet1!table) it returns
    > the correct value.
    > However if I use
    > sumproduct(--([table.xls]sheet1!rng=A1),[table.xls]sheet1!table)
    > it returns #value. Anybody have any ideas as to what I might be doing
    > wrong? Thanks.
    >
    >


+ 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