+ Reply to Thread
Results 1 to 2 of 2

Calculate SUM only if certain values ARE NOT found in cells

  1. #1
    Registered User
    Join Date
    07-04-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    24

    Calculate SUM only if certain values ARE NOT found in cells

    Related to: http://www.excelforum.com/excel-form...t-formula.html

    Is there a way to write the formula so that it DOESN'T sum the values, if a word from an array is found in any of the cells?

    One poster listed this formula that works (it calculates the total number of cells that have the specified names of fruit in them):

    =SUM(COUNTIFS(E2:E6,"*"&{"Strawberry","Banana","Cherry","Pear"}&"*",B2:B6,">="&DATE(D12,B12,C12),B2:B6,"<="&DATE(D13,B13,C13)))

    This worked great, but now I need to SUM the values of a column only if the specified names ARE NOT found in the cells, and if the dates of another column are between a certain range, kinda like the above formula.

    Can anyone help me with this?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Calculate SUM only if certain values ARE NOT found in cells

    Try this
    =SUM(COUNTIFS(E2:E6,"<>*"&{"Strawberry","Banana","Cherry","Pear"}&"*",B2:B6,">="&DATE(D12,B12,C12),B2:B6,"<="&DATE(D13,B13,C13)))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Sum Values if two cells found
    By frank35 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2013, 11:56 AM
  2. [SOLVED] Create a defined number of copied cells for values found in a column
    By S.Taylor in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 11-08-2013, 04:25 AM
  3. Check for values in a table and if found add value found in column to left to list
    By robhargreaves in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-07-2013, 02:57 PM
  4. [SOLVED] Index and Match for first 3 items found, including cells with same values
    By hazelwouldbe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2012, 09:17 PM
  5. [SOLVED] How to calculate the sum of values in cells which contain formulas
    By steve@stanley in forum Excel General
    Replies: 10
    Last Post: 07-10-2012, 05:15 AM

Tags for this Thread

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