+ Reply to Thread
Results 1 to 5 of 5

Name search formula within text then sumifs from sheet2 to sheet1

Hybrid View

Shruder Name search formula within... 12-28-2018, 11:40 AM
Pepe Le Mokko Re: Name search formula... 12-28-2018, 11:47 AM
Shruder Re: Name search formula... 01-07-2019, 06:43 PM
FlameRetired Re: Name search formula... 12-28-2018, 06:13 PM
Bo_Ry Re: Name search formula... 12-29-2018, 12:15 AM
  1. #1
    Forum Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    199

    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?


    =IF(AND(OR(ISNUMBER(SEARCH("Bill Nye",$c2)),$f2="Bill Nye",SUMIFS from Sheet 2,0))))
    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,605

    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 Contributor
    Join Date
    02-13-2018
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    199

    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.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    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
    =SUBSTITUTE(TRIM(MID(SUBSTITUTE(REPLACE(B1,FIND("-",B1),99,"")&"/"&REPLACE(B1,FIND("-",B1),99,""),",",REPT(" ",100)),100,100)),"/","")
    then in D2 'Sheet1'
    Formula: copy to clipboard
    =SUMPRODUCT(--ISNUMBER(SEARCH(Sheet2!$D$1:$D$100,C2)),Sheet2!$C$1:$C$100)


    Edit Here is a shorter helper formula column D 'Sheet2'.
    Formula: copy to clipboard
    =REPLACE(REPLACE(B1,1,FIND(",",B1)+1,""),FIND("-",REPLACE(B1,1,FIND(",",B1)+1,"")),99,LEFT(B1,FIND(",",B1)-1))
    Last edited by FlameRetired; 12-28-2018 at 07:28 PM.
    Dave

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

    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))&"*")

+ 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. 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