+ Reply to Thread
Results 1 to 5 of 5

Macro to find a part of string in a main excel sheet

  1. #1
    Registered User
    Join Date
    11-07-2012
    Location
    New Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Macro to find a part of string in a main excel sheet

    Hi All,

    I am trying something in excel which seems difficult for me being a beginner. Can any one please help.
    My query is like, I have "ABN AMRO" in cell A1 in first sheet. and in next sheet I have "ABN AMRO Bank". I have to find ABN in next sheet and paste ABN AMRO in adjacent cell. If something is not matching either part of text then left adjecent cell as blank. Please help.

    Regards,
    Gaurav

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

    Re: Macro to find a part of string in a main excel sheet

    Not enough examples to work on. Please post a sample workbook which explains your problem more thoroughly.

    Pete

  3. #3
    Registered User
    Join Date
    11-07-2012
    Location
    New Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to find a part of string in a main excel sheet

    Hi pete,

    I have attached a short piece of data for example.
    In sheet 1 in column B, i have to paste matched name from sheet2.

    Regards,
    Gaurav
    Attached Files Attached Files

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

    Re: Macro to find a part of string in a main excel sheet

    Put this in B2 of Sheet1:

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


    then copy down.

    Hope this helps.

    Pete

    PS. I shall ask a Moderator to move this thread into one of the main Forums.

  5. #5
    Registered User
    Join Date
    11-07-2012
    Location
    New Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Macro to find a part of string in a main excel sheet

    Hi Pete,

    What I am trying to do if any part of text from sheet 1's cell is matching with any part of sheet 2. I need to paste corresponding cell from sheet 2.
    like for "ABN AMRO N.V. HQ" i need to paste " ABN AMRO Bank" from sheet 2.

    Regards,
    Gaurav

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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