+ Reply to Thread
Results 1 to 6 of 6

Find Specific string

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    canada
    Posts
    123

    Find Specific string

    Hi,

    I need help for the following:

    A1 : A10 = each cell contains 7 words or more
    B1 : B10 = I would like to search for the word PO then once found get the word after it. For exmple A1 = XXXXX YYYYY PO 98760 WWWW ZZZZ
    on B1 I would like 98760 appears.

    Please help.

  2. #2
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    153
    Hi,

    Try this:

    In B1 enter
    Please Login or Register  to view this content.
    Use autofill to enter formulas in the rest of the cells.

    I am assuming that the spacing is always the same in your data, and that the PO is always 5 digits.

    Please find here more explanation on how to use the MID and FIND functions in the same formula.
    http://www.exceldigest.com/myblog/20...ons-in-a-cell/
    Regards.
    Last edited by se1429; 08-20-2008 at 03:50 PM.
    Welcome to: http://www.exceldigest.com/myblog/
    "Excel help for the rest of us"

  3. #3
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Try the following in b1 COPIED DOWN:

    =LEFT(TRIM(REPLACE(A1,1,FIND("PO",A1&"PO")+1,"")),FIND(" ",TRIM(REPLACE(A1,1,FIND("PO",A1&"PO")+1,""))&" ")-1)

    rICHARD

  4. #4
    Forum Contributor
    Join Date
    07-22-2008
    Location
    canada
    Posts
    123

    Thank you

    Hi,

    Thank you to SE1429 for his time. His idea worked very good as well but I find Richard's formula suit to what I was looking for. Thank you very much for your time Richard.

    Thank you 2 both of u

  5. #5
    Forum Contributor
    Join Date
    07-22-2008
    Location
    canada
    Posts
    123

    Re: Thank you

    how do i make this thread SOLVED?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Find Specific string

    how do i make this thread SOLVED?
    Read the Forum Rules
    Entia non sunt multiplicanda sine necessitate

+ 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: 7
    Last Post: 08-31-2013, 12:30 PM
  2. Find string and offset copy
    By EnergyEngineer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-28-2007, 05:06 PM
  3. Merging the correct number of cell rows to fit a string of wrapped text
    By iterature in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2007, 02:15 PM
  4. Replies: 2
    Last Post: 02-22-2007, 12:42 PM
  5. Replies: 7
    Last Post: 02-19-2007, 12:17 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