+ Reply to Thread
Results 1 to 6 of 6

Sumifs formula to sum non-blank where the criteria range has blanks with formulas

  1. #1
    Registered User
    Join Date
    10-25-2012
    Location
    israel
    MS-Off Ver
    Excel 2007
    Posts
    11

    Sumifs formula to sum non-blank where the criteria range has blanks with formulas

    hi,
    I am trying to write a sumifs formula to sum values where the crteria range is text derived from formula.

    I am trying to sum all the rows that are not blank.
    all rows in column B have formulas.

    see example

    sum range crtiria range formula in column B
    1 sun "=IF($A2=2,"","sun")"
    2 "=IF($A3=2,"","sun")"
    2 "=IF($A4=2,"","sun")"
    1 sun "=IF($A5=2,"","sun")"

    Thanks,

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Sumifs formula to sum non-blank where the criteria range has blanks with formulas

    you want countif for that, like =COUNTIF(A:A,"sun")

    or whatever column that has "sun" in it as a result.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    10-25-2012
    Location
    israel
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Sumifs formula to sum non-blank where the criteria range has blanks with formulas

    I need a formula to sum all non blank .
    putting the text in the sumifs function will not help when there will hundreds of different texts in column B

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,824

    Re: Sumifs formula to sum non-blank where the criteria range has blanks with formulas

    uploading a file (like it says in the yellow banner at the top will go a long way in helping you.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Sumifs formula to sum non-blank where the criteria range has blanks with formulas

    are you talking about summing column A where you either have 2 or some other value or blanks?
    that is different from what you wrote in post #1.
    Because you are saying your formula in col B is =IF(A2=2,"","sun")
    There is no way to sum "sun" which is a text. That is why I said you can count them unless your plan is to sum column A or you are assigning a value to sun?
    Please mock up a simple workbook following the instructions in the banner at the top and post a small sample WITH expected results so we better understand.

    EDIT: you can count the blanks if that is what you want. Something like =COUNTIFS(A2:A100,"<>",B2:B100,"") or whatever range you are looking at.
    Last edited by Sam Capricci; 11-22-2019 at 05:45 AM.

  6. #6
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Sumifs formula to sum non-blank where the criteria range has blanks with formulas

    good rule of thumb, for text, is to use ?* as your criteria -- the use of ? will ensure null strings are ignored.

+ 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. Sumifs formula that ignores text and blanks in the criteria column
    By sjs4952 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2018, 02:48 AM
  2. I want Sumifs formula with Or criteria in same Range
    By lulupatel in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-19-2014, 12:03 PM
  3. [SOLVED] SUMIFS Formula: Can it ignore a Blank Criteria field?
    By mlj61289 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2013, 12:43 PM
  4. formulas only copy to first blank row not range of blanks
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2013, 09:47 PM
  5. [SOLVED] sumifs formula one range with two criteria
    By avk in forum Excel General
    Replies: 7
    Last Post: 07-13-2012, 02:13 PM
  6. DATEVALUE used for Criteria range in SUMIFS formula
    By heatherromo in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 09:31 PM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 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