+ Reply to Thread
Results 1 to 13 of 13

Extract Specific text again

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Extract Specific text again

    I have a numerous cells 18,000 of them that I want to extract specific text from

    Each cell looks like this

    AuthorJerry Seigel
    ArtistJoe Shuster
    ArtistJack Burnley
    ArtistLeo Nowak
    ArtistJohn Sikela
    ISBN-139781401201517
    FormatHardback,
    PublisherDC Comics
    Publication date2 Jun 2004
    Pages224
    Product dimensions178 x 254 x 25mm
    Weight771g

    I need to separate the text so that it take out " Hardback", " DC Comics", "224", separates the 178 254 and 25, and also takes out the 771g.

    This is way out of my league when it comes to excel.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Extract Specific text again

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If trere are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, etc. - please show them all or at least indicate in text) The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following: Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.
    Best Regards,

    Kaper

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Extract Specific text again

    May be try

    B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    copy down!!
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extract Specific text again

    Here is the file as requested

    Quick amendment Column F, so not to confuse should bring out Pages before 224.
    Attached Files Attached Files

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Extract Specific text again

    Try

    D2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy across

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract Specific text again

    D1=Format E1=Publisher F1=Pages G1=Dimensions and h1=Weight
    then use below formula in D2 and copy across
    =IFERROR(TRIM(LEFT(SUBSTITUTE(SUBSTITUTE(MID($C2,SEARCH(D$1,$C2)+LEN(D$1),256),",",REPT(" ",256)),CHAR(10),REPT(" ",256)),256)),"")
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract Specific text again

    further to bifurcate Dimension use below formulas
    i2=TRIM(MID(SUBSTITUTE(SUBSTITUTE($G2,"x",REPT(" ",100)),"mm",REPT(" ",100)),1,100))
    j2=TRIM(MID(SUBSTITUTE(SUBSTITUTE($G2,"x",REPT(" ",100)),"mm",REPT(" ",100)),101,100))
    K2==TRIM(MID(SUBSTITUTE(SUBSTITUTE($G2,"x",REPT(" ",100)),"mm",REPT(" ",100)),201,100))
    Try this and copy towards down

    see the attached file
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extract Specific text again

    Superb It works
    Last edited by king10001; 11-03-2017 at 06:55 AM.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Extract Specific text again

    You need to attach your file as requested in post #2.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extract Specific text again

    on a few on the weights they have 4 digits instead of 3, the formula just pulls the 1st number out?

    "AuthorHayao Miyazaki
    Illustrated byHayao Miyazaki
    ISBN-139781421500492
    SeriesHOWL'S MOVING CASTLE
    FormatHardback,
    PublisherViz Media, Subs. of Shogakukan Inc
    Publication date1 Jul 2005
    Pages256
    Product dimensions218 x 306 x 24mm
    Weight1,596g"

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract Specific text again

    in attached file try below formula in H2 and copy towards down
    Please Login or Register  to view this content.

  12. #12
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract Specific text again

    Quote Originally Posted by king10001 View Post
    on a few on the weights they have 4 digits instead of 3, the formula just pulls the 1st number out?

    "AuthorHayao Miyazaki
    Illustrated byHayao Miyazaki
    ISBN-139781421500492
    SeriesHOWL'S MOVING CASTLE
    FormatHardback,
    PublisherViz Media, Subs. of Shogakukan Inc
    Publication date1 Jul 2005
    Pages256
    Product dimensions218 x 306 x 24mm
    Weight1,596g"
    Dear, king10001

    Please respond to the Senior forum members if they asked to do something or asked for something.

  13. #13
    Forum Contributor
    Join Date
    06-24-2013
    Location
    United Kingdom
    MS-Off Ver
    Office 365
    Posts
    114

    Re: Extract Specific text again

    ignore it have it sorted.

+ 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. Extract specific text from Text file
    By pvsvprasad in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 08-22-2016, 04:34 AM
  2. [SOLVED] Extract specific text
    By Onek2fok in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-29-2015, 03:58 PM
  3. Replies: 5
    Last Post: 05-03-2011, 09:35 AM
  4. Extract specific text from a cell
    By Offeror in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2011, 05:07 AM
  5. How to extract specific text from a worksheet
    By badbronco in forum Excel General
    Replies: 18
    Last Post: 11-12-2009, 11:59 AM
  6. [SOLVED] Extract Specific Text
    By mjmoore in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-02-2006, 03:35 PM
  7. How to extract text from-to a specific position in a text
    By Sven in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-13-2005, 04:00 PM

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