+ Reply to Thread
Results 1 to 4 of 4

Picking data out of text

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-21-2006
    Location
    Australia
    MS-Off Ver
    O365 PC Version 2301
    Posts
    122

    Picking data out of text

    I am trying to pull a single word out of a line of text. The word varies in length which is why I am having the problem.

    example
    Bowling: proficient Consistency: respectable

    I want to pull the data 'proficient' and 'respectable' to two different cells. The word will vary in those positions though and change in length. Is there a formula that will get it irrespective of the length of the word?

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Aussie_Striker
    I am trying to pull a single word out of a line of text. The word varies in length which is why I am having the problem.

    example
    Bowling: proficient Consistency: respectable

    I want to pull the data 'proficient' and 'respectable' to two different cells. The word will vary in those positions though and change in length. Is there a formula that will get it irrespective of the length of the word?
    Hi,

    something like

    =TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),50,50))

    and

    =TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",50)),150,50))

    should do the trick, increase the Rept etc as required.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Contributor
    Join Date
    04-21-2006
    Location
    Australia
    MS-Off Ver
    O365 PC Version 2301
    Posts
    122
    Thanks, that works. I don't understand how it works exactly but it works.

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Aussie_Striker
    Thanks, that works. I don't understand how it works exactly but it works.
    it makes BIG spaces and picks words out from somewhere in there, then trims off the spaces.

    ---

+ Reply to Thread

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