+ Reply to Thread
Results 1 to 5 of 5

Find the code inside the text and return the code in another column

  1. #1
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Find the code inside the text and return the code in another column

    Hello,

    I have a list of data inside the cell and has a tag#. I need to separate that Tag# but it's a long list and sometimes the Tag is in the beginning and sometimes
    it's in the end. It will be difficult to know which is a Tag number so i inserted in another sheet the list of Tag # that has to be separated and bring to another column.
    I'm trying to separate the Tag from inside the cell because i want to use it in future for Vlookup reference.

    I attached the file for easy reference.

    Thanks again.
    Last edited by rickyilas; 06-27-2022 at 03:13 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 2403
    Posts
    44,023

    Re: Find the code inside the text and return the code in another column

    ?? Is this what you wanted:

    =TRIM(RIGHT(SUBSTITUTE(B2," ",REPT(" ",50)),50))
    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

  3. #3
    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
    44,023

    Re: Find the code inside the text and return the code in another column

    On second thoughts:

    =IFERROR(LOOKUP(1000,SEARCH(Tag!$A$2:$A$86,B2),Tag!$A$2:$A$86),"")

    if not, please read the yellow banner (top) about sample sheets and add a small sample WITH EXPECTED answers.

    Thanks!

  4. #4
    Forum Contributor
    Join Date
    08-24-2009
    Location
    Manila, Philippines
    MS-Off Ver
    MS 365 Subscription Insider (Windows 11 64-bit)
    Posts
    120

    Re: Find the code inside the text and return the code in another column

    Hi Glenn,

    Thanks for your reply and solutions you gave me. The 2nd spreadsheet you sent is the answer I am looking for. Thank you very much, I really appreciate it.

    Cheers.

  5. #5
    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
    44,023

    Re: Find the code inside the text and return the code in another column

    You're welcome.

+ 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. VB Code to find certain text in column and change
    By rmomin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2021, 02:09 AM
  2. [SOLVED] VB Code to find certain text in column and copy digit part in diff column
    By rmomin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-09-2021, 07:12 AM
  3. [SOLVED] Can't find VBA code to format a column based on text within a row
    By LuciferUntamed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-21-2020, 01:30 AM
  4. VBA Code to Find Specified text within a Column and perform Text to Column
    By MHamid in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2014, 06:42 AM
  5. InStr function doesn't find specific text, but finds any text in column and runs code
    By mikey3580 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2014, 03:50 AM
  6. VB Code to find 1st Occurrence of text in column A
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-25-2013, 09:46 AM
  7. Replies: 3
    Last Post: 07-27-2011, 02:29 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