+ Reply to Thread
Results 1 to 6 of 6

product of two cells based on a criteria like sum.if

  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    product of two cells based on a criteria like sum.if

    Hi

    Before I did use sum.ifs to sum up a value from a column based on a criteria. With some explanation and help from here, i did get it working.

    But the input and calculation result in the first version is to rough, so I did some changes to make it more precise, a better input and more choices.

    A part of this I can't get it figured out.
    I did add a test sheet. The result should be in row 8-10 and column C-D. Did put some text next to the reult cells.

    For each level/fase I need the som of all the products of column A and column D row with only the rows marked with a level value f.e. '1' in column B.

    There is no Sum.Product.ifs. I did look at other threads, but couldn't find any thing close to what I need.

    Any pointers or suggestions to a similar thread?
    Attached Files Attached Files
    Last edited by lord anubis; 07-06-2018 at 08:36 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: product of two cells based on a criteria like sum.if

    Based on what you posted I'm not sure why a sumif + sumif wouldn't work, something like =SUMIF($B$1:$B$7,1,$D$1:$D$7)+SUMIF($B$1:$B$7,1,$A$1:$A$7)

    BUT, you have merged cells in column A for A1:A3 and A4:A6 and this will cause the formula to be unable to find the #s 2 and 3 you want because the formula isn't seeing the 800 across from the 2 in row 2 or the 90 across from row 5 because they actually exist in cells A1 and A4 respectively. I suggest you drop the merged cells for the formulas to work. And I'm not sure what you want done with column C values based on your notes in the attachment.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    Re: product of two cells based on a criteria like sum.if

    Thank you for your response.

    However, it is not a sum, its the product, thus A1 * C2. Like I wrote I did have it working with sumIf, but isn't good enough to get a better value.

    About the column's C and D, in fact there are many Columns that I use, but for the sake of simplicity I did just show two.
    The same with the rows, there are a lot, but for the purpose of simplicity I just show two sets of three rows.

    The pointing arrows '<' where pointing to column D and not C, but imaging that column C needs the kind of formula as in column D.

    BUT, 'BUT' is no problem, it does work for sum.ifs. other wise I should but three times the same value.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: product of two cells based on a criteria like sum.if

    Not sure what you tried for sumproduct but this appears to return the values you note in cells C8 through D10

    =SUMPRODUCT(($B$1:$B$6=$B8)*($A$1:$A$6)*(C$1:C$6))

  5. #5
    Forum Contributor
    Join Date
    07-16-2009
    Location
    DutchLand
    MS-Off Ver
    Excel MacOS 16
    Posts
    161

    Re: product of two cells based on a criteria like sum.if

    That one, and now I know what went wrong.
    I did use 'Number' as a cell where the fields are empty instead of a 0 ( zero), so I did get an number error. If I fill in zero's it works. Not charmed about that.

    Thank you for this. Now next step.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: product of two cells based on a criteria like sum.if

    Glad that worked for you.

+ 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. Need to product based on a criteria and then want to sum the whole range
    By aparnawangu in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2018, 01:54 PM
  2. [SOLVED] Replacement product finder - Searching for matches based on various product attributes
    By gingert88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-22-2017, 01:17 PM
  3. [SOLVED] SUM PRODUCT: Ranking a Cell based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-16-2014, 02:54 PM
  4. [SOLVED] SUM PRODUCT: Ranking a Cell based on Criteria
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-24-2014, 07:07 AM
  5. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  6. multiple column sum product based on set criteria
    By b16dlg in forum Excel General
    Replies: 4
    Last Post: 07-11-2012, 07:51 AM
  7. [SOLVED] Product of 2 arrays based on criteria
    By Ben010 in forum Excel General
    Replies: 4
    Last Post: 03-20-2006, 03:55 PM

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