+ Reply to Thread
Results 1 to 5 of 5

Identical Cell values not counting in Sumif formula

  1. #1
    Registered User
    Join Date
    12-01-2020
    Location
    Illinois
    MS-Off Ver
    16.16.26
    Posts
    2

    Identical Cell values not counting in Sumif formula

    Often times I have what appear to be exact cell values say, say "blue" and I drive the sum or count formula if cell criteria is "blue" For some reason even though both cells are populated with "blue" it counts one but not the other? This has been a common occurrence for me in excel with these formulas. Please help.

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

    Re: Identical Cell values not counting in Sumif formula

    Welcome to the forum.

    It might be that you have leading or trailing spaces with some values, or even non-printing characters like the non-breaking space (code 160), but it is hard to say exactly without seeing your data. The yellow banner a the top of the screen gives details of how to attach a sample Excel workbook to one of your posts.

    Hope this helps.

    Pete

  3. #3
    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: Identical Cell values not counting in Sumif formula

    an option might be to point this formula to both cells, =len(A2) assuming that blue is in A2 then point the same formula to the other one that isn't being counted.
    if they return different numbers there might be (as Pete noted above) a space you aren't seeing.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Identical Cell values not counting in Sumif formula

    Others have pointed out likely reasons your data may not be what you believe it is. On a different tangent, if cell X99 displays blue, try =X99="blue". If that formula returns FALSE, then X99 includes other characters whether you see them or not. You could try =CODE(SUBSTITUTE(X99,"blue","",1)) to see the character code of the 1st character in X99 after removing "blue". Or just ="["&X99&"]" to see if there are additional spaces.

  5. #5
    Registered User
    Join Date
    12-01-2020
    Location
    Illinois
    MS-Off Ver
    16.16.26
    Posts
    2

    Re: Identical Cell values not counting in Sumif formula

    Thank you all. This resolved the issue there were hidden characters.

+ 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] Excel sees non-identical values as identical
    By jdmrs in forum Excel General
    Replies: 9
    Last Post: 12-18-2019, 11:38 AM
  2. Replies: 0
    Last Post: 03-10-2014, 03:38 PM
  3. [SOLVED] Add multiple identical values in one cell - VLOOKUP
    By nigo75 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2013, 05:01 AM
  4. Replies: 4
    Last Post: 11-03-2012, 12:02 PM
  5. Swap identical ranges of cell values
    By CCArtsAlliance in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2010, 10:54 PM
  6. Look for identical strings and add cell values beside each
    By GeorgY in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-19-2009, 02:03 AM
  7. Counting number of identical values (or text) in a range
    By Excelerate-nl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2005, 05:05 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