+ Reply to Thread
Results 1 to 7 of 7

SUMIF Problems with Non-Numeric Data

  1. #1
    Registered User
    Join Date
    01-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    SUMIF Problems with Non-Numeric Data

    Working with a spreadsheet that contains non-numeric data in a column that I would like to count. But, the count needs to be based on another criteria, example:

    Please Login or Register  to view this content.
    Have tried SUMIF(B1:B6, "Team 1", A1:A6) but that always results in 0 due to the x's being non-numeric.

    Would like to be able to see a total of 2 for the SUMIF for Team 1 and a total of 1 for Team 2 in this example.

    Was looking at SUBSTITUTE as part of the formula but when used in the range it keeps giving me a formula error.
    Last edited by BOSMike; 01-21-2012 at 10:04 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,340

    Re: SUMIF Problems with Non-Numeric Data

    Use COUNTIFS to check both columns

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: SUMIF Problems with Non-Numeric Data

    Hi BOSMike,

    See the attachment and let us know if this suits.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: SUMIF Problems with Non-Numeric Data

    May BosMike 'd like to do SUMIF with A column contains numbers stored as Text.
    If dilipandey #3 doesn't met, try this in his file in cell E1 instead:
    Please Login or Register  to view this content.
    Quang PT

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: SUMIF Problems with Non-Numeric Data

    Since you are on XL2007, you can use COUNTIFS as TMS suggested,

    =COUNTIFS(B:B,"team 1",A:A,"x")

    You can enter 'team 1' & 'x' in a cell then link those cell to formula instead of hard coding.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Registered User
    Join Date
    01-18-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: SUMIF Problems with Non-Numeric Data

    Thank you so much!

    Didn't realize both the SUMPRODUCTS and COUNTIFS could work in this situation. Both solutions are perfect.

    Mike

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,340

    Re: SUMIF Problems with Non-Numeric Data

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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