+ Reply to Thread
Results 1 to 10 of 10

Sumif help to ignore text in criteria

  1. #1
    Registered User
    Join Date
    03-06-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Sumif help to ignore text in criteria

    Good Morning,

    I have a file that shows text and numbers in the same column. I want to do a sumif formula that will only return totals for those items in the column that are values, not text.

    Ex.

    Bread $15
    123 $11
    234 $2
    345 $2

    I want the sumif to result in $15 no $30 based on the sample table above.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Sumif help to ignore text in criteria

    If that is two column of data, and if the numbers in column A are actual numbers, not stored as text, then this should do:

    =SUMIF(A:A,"*",B:B)
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,177

    Re: Sumif help to ignore text in criteria

    Try: =SUMIF(A:A,">-10E35",B:B)

  4. #4
    Registered User
    Join Date
    03-06-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: Sumif help to ignore text in criteria

    Rorya - That worked. Thank you!

    What does "*" do? I'm assuming it dictates values somehow.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Sumif help to ignore text in criteria

    It's a wildcard meaning any character, but it happens that SUMIF won't include any cell that just contains a number. If the cell is formatted as Text or prefixed with an apostrophe it would be counted even if it contained something that otherwise looks like a number.

  6. #6
    Registered User
    Join Date
    03-06-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: Sumif help to ignore text in criteria

    So did that formula count all the cells containing text?

    Sorry, I am a little slow understanding this morning.

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Sumif help to ignore text in criteria

    It sums the values in B for any row where column A contains text.

  8. #8
    Registered User
    Join Date
    03-06-2015
    Location
    Atlanta, GA
    MS-Off Ver
    Office 365 ProPlus
    Posts
    6

    Re: Sumif help to ignore text in criteria

    Makes sense.

    Thank you

  9. #9
    Registered User
    Join Date
    10-23-2018
    Location
    Iran
    MS-Off Ver
    2016
    Posts
    5

    Re: Sumif help to ignore text in criteria

    Hi dear
    use this array formula
    =SUM(IF(ISNUMBER(CriteriaRange),SumRange))

    use ctrl+shift+enter

  10. #10
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Sumif help to ignore text in criteria

    Regular formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    this will sum values in col B but will ignore cells with text
    v A B C D
    1 Bread $15 15
    2 123 $11
    3 234 $2
    4 345 $2
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ 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] Avoid Double Counting - Ignore Text in Criteria
    By SamFitz in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-29-2016, 09:19 AM
  2. SUMIF and Return text on 2 criteria
    By ABSTRAKTUS in forum Excel General
    Replies: 8
    Last Post: 10-10-2015, 01:36 PM
  3. SUMIF function with four criteria, numbers and text
    By bblack812 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-28-2014, 03:01 PM
  4. Sumif criteria - text strings?
    By buergerk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2012, 08:13 PM
  5. [SOLVED] SumIf / SumIfs with multiple Contains Text criteria
    By theweirdone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-13-2012, 05:22 AM
  6. SUMIF with criteria text (string)
    By jcprata in forum Excel General
    Replies: 2
    Last Post: 11-20-2009, 11:48 AM
  7. is there any way to have multiple TEXT criteria in a 'sumif' funct
    By datasorter in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2006, 02:20 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