+ Reply to Thread
Results 1 to 11 of 11

search specific text

  1. #1
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    search specific text

    hi all,
    i need to search word was begin with "IMXXXXXXX" and begin with 7 digit within text column.
    i 've tried with attached file but not work.
    please kindly helps.
    thanks in advances.
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: search specific text

    May be try

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


    or With condition

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by shukla.ankur281190; 09-15-2017 at 06:30 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: search specific text

    OH VERY GOOD.
    but why used 99?

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: search specific text

    Rept(" ",99) will add 99 space between each space so that Mid function can easily extract the desired value.

    I have give an other option if length of searched value is not = 9 then it should return "N"

    Hope this helps

  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: search specific text

    Neither of those work if there is an "IM" earler in the text string....
    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

  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
    44,023

    Re: search specific text

    can there be other 9-digit numbers elsewhere in the string?

  7. #7
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: search specific text

    Hi this formula is so difficult . haha
    and i 'd like to know too that can be other format ? or this formular need only IMXXXXXXXXX follow only numberic digit right?
    and for my formula as attached file can be modified as this results?
    thanks.

  8. #8
    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: search specific text

    Please answer my questions at Posts 5 and 6.

  9. #9
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: search specific text

    Hi shukla.ankur281190
    I refer from old topic I've try to use your code as
    Please Login or Register  to view this content.
    It 'work and to show IMXXXXXXX follow by 7 digits
    but there are many row to use this formular but not work when found "IMXXXXXXX" and to show 'N'
    Please kindly help for this?
    thanks a lot.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: search specific text

    Try this in B2:

    =MID(A2,MATCH(1,INDEX((MID(A2,ROW(INDIRECT("1:"&LEN(A2)-8)),2)="IM")
    *ISNUMBER(--MID(A2,ROW(INDIRECT("3:"&LEN(A2)-6)),7)),0),0),9)

  11. #11
    Forum Contributor
    Join Date
    05-09-2015
    Location
    Thailand
    MS-Off Ver
    MS365
    Posts
    303

    Re: search specific text

    it' work 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. [SOLVED] Search specific Text and return rows until new text found
    By Grimace in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2017, 01:07 AM
  2. [SOLVED] Search many workbooks for specific text, then insert a text in adjacent cell
    By MDW12 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-26-2017, 02:08 PM
  3. Search for specific text then add them together
    By EXCELsior44 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-13-2016, 08:31 AM
  4. [SOLVED] Search through columns and find specific text and replace that text with header column
    By adamzee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2014, 11:59 PM
  5. [SOLVED] To search specific text in a cell that contains text string
    By mikail in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-15-2013, 03:02 PM
  6. [SOLVED] search for text in colB, starting with next row search for 1st occurrence of specific #
    By roothog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-24-2012, 10:39 PM
  7. Replies: 1
    Last Post: 04-27-2012, 07:24 AM

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