+ Reply to Thread
Results 1 to 5 of 5

SUMIF problem looking for specific words within text

  1. #1
    Registered User
    Join Date
    02-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    SUMIF problem looking for specific words within text

    Hi,

    I'm trying to add everything in Column B if the text in Column A contains a certain piece of text. I've done this by using the following formula:

    SUMIF(R:R,"*hello*",S:S)

    In the above forumla I'm adding all of column B where column A contains the text "hello". My problem is that I don't know how to tell the forumla to look up text in a cell as opposed to looking for the text "hello". I've attached a sheet that explains the problem better. Alternatively, if someone knows a better way of doing this, I'd love to hear it. I enjoy looking at different ways of doing the same thing in Excel .

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: SUMIF problem looking for specific words within text

    Oops, my apologies. in the above formula, I'm not adding Columns A and B but I think you get the basic idea of what I've done.

  3. #3
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: SUMIF problem looking for specific words within text

    Hi,

    try this,
    in and drag down.
    E3=SUMIF(A:A,"*"&D3&"*",B:B)

    also see attached file.
    Attached Files Attached Files
    Last edited by udprocks; 03-08-2016 at 08:58 AM. Reason: For whole range
    If answer helped you say Thanks by Add Reputation

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,169

    Re: SUMIF problem looking for specific words within text

    =sumif(a:a,"*" &d3 &"*",b:b)

  5. #5
    Registered User
    Join Date
    02-26-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: SUMIF problem looking for specific words within text

    Thanks guys

+ 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. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  2. Replies: 4
    Last Post: 03-03-2013, 02:35 PM
  3. remove text after and before specific words
    By Statsman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-22-2008, 02:38 PM
  4. [SOLVED] Using 'If' refer to specific words in a cell containing text
    By Casino Guy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 11:05 AM
  5. [SOLVED] Using 'If' refer to specific words in a cell containing text
    By Casino Guy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  6. [SOLVED] Using 'If' refer to specific words in a cell containing text
    By Casino Guy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 04:05 AM
  7. Using 'If' refer to specific words in a cell containing text
    By Casino Guy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-10-2005, 09:02 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