+ Reply to Thread
Results 1 to 9 of 9

Formula to Exclude but include other same named data

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    Carrollton, Texas
    MS-Off Ver
    Office 365 64bit
    Posts
    4

    Formula to Exclude but include other same named data

    I have a spreadsheet that I have hundreds of columns and about 10 rows. However, I am only looking at Columns A and C for my data. I know what I am looking for. I have tried using SUMPRODUCT. What I want to do is so for instance look for anything with a specific name like Wal-Mart and sum everything that I have for instance spent at Wal-Mart. However, at the same time I also want to exclude anything I have spent at Wal-Mart that is over $1,000.00.

    This is what I am using to find everything I have spent at Wal-Mart: =SUMPRODUCT(('Checking Account Balance'!$A$8:$A$1000=$A$3)*'Checking Account Balance'!$C$8:$C$1000) I want to include everything under $1,000 but exclude everything over $1,000. Is there a way to do this with SUMPRODUCT. Or am I needing to include inside of the array for SUMPRODUCT a SUMIF statement?

    I have tried this but it returns the total number of times that Wal-mart shows up in my list instead of the total with the exclusions: =SUMPRODUCT(('Checking Account Balance'!$A$8:$A$1000="Wal-Mart")*($C$8:$C$1000<"1000")*($C$8:$C$1000))
    I know what totals I need based on the checks and balances that I have built into the spreadsheet, just not able to do this correctly.

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

    Re: Formula to Exclude but include other same named data

    Hello Knight_Angel_05. Welcome to the forum.

    Remove the quotes from ($C$8:$C$1000<"1000")

    Those quotes force the number into text "numbers". Text has a numeric value of 0.
    Dave

  3. #3
    Registered User
    Join Date
    01-23-2019
    Location
    Carrollton, Texas
    MS-Off Ver
    Office 365 64bit
    Posts
    4

    Re: Formula to Exclude but include other same named data

    FlameRetired:
    When I remove the quotes I get a reported number value of 14 back as I do with the quotes instead of -$886.20 or -$4,448.92
    I have -$3,562.72 of Wal-mart expenditures which is 2 purchases (money orders) as well with a total of 12 purchases totaling -$886.20 giving me -$4,448.92 grant total. But I want it to automatically remove the 2 of 14 expenditures totaling -$3,562.72 giving a total of 12 expenditures with a value of -$886.20. I know what I would like it to do, just still befuddling me as to how I should get there the short way instead of the long way of having multiple tables breaking down them individually.

    Greatly appreciate the assistance so far! Thank you much.

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,491

    Re: Formula to Exclude but include other same named data

    Please attach a sample workbook showing the issue.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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.

  5. #5
    Registered User
    Join Date
    01-23-2019
    Location
    Carrollton, Texas
    MS-Off Ver
    Office 365 64bit
    Posts
    4

    Re: Formula to Exclude but include other same named data

    Here is a Test workbook where I copied all data too.
    The data in question is on Tab 2 next to checking account balance tab.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,126

    Re: Formula to Exclude but include other same named data

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-23-2019
    Location
    Carrollton, Texas
    MS-Off Ver
    Office 365 64bit
    Posts
    4

    Re: Formula to Exclude but include other same named data

    WOOHOO! That worked. However, I changed the <-1000 to a >-1000 and it gave me the result that I wanted. YAY! Thank you all those who helped with this.

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

    Re: Formula to Exclude but include other same named data

    You are welcome. Glad to help. Thank you for the feedback and added rep.

    One more thing:

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,126

    Re: Formula to Exclude but include other same named data

    Glad to help & thanks for the feedback

+ 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. mean formula to either exclude or include 0
    By link062 in forum Excel General
    Replies: 4
    Last Post: 04-21-2017, 10:43 AM
  2. Configuring SUM formula to include or exclude certain characters?
    By bobschwenkler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2008, 07:01 PM
  3. [SOLVED] Re: Comparing Data Need to Include & Exclude
    By in forum Excel General
    Replies: 0
    Last Post: 06-06-2006, 02:15 PM
  4. [SOLVED] Re: Comparing Data Need to Include & Exclude
    By in forum Excel General
    Replies: 1
    Last Post: 06-06-2006, 10:30 AM
  5. [SOLVED] Comparing Data Need to Include & Exclude
    By in forum Excel General
    Replies: 1
    Last Post: 06-06-2006, 09:10 AM
  6. Comparing Data Need to Include & Exclude
    By in forum Excel General
    Replies: 1
    Last Post: 06-05-2006, 03:40 PM
  7. Comparing Data Need to Include & Exclude
    By in forum Excel General
    Replies: 0
    Last Post: 06-05-2006, 03:05 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