+ Reply to Thread
Results 1 to 2 of 2

Can't get sumif to only return true for whole words rather than text matched within words

  1. #1
    Registered User
    Join Date
    02-18-2014
    Location
    england
    MS-Off Ver
    2019
    Posts
    13

    Can't get sumif to only return true for whole words rather than text matched within words

    Hoping for some help, Im sure it's very simple but it's been a long day.

    I have a spreadsheet which I use to estimate my required stock. I have my past years sales in one sheet and use a sumif on the next sheet to lookup the values of each of my stock items and return the number sold to a new sheet.

    The problem I have is it is returning values which contain the specific text as part of the word and not just as the word on its own. So for instance, I want to look up how many Bride items I have sold, It is also returning mother of the bride, bridesmaid, chief bridesmaid etc. The cell does contain other sales details also. Ie [Message on heart Little Sister,Length 18",Packaging Organza bag] WHere the data I wish to extract would be "little sister"


    The code I have is: =SUMIF(Data!AL:AL,"*"&A57&"*",Data!O:O) I know its probably very simple but would really appreciate some help.

    Another issue is that I also search for terms such as godmother, where on some occasions it may be god mother and others may be godmother. I am thinking of making 2 separate rows for each and then totalling unless there is a work around.

    Thanks x
    Last edited by scampie; 07-12-2019 at 03:39 PM.

  2. #2
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Can't get sumif to only return true for whole words rather than text matched within wo

    The '*' act as wildcards. Convert to
    =SUMIF(Data!AL:AL,A57,Data!O:O)

    For your second question around godmother. Yes, probably easiest to just have both separately and then add together.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

+ 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] Find matching words in a text string and return one of four words
    By alecoute in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2018, 12:33 PM
  2. Replies: 15
    Last Post: 10-12-2014, 08:53 AM
  3. Replies: 13
    Last Post: 06-25-2014, 09:48 AM
  4. Return True/False if a string of words is present in another list
    By tmahoney1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2013, 05:39 PM
  5. Replies: 1
    Last Post: 04-04-2012, 07:15 PM
  6. [SOLVED] Match specific words in cell and return value if true or false
    By jbrooksia in forum Excel General
    Replies: 3
    Last Post: 03-27-2012, 04:15 PM
  7. Replies: 2
    Last Post: 02-17-2011, 10:15 PM

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