+ Reply to Thread
Results 1 to 9 of 9

SUMIF Formula with exact match text

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    SUMIF Formula with exact match text

    Hi guys,

    I need your help: I need to sum prices of references to an inventory from another tab.
    So I used this formula =SUMIF(Sheet1!$A:$A, "*"&$A2&"*", Sheet1!B:B)

    The problem is that the sum is not accurate as it includes the other references with the same syllable of the different cells.

    For example, if I want to sum all the prices of the reference "old" it will also aggregate the data from "gold" or "cold".

    How can I do to get the sum of the exact match, please?
    Last edited by Perlapimpim; 05-26-2019 at 02:15 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-07-2013
    Location
    Michigan
    MS-Off Ver
    O365
    Posts
    601

    Re: SUMIF Formula with exact match text

    Try this:
    Please Login or Register  to view this content.
    It just involves removing the wildcards.
    If someone helped achieve your solution, consider clicking "* Add Reputation" on their post.

    If your question has been answered, mark the thread as [SOLVED] using the Thread Tools menu at the top of the thread.

  3. #3
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: SUMIF Formula with exact match text

    I tried that, it does not work either.
    Maybe I should use something different than the SUMIF formula?
    Last edited by Perlapimpim; 05-26-2019 at 02:15 PM.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: SUMIF Formula with exact match text

    It would help if you attached a sample Excel workbook, and you can do this even if you have a low post-count (you can't post links if you have less than 5 posts).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Do NOT try to use the Paperclip icon, as this does not work on this forum.

    Hope this helps.

    Pete

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: SUMIF Formula with exact match text

    Maybe like this:

    =SUMPRODUCT(ISNUMBER(SEARCH( " "&$A2&" "," "&Sheet1!$A2:$A1000&" "))* Sheet1!$B$2:$B$1000)

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMIF Formula with exact match text

    Or

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

  7. #7
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: SUMIF Formula with exact match text

    Yeah!!! Thank you so much Jason.b75
    it works

    Do you mind explaining to me the formula, please?
    Last edited by Perlapimpim; 05-26-2019 at 02:06 PM.

  8. #8
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMIF Formula with exact match text

    Sure, it's taking 3 variations of the criteria, the first looks for the content of A2 as the first word in the cells of the sumif criteria range, the second looks for it as the last word, the third looks at everything else in the middle. The spaces between A2 and the wildcard character ensure that the criteria word is matched as a whole, not to a longer word as you found with your first formula.

    $A2&" *" first word
    "* "&$A2 last word
    "* "&$A2&" *" middle word(s)

    CHOOSE({1,2,3} creates an array to allow 3 criteria to be entered into a single argument of sumif.

    SUMPRODUCT enforces the array and adds the 3 individual results together.

  9. #9
    Registered User
    Join Date
    05-24-2019
    Location
    London
    MS-Off Ver
    Microsoft Office Professional Plus 2016 | for Office 365 MSO | 32-bit
    Posts
    23

    Re: SUMIF Formula with exact match text

    Thank you very much, it's really helpful and useful

+ 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: 1
    Last Post: 03-25-2019, 12:24 PM
  2. Replies: 5
    Last Post: 03-28-2018, 03:53 PM
  3. [SOLVED] Amending an IF formula from an exact match to partial match
    By pauldaddyadams in forum Excel General
    Replies: 2
    Last Post: 03-02-2017, 05:11 PM
  4. [SOLVED] sumif which finds text, not an exact match, but a close match instead
    By Beefy1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2014, 08:29 PM
  5. [SOLVED] Exact text match within a SUMIF function
    By afgoody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 11:35 PM
  6. [SOLVED] Find Exact Match Text String Using Formula
    By sweetrevelation in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2012, 10:53 AM
  7. Replies: 4
    Last Post: 04-02-2012, 07:37 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