+ Reply to Thread
Results 1 to 6 of 6

"ProductIfs" Like Function (Instead of "SUMIFS")

  1. #1
    Registered User
    Join Date
    08-28-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    "ProductIfs" Like Function (Instead of "SUMIFS")

    Hi guys,
    I know this question has been asked before, but I need a bit more help and explanation. What I really need is a SumIfs-like function that calculates the product of a column, only if certain multiple criteria are met. I have three columns of data; a Category (A-D), a State (many of them, this is just a sample I made up, so I just used WA and WV as an example, but I have way more data than this and multiple states, which is why I don't simply sort the data), and a Percentage Change:
    Product Data.xls


    What I would like to do is multiply together the % Changes for each of the Categories A-D for WA and VA separately, to get:
    Product Results.xls

    So I have 2 columns that contain "criteria" (two states and four categories) that need to be met in order for the multiplication to occur. I've tried combinations of the PRODUCT function in Excel along with the IF function and the AND function, but I can't seem to get the right combination, especially because the two criteria must be searched in a range, and the PRODUCT function must be pointed to a range of data as well. If I had a ProductIfs function, this is what I would want:
    =PRODUCTIFS(C2:C17,A2:A17,"A",B2:B17,"WA") to get the results for category A for WA.

    I've tried using an IF inside of a product function:
    =PRODUCT(IF(AND(A2:A17 = "A", B2:B17 = "WA"), C2:C17, 1))
    but that doesn't seem to work. Anyone have any other ideas? Or any idea why the above function doesn't work properly?

    Thanks in advance for your help!
    Attached Images Attached Images
    Last edited by clueless12; 09-07-2015 at 02:15 PM. Reason: Attaching Spreadsheets

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: "ProductIfs" Like Function (Instead of "SUMIFS")

    Those a very pritty pictures.
    Unfortunally, we are excel solvers. Not artists.
    Please upload example workbook rather that picture so we don't need to waste time on retyping your data.

    Here is one solution with Pivot table.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-28-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Re: "ProductIfs" Like Function (Instead of "SUMIFS")

    Sorry about that! Wasn't thinking when I uploaded a picture instead of the workbook. I have edited the post.

    Thanks for your reply! I think a pivot table would probably be the simplest solution now that you mention it (unless others have other ideas). Thanks so much for the help (and again, sorry for making you recreate the data! Total brain-lapse on my part!!)

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: "ProductIfs" Like Function (Instead of "SUMIFS")

    No problem clueless12.
    Hopefully you'll have many more questions so I'm guiding you in right direction for a future

    PT is simplest in your case and give you fast possibility of filtering.

  5. #5
    Registered User
    Join Date
    08-28-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    7

    Re: "ProductIfs" Like Function (Instead of "SUMIFS")

    I'm sure I'll have many more questions as I go along and learn to use Excel more efficiently This forum has been great in giving great solutions and great guidance in the few times I've used it. I'll definitely be back anytime I need help/clarification on an issue!

    Thanks again for your help! You guys are great!!

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: "ProductIfs" Like Function (Instead of "SUMIFS")

    You have trailing spaces in both category columns. Once those are cleaned up this works at my end. BTW I copied the table from the second file and pasted it to a second sheet in the first file. The formula in the summary table array-entered in C2 and filled down is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    The workbook is attached.

    Is this what you were looking for?
    Dave

+ 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. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  2. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  3. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  4. SUMIFS Function To Reset SUM if "x" is placed to "0" ??
    By Exceldummy101 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-15-2013, 04:45 PM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 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