+ Reply to Thread
Results 1 to 5 of 5

Sumproduct and sumif

  1. #1
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Sumproduct and sumif

    I am having problems coming up with an alternative to sumif. The following formula works fine but sumif only works if the reference file is open which is why I am looking for a sumproduct solution.

    =SUMPRODUCT((SUMIF('[2018-SPENDING.xlsx]Sheet1'!$S$14:$S$50000,$O$47:$O$57,'[2018-SPENDING.xlsx]Sheet1'!$H$14:$H$50000)))

    I can brute force it with the following equation which is ok if I only have a few conditions but it isn't practical if I have 20 or 30 conditions.

    sumproduct(--((array1=condition1,)+(array1=condition2)+(array1=condition3)etc),sumname)

    Any ideas on how to resolve this would be helpful
    thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Sumproduct and sumif

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Sumproduct and sumif

    I think I uploaded a file. It is a pictorial representation of what I am trying to do
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Sumproduct and sumif

    Forget that last post.. the atttachment was wrong. Here is the corrected one.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-04-2019
    Location
    Arizona
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Sumproduct and sumif

    If anyone is interested, this is the formula I ended up with that works.

    SUMPRODUCT(--ISNA(MATCH(name,$O$8:$O$43,0)),sumname)

    The ISNA turns the Match into Not Match which is exactly what I was looking for.

+ 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. Combine sumif/sumproduct or sumproduct with multiple criteria
    By sab128 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-16-2018, 08:25 AM
  2. Replies: 2
    Last Post: 06-21-2017, 06:32 PM
  3. Replies: 0
    Last Post: 08-17-2012, 02:02 PM
  4. sumif or sumproduct?
    By ronnomad in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-07-2006, 05:15 PM
  5. [SOLVED] Sumif...SumProduct...Sum Something
    By heater in forum Excel General
    Replies: 3
    Last Post: 12-14-2005, 06:50 PM
  6. SUMPRODUCT or SUMIF
    By nfbelo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-24-2005, 03:06 PM
  7. [SOLVED] SUMPRODUCT or SUMIF or ...
    By nfbelo in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2005, 02:06 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