+ Reply to Thread
Results 1 to 5 of 5

How to use sumif on a column of text that contains specific letters within a string?

  1. #1
    Registered User
    Join Date
    03-20-2015
    Location
    San Francisco, CA
    MS-Off Ver
    2016
    Posts
    4

    How to use sumif on a column of text that contains specific letters within a string?

    Hello,

    I need help with a formula that would sum column B, if column A has the letters "MMM" within the cell.
    For example:
    Excel Sample.jpg

    Any cell in Column A that contains "MMM" no matter what position within the string of text, I want to sum column B. How can that be accomplished?

    Thank you.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: How to use sumif on a column of text that contains specific letters within a string?

    Adjust your reference range accordingly. =SUMIF($A$1:$A$3,"*AAA*",$B$1:$B$3)

  3. #3
    Registered User
    Join Date
    03-20-2015
    Location
    San Francisco, CA
    MS-Off Ver
    2016
    Posts
    4

    Re: How to use sumif on a column of text that contains specific letters within a string?

    Thank you!!

  4. #4
    Registered User
    Join Date
    03-20-2015
    Location
    San Francisco, CA
    MS-Off Ver
    2016
    Posts
    4

    Re: How to use sumif on a column of text that contains specific letters within a string?

    Sorry, follow up question, what if I wanted to search for cells that had "MMM" as the last letters of the string?

    For example:
    Last --> WEFAFMMM
    Last --> ADFSEFSEFSEFMMM
    Not Last -->SDFSDFMMMSEF
    Last --> SEFSEFMMM

  5. #5
    Valued Forum Contributor
    Join Date
    06-21-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2000, Excel XP, Excel 2002, Excel 2007, Excel 2010, Excel 2013
    Posts
    975

    Re: How to use sumif on a column of text that contains specific letters within a string?

    Just remove the last * from the above formula.
    Please Login or Register  to view this content.

+ 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] Finding a specific text string throughout an entire column and if there return true/false
    By myfivemonkeys in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-06-2015, 07:31 PM
  2. [SOLVED] Removing letters from text string
    By cmb80 in forum Excel General
    Replies: 10
    Last Post: 07-14-2014, 09:08 AM
  3. [SOLVED] Replacing specific text in string from same column...
    By netsecrets00 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2014, 02:56 AM
  4. [SOLVED] Extracting specific part of the text string to another column
    By ssanjju in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-20-2013, 07:20 PM
  5. [SOLVED] extract text string when you only know the last three letters of that string
    By alison0edwards in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 01:20 PM
  6. [SOLVED] Find Specific Text in Text String and Return Value in Adjacent Column
    By watchouse in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 03:53 PM
  7. Formula Finding String with Specific Letters and Numbers
    By jpedges38 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-06-2012, 08:56 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