+ Reply to Thread
Results 1 to 3 of 3

SUMIF, differentiate between 0, 00 and BLANK

  1. #1
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    SUMIF, differentiate between 0, 00 and BLANK

    In the SUMIF function I need to be able to differentiate between cells with the following content:
    • 0, as number or text
    • 00, necessarily as text
    • 000, also text
    • Completely BLANK, as after having pressed DELETE
    • BLANK, but with an apostrophe (')

    As it is now the SUMIF (and probably also all the other functions, COUNTIF, VLOOKUP, etc.) acts as follows:
    • Looking up a 0, 00, 000, etc. counts only cells contaning zeros, both 0, 00, 000, etc., and it does so regardless of the number of zeros
    • Looking up a completely BLANK value does the same; i.e. it does not count the really blank cells
    • Looking up a BLANK value with apostrophe counts all the blank cells - with or without apostrophe - but not the zeros


    Is there a solution to this?

    NSV
    Last edited by nsv; 10-01-2018 at 02:09 AM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,414

    Re: SUMIF, differentiate between 0, 00 and BLANK

    If you used SUMIFS rather than SUMIF you could have another criterion to check the number of characters using the LEN function. You can use the ISBLANK function to check if the cell is really empty.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    Re: SUMIF, differentiate between 0, 00 and BLANK

    OK, thanks Pete, I'll try that and mark it solved for now.

+ 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" How to differentiate between blank or $0.00.
    By Anubis27 in forum Excel General
    Replies: 5
    Last Post: 10-14-2015, 01:43 AM
  2. Differentiate Between "Blank" Cells and Data
    By S-Hart in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-19-2015, 06:34 PM
  3. [SOLVED] sumif differentiate between 6.1 & 6.10
    By realnouns in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2013, 01:17 PM
  4. Differentiate between 00 and 000
    By Prcntrygrl in forum Excel General
    Replies: 2
    Last Post: 01-19-2011, 07:06 PM
  5. Replies: 6
    Last Post: 09-16-2010, 05:19 AM
  6. SUMIF Question: SUMIF not blank
    By nickyg in forum Excel General
    Replies: 5
    Last Post: 11-18-2009, 10:07 PM
  7. [SOLVED] Sumif to return a blank if sum range is blank
    By S0ck3t@yahoo.com in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2006, 05:30 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