+ Reply to Thread
Results 1 to 3 of 3

Extracting information from text within a cell

  1. #1
    Registered User
    Join Date
    09-03-2005
    Posts
    23

    Extracting information from text within a cell

    I have a long list of information that looks like this:

    A1: Work: 8, Information: Yes indeed
    A2: Work: 19, Information: Circular, Time: 1
    A3: Information: Sort of, Time: 20

    What I would like to do is to be able to extract the information into separate cells without editing the text manually:

    B1: 8 C1: Yes Indeed D1: 0
    B2: 19 C2: Circular D2: 1
    B3: 0 C2: Sort of D3: 20

    Or be able to match information within the text:
    IF A2 work > 10 THEN TRUE

    There's a function that extracts text that can be combined with find, but it forces me to type how many letters I wish to extract. If I use 7 letters for "information" I would get:
    Yes ind
    Circula
    Sort of

    Any idea upon how I can solve this?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try these:

    In B1:
    Please Login or Register  to view this content.
    In C1:
    Please Login or Register  to view this content.
    in D1:
    Please Login or Register  to view this content.
    each copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-03-2005
    Posts
    23
    Ah. I can see what you have done here. Hmmm. This assumes that each textblock carries only 3 types of data (Work:, Information and Time: ). What I gave here was a shortened list though, the real list im working on have 13 types. Your way might be the only solution to extract data from the types which contains text though.

    Your solution is fairly similar to my solution for the numbers.

    =VALUE(IF(COUNTIF($C117;CONCATENATE("*";I$115;"*"))>0;MID($C117;FIND(I$115;$C117;1)+5;2);0))

    Note VALUE( and 2. Since I know that there's either one or two digits, 2 is enough when not dealing with text. VALUE( is used to clear out a comma if there's only 1 digit (#,).

    $C117 is the cell that contains the textblock.
    I$115 is a cell that contain the kind of information to search for (Such as "Work: " or "Time: ").
    Last edited by JemyM; 07-02-2008 at 01:22 PM.

+ 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