+ Reply to Thread
Results 1 to 7 of 7

How to exclude values in a list with SUMPRODUCT?

  1. #1
    Registered User
    Join Date
    08-27-2015
    Location
    Melbourne
    MS-Off Ver
    2011
    Posts
    1

    How to exclude values in a list with SUMPRODUCT?

    Hi,

    Is there a simple way to get sumproduct to exclude based on values in a list.

    I.e. =SUMPROUDUCT(--(source!$A:$A<>exclusions!$A$1:$A$10),source$B:$B)?

    Figure you should be able to do with a match or something but cant seem to find it.
    Attached Files Attached Files
    Last edited by orangehenry; 12-15-2020 at 07:40 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: How to exclude values in a list with SUMPRODUCT?

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-02-2020
    Location
    Paris, France
    MS-Off Ver
    Professional Plus 2013
    Posts
    41

    Re: How to exclude values in a list with SUMPRODUCT?

    (well you uploaded a sample file long after I started working on a solution, therefore I'm not using it)

    Hmm. It should be possible. It would be less likely without a sample excel file

    To my knowledge you'd have to refer to each individual exclusion item rather than a list.
    Therefore the only solution i can come up to would look either like :
    Please Login or Register  to view this content.
    Or
    Please Login or Register  to view this content.
    See following sample file if needed.
    You could extend the formulas to your likings.
    Attached Files Attached Files
    Last edited by Exl-Noob; 12-15-2020 at 08:04 AM.
    ⭹ If this helped you, please add reputation

  4. #4
    Registered User
    Join Date
    11-02-2020
    Location
    Paris, France
    MS-Off Ver
    Professional Plus 2013
    Posts
    41

    Re: How to exclude values in a list with SUMPRODUCT?

    In your example file, this would work
    Please Login or Register  to view this content.
    as would also this work if you want to add more empty cells in case your exclusion list grows :
    Please Login or Register  to view this content.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: How to exclude values in a list with SUMPRODUCT?

    this is the "textbook" way of doing this:

    =SUMPRODUCT(--(ISERROR(MATCH(B4:B9,H4:H5,0))),C4:C9)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    11-02-2020
    Location
    Paris, France
    MS-Off Ver
    Professional Plus 2013
    Posts
    41

    Re: How to exclude values in a list with SUMPRODUCT?

    Whoa
    slow clap

  7. #7
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,416

    Re: How to exclude values in a list with SUMPRODUCT?

    Try

    HTML Code: 

+ 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. [SOLVED] Exclude certain values from dropdown list
    By Excelnoobboy in forum Excel General
    Replies: 6
    Last Post: 07-19-2020, 08:53 PM
  2. SUMPRODUCT to exclude values?
    By tangcla in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-29-2020, 09:16 AM
  3. Replies: 24
    Last Post: 10-21-2019, 10:24 PM
  4. [SOLVED] Create Dynamic List Property for Combobox - Exclude Certain Values from List
    By Jenn68 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2019, 11:24 AM
  5. [SOLVED] SUMPRODUCT query - how to exclude text values?
    By ryan_mufc11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-16-2018, 08:24 AM
  6. Exclude duplicate values from out of a calculating a sumproduct
    By Alan Casey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2012, 04:29 PM
  7. Sumproduct Formula - How Do I Exclude Values
    By winnie_shrub in forum Excel General
    Replies: 3
    Last Post: 04-14-2009, 06:32 AM

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