+ Reply to Thread
Results 1 to 4 of 4

sumif which finds text, not an exact match, but a close match instead

  1. #1
    Registered User
    Join Date
    01-29-2014
    Location
    Bend, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    27

    sumif which finds text, not an exact match, but a close match instead

    HEllo,
    I have this formula: =SUMIFS('Master Sheet'!I:I,'Master Sheet'!B:B,A2,'Master Sheet'!C:C,">="&B2,'Master Sheet'!C:C,"<="&C2) and it is referencing a column which has last name, first name and comparing it to a table that I input last name, first name. Problem is that I do not always enter it exactly the same way. For instance, the report I pull to grab all of this data puts a space before the comma and two spaces after the comma. If I change my entry to match exactly what my report has, then the sumif formula works. However, I have too many entries to go back and enter spaces to make it the same. Is there a way to alter the formula so it only needs a general match rather than an exact match. By the way "B:B" is the reference to the data that the report outputs, "A2" is the cell in the table that I input the client names for each row. it is a relative reference.

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

    Re: sumif which finds text, not an exact match, but a close match instead

    Give us some examples of what the data in column A looks like, compared with the data in Master sheet column B - it might be possible to use a couple of SUBSTITUTES acting on A2 to convert that into the same format as in column B.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-29-2014
    Location
    Bend, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: sumif which finds text, not an exact match, but a close match instead

    See if this will help
    Bend SUMIF.xlsx

  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,733

    Re: sumif which finds text, not an exact match, but a close match instead

    You can use this formula in E2 instead:

    =SUMIFS('Master Sheet'!L:L,'Master Sheet'!B:B,SUBSTITUTE(A2,","," , "),'Master Sheet'!F:F,">="&B2,'Master Sheet'!F:F,"<="&C2)

    Note that I've used SUBSTITUTE in the middle to change the comma in A2 to a space-comma-space to match the data in your other sheet. Copy the formula down as required.

    Hope this helps.

    Pete

+ 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] Exact text match within a SUMIF function
    By afgoody in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-17-2013, 11:35 PM
  2. Replies: 3
    Last Post: 06-17-2013, 12:37 PM
  3. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  4. Replies: 6
    Last Post: 01-28-2012, 06:59 PM
  5. Replies: 2
    Last Post: 01-28-2012, 05:26 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