+ Reply to Thread
Results 1 to 8 of 8

search for string, return adjacent value

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Coldstream Victoria Australia
    MS-Off Ver
    Microsoft Excel for Mac Version 16
    Posts
    21

    Cool search for string, return adjacent value

    I have a database covered to Excel with 10,000 records.
    Part of the database includes a cell called description

    In this cell there includes a reference to Musicians, as well as lots of other data not relevant to the search

    I want to search each cell for the word Musicians, and put the information immediately following musicians, (maybe 100 characters), into the adjacent cell. This would be the cell where the formula is located

    Any help please

    Ross
    Last edited by FDibbins; 07-11-2018 at 05:45 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: search for string, return adjacent value

    Ross, welcome to the forum

    (I adjusted your title, to make it a bit more meaningful to other members)

    1. Do you want the "extracted" list to be shown in a different location, or next to where it finds it?
    2. do the cells contain something like xxx musicians xxx etc?
    3. Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    Coldstream Victoria Australia
    MS-Off Ver
    Microsoft Excel for Mac Version 16
    Posts
    21

    Re: search for string, return adjacent value

    Attached is a small extract of a Description Field, with the required extracted string shown beside it


    Sample Description.xlsx

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: search for string, return adjacent value

    Your file didnt come through
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    09-14-2012
    Location
    Coldstream Victoria Australia
    MS-Off Ver
    Microsoft Excel for Mac Version 16
    Posts
    21

    Re: search for string, return adjacent value

    Apologies for delay in reply. I was just getting on a flight from Melbourne to Hong Kong. Now in Hong Kong

    Details attached, I hope
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,421

    Re: search for string, return adjacent value

    Assuming the layout is always the same, try this:

    =TRIM(SUBSTITUTE(MID(A4,FIND("Musicians",A4),999),"Musicians: ",""))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,421

    Re: search for string, return adjacent value

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

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,421

    Re: search for string, return adjacent value

    Thanks for the rep.

+ 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] Script to Search for a specific String then return cell values above that String-3
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2015, 01:50 PM
  2. [SOLVED] Script to Search for a specific String then return cell values above that String-2
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 01:00 PM
  3. [SOLVED] Script to Search for a specific String then return cell values above that String
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2015, 11:28 AM
  4. [SOLVED] Vlookup, Match (Search or Find) partial string within string in a Cell
    By dluhut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 12:40 PM
  5. Replies: 1
    Last Post: 09-20-2012, 03:22 PM
  6. [SOLVED] Search for string across header row, then search for another string down found column
    By TucsonJack in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2012, 02:09 PM
  7. search a string withing a string : find / search hangs
    By itarnak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-24-2005, 11:05 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