+ Reply to Thread
Results 1 to 14 of 14

Sumif if range does not equal any text in a range

  1. #1
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Sumif if range does not equal any text in a range

    I have an expense report, and I want to sum the amount that does not equal a range of text, i.e.

    Description Amount Category
    misc.item $20.32 Gas
    misc.item $10.20 Food
    misc.item $5.68 Snacks
    misc.item $40.00 Gas
    misc.item $6.48 Food
    misc.item $32.78 Gas
    misc.item $4.32 Vending
    misc.item $100.32 Food
    misc.item $4.50 Lunch
    misc.item $42.50 Gas
    misc.item $23.50 Gift

    How do I sum everything that IS NOT gas or food?
    Also I will probably add a lot of other misc. things so =sumifs(B2:B12,C1:C12,"<>Gas",C1:C12,"<>Food") won't work for me cause I'd have to add another criteria every time something new is added

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

    Re: Sumif if range does not equal any text in a range

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  3. #3
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Sumif if range does not equal any text in a range

    What if that range of text was in a named list (different sheet), for example, I have a list called "Not_L" list it contains 6 different text items, but when I try to plug that into your formula =SUM(Table9[Average])-SUM(SUMIFS(Table9[Average],Table9[Expense],Not_L)) it gives me an error, and if I put the Not_L in "" it just totals everything.
    Last edited by Luigi802; 12-17-2019 at 04:05 PM.

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

    Re: Sumif if range does not equal any text in a range

    Welcome back.

    Wow. That's been a little more than 3 years ago. I'll see what I can come up with.

  5. #5
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Sumif if range does not equal any text in a range

    Quote Originally Posted by FlameRetired View Post
    Welcome back.

    Wow. That's been a little more than 3 years ago. I'll see what I can come up with.
    Yes it has been awhile, thank you

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

    Re: Sumif if range does not equal any text in a range

    Please post a sample workbook that is a representative example of what you are trying to do ... and please do not post a picture or screenshot.

    The instructions for doing that are in the 'gold' banner at the top of this page.

    Edit In the meantime try entering your formula as an array formula. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Last edited by FlameRetired; 12-17-2019 at 04:43 PM.

  7. #7
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Sumif if range does not equal any text in a range

    Here is a sample sheet, in B3 is where I want to sum everything in the table that is NOT in the "NOT_L" list
    Attached Files Attached Files

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

    Re: Sumif if range does not equal any text in a range

    The syntax needs to be changed to this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then yes it must be committed as an array formula.

    Edit Never mind. It works fine.
    Last edited by FlameRetired; 12-17-2019 at 05:03 PM.

  9. #9
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Sumif if range does not equal any text in a range

    Quote Originally Posted by FlameRetired View Post
    The syntax needs to be changed to this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and then yes it must be committed as an array formula.

    Edit Never mind. It works fine.
    Well it came up with a number, but not the correct number
    Attached Files Attached Files

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

    Re: Sumif if range does not equal any text in a range

    I am clearly missing something. I have to step out for a few hours.

    In the meantime it would be best if you unmark your thread as Solved to Unsolved. More participants will likely look at it then.

  11. #11
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,800

    Re: Sumif if range does not equal any text in a range

    B
    C
    D
    E
    F
    G
    4
    sum without NOT_L
    5
    Expense Average Not_L
    268
    6
    Amazon $1.00 Interest
    7
    Apparel $2.00 Other Income
    8
    ATM $3.00 Pay
    9
    Automotive Expenses $4.00 Refunds/Adjustments
    10
    Bills $5.00 Rewards
    11
    Dad (Quintana) $6.00 Transfers
    12
    Dollar Store $7.00
    13
    Gifts $8.00
    14
    Groceries $9.00
    15
    Household $10.00
    16
    Interest $11.00
    17
    Lily $12.00
    18
    N/A $13.00
    19
    NSF $14.00
    20
    Other Income $15.00
    21
    Pay $16.00
    22
    PayPal $17.00
    23
    Personal Care $18.00
    24
    Pet Care $19.00
    25
    Qapital $20.00
    26
    Refunds/Adjustments $21.00
    27
    Rewards $22.00
    28
    Security $23.00
    29
    Tithe $24.00
    30
    Transfers $25.00
    31
    Travel $26.00
    32
    Walmart $27.00



    G5=SUMPRODUCT((ISNA(MATCH(Table1[Expense],Table2[Not_L],0)))*(Table1[Average]))

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

    Re: Sumif if range does not equal any text in a range

    Another method ... piggy-backing on CARACALLA's data.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    B
    C
    D
    E
    F
    G
    5
    Expense
    Average
    Not_L
    $268.00
    6
    Amazon
    $1.00
    Interest
    7
    Apparel
    $2.00
    Other Income
    8
    ATM
    $3.00
    Pay
    9
    Automotive Expenses
    $4.00
    Refunds/Adjustments
    10
    Bills
    $5.00
    Rewards
    11
    Dad (Quintana)
    $6.00
    Transfers
    12
    Dollar Store
    $7.00
    13
    Gifts
    $8.00
    14
    Groceries
    $9.00
    15
    Household
    $10.00
    16
    Interest
    $11.00
    17
    Lily
    $12.00
    18
    N/A
    $13.00
    19
    NSF
    $14.00
    20
    Other Income
    $15.00
    21
    Pay
    $16.00
    22
    PayPal
    $17.00
    23
    Personal Care
    $18.00
    24
    Pet Care
    $19.00
    25
    Qapital
    $20.00
    26
    Refunds/Adjustments
    $21.00
    27
    Rewards
    $22.00
    28
    Security
    $23.00
    29
    Tithe
    $24.00
    30
    Transfers
    $25.00
    31
    Travel
    $26.00
    32
    Walmart
    $27.00

  13. #13
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Sumif if range does not equal any text in a range

    Quote Originally Posted by FlameRetired View Post
    Another method ... piggy-backing on CARACALLA's data.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    B
    C
    D
    E
    F
    G
    5
    Expense
    Average
    Not_L
    $268.00
    6
    Amazon
    $1.00
    Interest
    7
    Apparel
    $2.00
    Other Income
    8
    ATM
    $3.00
    Pay
    9
    Automotive Expenses
    $4.00
    Refunds/Adjustments
    10
    Bills
    $5.00
    Rewards
    11
    Dad (Quintana)
    $6.00
    Transfers
    12
    Dollar Store
    $7.00
    13
    Gifts
    $8.00
    14
    Groceries
    $9.00
    15
    Household
    $10.00
    16
    Interest
    $11.00
    17
    Lily
    $12.00
    18
    N/A
    $13.00
    19
    NSF
    $14.00
    20
    Other Income
    $15.00
    21
    Pay
    $16.00
    22
    PayPal
    $17.00
    23
    Personal Care
    $18.00
    24
    Pet Care
    $19.00
    25
    Qapital
    $20.00
    26
    Refunds/Adjustments
    $21.00
    27
    Rewards
    $22.00
    28
    Security
    $23.00
    29
    Tithe
    $24.00
    30
    Transfers
    $25.00
    31
    Travel
    $26.00
    32
    Walmart
    $27.00
    AWESOME! That Worked! THANKS AGAIN!!

  14. #14
    Registered User
    Join Date
    10-11-2014
    Location
    Noitacol, Acirema
    MS-Off Ver
    Office 365 2019
    Posts
    53

    Re: Sumif if range does not equal any text in a range

    Quote Originally Posted by CARACALLA View Post
    B
    C
    D
    E
    F
    G
    4
    sum without NOT_L
    5
    Expense Average Not_L
    268
    6
    Amazon $1.00 Interest
    7
    Apparel $2.00 Other Income
    8
    ATM $3.00 Pay
    9
    Automotive Expenses $4.00 Refunds/Adjustments
    10
    Bills $5.00 Rewards
    11
    Dad (Quintana) $6.00 Transfers
    12
    Dollar Store $7.00
    13
    Gifts $8.00
    14
    Groceries $9.00
    15
    Household $10.00
    16
    Interest $11.00
    17
    Lily $12.00
    18
    N/A $13.00
    19
    NSF $14.00
    20
    Other Income $15.00
    21
    Pay $16.00
    22
    PayPal $17.00
    23
    Personal Care $18.00
    24
    Pet Care $19.00
    25
    Qapital $20.00
    26
    Refunds/Adjustments $21.00
    27
    Rewards $22.00
    28
    Security $23.00
    29
    Tithe $24.00
    30
    Transfers $25.00
    31
    Travel $26.00
    32
    Walmart $27.00



    G5=SUMPRODUCT((ISNA(MATCH(Table1[Expense],Table2[Not_L],0)))*(Table1[Average]))
    Actually this 1 worked! Thanks 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. [SOLVED] IF text string is equal left characters and DDMM of DOB is outside a range.
    By DaveBre in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-07-2014, 06:53 PM
  2. Sum cells in a range based between two equal cell values in another range
    By sshone1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 08:12 AM
  3. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  4. Replies: 3
    Last Post: 12-12-2012, 12:30 PM
  5. [SOLVED] Sumif based on a text range, text criteria and and text sum range
    By ned0 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-18-2012, 07:45 PM
  6. SUMIF range not equal to another range
    By rocketboy13 in forum Excel General
    Replies: 4
    Last Post: 11-03-2011, 06:23 PM
  7. sumif(range,"<30",sum range) not summing values that equal 0
    By rantarctica in forum Excel General
    Replies: 3
    Last Post: 01-06-2009, 07:27 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