+ Reply to Thread
Results 1 to 3 of 3

Formula/vba to search partial strings in other sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    06-20-2015
    Location
    Chennai, India
    MS-Off Ver
    2010
    Posts
    59

    Formula/vba to search partial strings in other sheet

    All,

    I am having names in two cells of sheet1 (e.g. : A1 (Gina Williams) & A2 (Patrick Rafter)) and the corresponding bank statement narratives are in sheet 2 (column B) e.g: "Deposit from Gina towards rent for connaught place apt".

    Now i need to search all the four partial texts available in cells A1 & A2 of sheet 1 (ie. "Gina", "Williams", "Patrick", "Rafter" in the entire column B of sheet 2. if there is a match i need to capture the corresponding column A & C value for the matching row.

    SHEET1
    A | B | C
    1 | GINA WILLIAMS | OUTPUT (matching col A of sheet2) | OUTPUT (matching col C of sheet2)
    2 | PATRICK RAFTER | OUTPUT (matching col A of sheet2) | OUTPUT (matching col C of sheet2)

    SHEET2
    A | B | C
    1.| 12/7/2015 | Deposit from Gina towards rent for connaught place apt | 320
    2. |13/7/2015 | Deposit from Rafter towards rent for connaught place apt | 700


    kindly help me to fill the formulas for both col b & c of sheet1

    Thanks.
    Last edited by kevivu; 08-06-2015 at 02:12 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formula/vba to search partial strings in other sheet

    Hi there. Copy this across and down
    Formula: copy to clipboard
    =IFERROR(IFERROR(INDEX(Sheet2!B:B,MATCH("*"&LEFT($A2,FIND(" ",$A2)-1)&"*",Sheet2!$B$1:$B$20,0)),INDEX(Sheet2!B:B,MATCH("*"&MID($A2,FIND(" ",$A2)+1,255)&"*",Sheet2!$B$1:$B$20,0))),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Formula/vba to search partial strings in other sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Search Multiple strings and create new excel sheet
    By subodhgupta in forum Excel General
    Replies: 2
    Last Post: 05-19-2014, 09:07 AM
  2. Partial Strings match formula
    By jgw73 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2014, 11:38 AM
  3. excel formula to search Multiple strings in several columns and return strings
    By krratna123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2013, 11:20 AM
  4. Replies: 1
    Last Post: 08-13-2013, 08:32 AM
  5. Replies: 3
    Last Post: 07-10-2013, 01:39 PM
  6. Replies: 5
    Last Post: 03-29-2012, 04:12 AM
  7. Search column for pre-determined strings and copy row to a new sheet
    By wibbsy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-10-2012, 09:58 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