+ Reply to Thread
Results 1 to 3 of 3

extracting data based on text

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    Vienna, Austria
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question extracting data based on text

    dear all,

    i'm facing a list of toooo many lines.

    every now and then I have a line with the content:

    Please Login or Register  to view this content.
    and I would need to extract the data between Duration: and "s"
    in this example I would need the "189".

    side infos:
    its not always 3 digits long (can def. from 1 to 5 digits)
    and the line with "duration" in it is in every 3rd to 5t line.

    looking forward to any assistance - thank you all in advance.

    thanks and have a nice day,

    twok

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: extracting data based on text

    hi twok, welcome to the forum. maybe something like this:
    =MID(A1,FIND(":",A1)+2,FIND("s",A1)-FIND(":",A1)-2)

    the above will be a text. so if you need it as a number
    ==MID(A1,FIND(":",A1)+2,FIND("s",A1)-FIND(":",A1)-2)+0

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    03-15-2013
    Location
    Vienna, Austria
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: extracting data based on text

    you saved my day (+ weekend)

    luv ya!

    thank you very much!

+ 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