+ Reply to Thread
Results 1 to 9 of 9

Search specific string of word from a cell

  1. #1
    Registered User
    Join Date
    08-08-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    4

    Search specific string of word from a cell

    Hi All,

    I Need your Help on lookin up a specific set of alpha numeric unique ID from a cell which will have this Unique ID along with other words.

    Corrected Example File attached.

    Am sorry i put my query incorrectly previously

    Below is what am looking for

    Brief description of the Report:
    Column A2 to Column C4 is system generated report and Column G2 to G4 is manually captured by user which may or may not have a space or alphanumeric before and after the Unique ID that they capture. This is were am facing issue to look up on user captured data against system generated report to get costing and volume accordingly.

    Help needed:
    What am lookin at is in Cell H2 we need to look up or search or match the Unique ID that's available in A2 to A4 to G2 once we are able to match this then need to look up for corresponding costing and Volume.

    Thank You
    Sudhir
    Attached Files Attached Files
    Last edited by Riderboy5877; 01-28-2021 at 06:29 PM. Reason: I put up my Query Incorrectly

  2. #2
    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
    80,367

    Re: Search specific string of word from a cell

    Welcome to the forum.

    In B2 copied down:

    =VLOOKUP(A2&"*",$G$2:$H$4,2,0)

    In C2 copied down:

    =VLOOKUP(A2&"*",$G$2:$I$4,3,0)
    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.

  3. #3
    Registered User
    Join Date
    08-08-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    4

    Re: Search specific string of word from a cell

    Hi AliGW,

    Thank you so much for your response and really sorry i had put a wrong Question so i had to change it to correct one and also tried to be as descriptive as i could be.

  4. #4
    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
    80,367

    Re: Search specific string of word from a cell

    In H2 copied across and down:

    =IFERROR(LOOKUP(1000,SEARCH($A$2:$A$4,$G2),B$2:B$4),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-29-2021
    Location
    Geel, Belgium
    MS-Off Ver
    office 365; excel versie 2021
    Posts
    3

    Re: Search specific string of word from a cell

    Hello,

    I hope I'm posting in the right thread, if not correct me please.

    I'm looking for the n'th sign in a string, in this particular case the sign '-'.

    Thanks for the help!

    Regards
    Hans
    Attached Files Attached Files

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

    Re: Search specific string of word from a cell

    Hi.

    It's a forum rule that you start your own thread, rather than "piggy-backing" on someone else's thread. This helps prevent massive confusion arising - which will happen if it is not clear which question is being answered. So please start your own thread and explain your own problem (make sure that, right from the start, you use a meaningful title (NOT things like "help needed" or "urgent problem"... think of the Google search terms that you would use to find the solution).

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures. So, prepare a SMALL sample sheet (10-20 rows, not thousands!!!). Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!


    The yellow banner about sample worksheets, at the top of the screen tells you how to post a sheet here on the Forum.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Registered User
    Join Date
    08-08-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    4

    Re: Search specific string of word from a cell

    Thank You so much AliGW. your solution worked like a charm

    One last Query can we get the result as Blank only if any cell in B or C is also blank coz now it would return with a Zero 0.

    Thank You.

  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
    80,367

    Re: Search specific string of word from a cell

    Yep:

    =IFERROR(1/(1/LOOKUP(1000,SEARCH($A$2:$A$4,$G2),B$2:B$4)),"")

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Registered User
    Join Date
    08-08-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    4

    Re: Search specific string of word from a cell

    Thank You So Much

+ 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: 16
    Last Post: 08-09-2017, 12:50 PM
  2. Script to Search for a specific String then return cell values above that String-4
    By owensjb2 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2015, 01:28 AM
  3. [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
  4. [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
  5. [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
  6. Replies: 13
    Last Post: 08-04-2011, 09:41 AM
  7. Replies: 1
    Last Post: 01-25-2011, 10:50 PM

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