+ Reply to Thread
Results 1 to 4 of 4

Thread: SUM IF (criteria) then PRODUCT

  1. #1
    Registered User
    Join Date
    03-05-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    6

    SUM IF (criteria) then PRODUCT

    Hi,
    I am having trouble using an excel formula of type:

    SUM IF (a<b; PRODUCT(a;c); PRODUCT(b,c))/(e-f)
    where a, b, c, d, e, f in the above formulae are all row data. The exact formula i am using is as shown below:

    =(SUM(IF($C$7:$AL$7<C8:AL8;PRODUCT($C$7:$AL$7;$C$6:$AL$6);PRODUCT($C$8:$AL$8;$C$6:$AL$6))))/(C3-C37)

    The result is zero for all cells, and i am wondering if there is something, maybe syntax violation, or some other easy way of doing this? Can someone help me?

    Thanks,
    Manywise.

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: SUM IF (criteria) then PRODUCT

    The formula outlined would need to be confirmed as an Array obviously.

    It's not clear what you're trying to achieve exactly but if you want the product of the individual terms - eg:

    SUM of PRODUCT(C6,C7) + PRODUCT(D8,D6) etc divided by (e-f) then you would need to adjust slightly, perhaps to:

    =SUM(IF($C$7:$AL$7<$C$8:$AL$8;$C$7:$A$L7;$C$8:$AL$8)*$C$6:$AL$6)/(C3-C37)
    confirmed with CTRL + SHIFT + ENTER

  3. #3
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: SUM IF (criteria) then PRODUCT

    Did you array-enter it (Ctrl-Shift-Enter)?

  4. #4
    Registered User
    Join Date
    03-05-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: SUM IF (criteria) then PRODUCT

    Thanks a lot, i did use CTRL + SHIFT + ENTER, it seems to be working now. The problem was how i computed the product. Considering the output and amount of data is not easy for me to verify that it does exactly what i want it to do, but i will have to try different ways to that. Thanks again for the help.
    BR
    Manywsie

+ 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.2.0