+ Reply to Thread
Results 1 to 3 of 3

Split column by bold-normal text

  1. #1
    Registered User
    Join Date
    09-10-2016
    Location
    UK
    MS-Off Ver
    2007
    Posts
    5

    Split column by bold-normal text

    Hi,

    First of all I've tried searching for this here (and other sites) but I haven't found anything that has worked for my data so far. So I would be endlessly appreciative of any help.

    I have a worksheet that currently comprises of a single column.

    The data, taken from an Italian to English dictionary, comprises headwords, definitions, grammatical indicators, and example sentences/phrases. It's these phrases that I'm interested in extracting.

    They're formatted in a single cell as: italian phrase english translation

    I want to separate the two phrases into two different columns, so that the result is:

    A______________B
    Italian phrase____English translation

    There are no regular markers (e.g. a semicolon or hyphen), otherwise I'd go to "text to columns". Is it possible to split a single cell according to bold/non-bold formatting? (The rest of the data I'm not interested in, so I'd like to delete/disregard them.)

    Any help would be massively appreciated, as I've got 28,000 rows to sort through!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Split column by bold-normal text

    What I know about VBA is sooooo small that it could all fit on the head of a pin. Here's a workaround. I've plagiarised a bit of code that will copy the text in bold into column B.

    Enable macros on opening, select the cells to be treated (A2 to A116 or thereabouts). Developer/Macros/Run.

    The bold text will appear in column B. I then used SUBSTITUTE to remove what's in column B from column A and place the result in column C =SUBSTITUTE(A2,B2,"") copied down.

    Then filter column B, to show all except blanks. Do the same for column C. That's your data. Copy and paste columns B & C.

    someone who knows VBA will fix it up for you...

    when you do this, wjhjat you get should be the same as what's currently in Sheet2.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Split column by bold-normal text

    Hi,
    Here's an other suggestion:

    In B, to get bold text, use : =ExtractBold(A1, True)
    In C, to get non bold text, use: = ExtractBold(A1, False) or the formula suggested by Glenn

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

+ 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. [SOLVED] split or extract text based on bold properties
    By mariomp in forum Excel General
    Replies: 4
    Last Post: 08-19-2016, 09:34 AM
  2. Sorting by Bold V. Normal Font
    By gretta in forum Excel General
    Replies: 5
    Last Post: 09-08-2014, 07:31 PM
  3. Split rows by bold text
    By skrtzi in forum Excel General
    Replies: 1
    Last Post: 10-07-2013, 04:27 PM
  4. Split cell - bold text and non bold text.
    By desertshift in forum Excel General
    Replies: 10
    Last Post: 11-21-2010, 08:13 PM
  5. Delete all text which is not 'bold' in cells with 'mingled bold' text
    By Excelfriend in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2010, 04:47 PM
  6. Replies: 3
    Last Post: 07-11-2009, 12:39 AM
  7. [SOLVED] how do i make one part of my formula bold and the other normal?
    By niquey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-27-2006, 10:25 AM

Tags for this Thread

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