Results 1 to 9 of 9

Finding a value within a number/text

Threaded View

  1. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    to extract begining and end of range from your two posted examples
    in b1
    =--LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-","",1),"!",""),":","-"),(FIND("-",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-","",1),"!",""),":","-")))-1)
    in c1
    =--(LEFT(SUBSTITUTE(SUBSTITUTE(A1,"!","-"),":","-"),FIND("-",SUBSTITUTE(SUBSTITUTE(A1,"!","-"),":","-"))-1)&MID(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-","",1),"!",""),":","-"),(FIND("-",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"-","",1),"!",""),":","-")))+1,255))
    then in d1 dragged down
    =IF(AND($E$1>=B1,$E$1<=C1),"found","not found")
    with value to find in e1 (may be a problem if the last bit after ! or - is greater than 00-99)
    Last edited by martindwilson; 12-31-2008 at 11:30 AM.

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