+ Reply to Thread
Results 1 to 5 of 5

Name search formula within text then sumifs from sheet2 to sheet1

  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    178

    Name search formula within text then sumifs from sheet2 to sheet1

    Hello,

    I am looking to use a search formula for first, last name then sumif between two tabs

    Sheet1: Search for below name in column text

    Sheet1.PNG


    Sheet2: Search same name, and if there is a match then sum the totals per that condition

    Sheet2.PNG

    So Essentially, if the search can match the names exact, then sum the totals in a new column on Sheet 1.


    I have been trying the IF search then sumifs it agrees to sheet 2 search results. I do not have a name list that I can use so not sure how the search will work.

    I really just want to find a match each time those columns from both sheets find a name match and then sumif the totals per that match from sheet to to a new column in Sheet1.

    I do not want to use text to columns at this point.

    Any thoughts on formula solutions?


    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Name search formula within text then sumifs from sheet2 to sheet1

    Will the full name always be in last and second last position?

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Name search formula within text then sumifs from sheet2 to sheet1

    If you do not want to use Text to Columns are you OK with a helper column?

    In the attached column D 'Sheet2' this normalizes the names. It someone may be able to shorten it.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    then in D2 'Sheet1'
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Edit Here is a shorter helper formula column D 'Sheet2'.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 12-28-2018 at 07:28 PM.
    Dave

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Name search formula within text then sumifs from sheet2 to sheet1

    Please try D2

    =SUMIFS(Sheet2!$C:$C,Sheet2!$B:$B,TRIM(RIGHT(SUBSTITUTE(C2," ",REPT(" ",20)),20))&", "&TRIM(LEFT(RIGHT(SUBSTITUTE(C2," ",REPT(" ",20)),40),20))&"*")

  5. #5
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    178

    Re: Name search formula within text then sumifs from sheet2 to sheet1

    @Pepe Le Mokko

    to reply to your post question: Will the full name always be in last and second last position?


    Shruder Reply: No, it will be a variable potentially each cell.
    Last edited by Shruder; 01-07-2019 at 06:46 PM.

+ 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: 01-24-2017, 11:33 PM
  2. Replies: 2
    Last Post: 07-14-2015, 04:32 PM
  3. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  4. [SOLVED] Formula for finding text in sheet1 with numbers from sheet2
    By excelresumes in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-19-2013, 08:32 AM
  5. Replies: 0
    Last Post: 01-16-2013, 07:46 PM
  6. [SOLVED] Copy and Paste Entire Row from Sheet1->Sheet2 based on text string match in Sheet1 Row
    By dmlovic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2012, 08:42 AM
  7. [SOLVED] How to search and add a value from sheet1 to sheet2
    By Roel in forum Excel General
    Replies: 1
    Last Post: 03-07-2005, 12:06 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