+ Reply to Thread
Results 1 to 7 of 7

Split data depending on colour

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Split data depending on colour

    I am an Excel 2003 user. I have a long list of 6000 items in Column A containing data starting off in black and ending in dark blue. Eg: ENGLAND London. I want to split this data across columns, so that in Col B I have ENGLAND and in col C I have London.

    I would also be interested if for instance there was a third colour involved:
    Eg: ENGLAND London Lewisham
    How can I split that across 3 columns?

    Is it also possible to search for fontsizes, eg: if ENGLAND is in size 12 and London in font size 7. Can one search on fontsizes or case?

    This can be a formula (if possible) or VBA.

    Your help is very much appreciated.
    Ray
    Last edited by needyerhelp; 04-30-2010 at 01:56 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Split data depending on colour

    No inbuilt function,you will need VBA.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    02-25-2010
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    174

    Re: Split data depending on colour

    roy is correct,

    the only way would be if they had a color for a particular reason (like conditional formatting) then you could figure out some way.

    In 2007 you can sort by Font Color, so if you sorted then manually copy and pasted you would also be ok.

  4. #4
    Registered User
    Join Date
    04-30-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Split data depending on colour

    Can you please guide me on how to do this in VBA?

    Thanks

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Split data depending on colour

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  6. #6
    Registered User
    Join Date
    04-30-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Split data depending on colour

    Hi Roy, my brother managed to come to the rescue. I will outline here what happened so others can hopefully benefit from it. This is what I had in Column A:
    Counties & Cities
    BEDFORDSHIRE Dunstable
    BEDFORDSHIRE Kempston
    BEDFORDSHIRE Leighton Buzzard
    CLWYD Colwyn Bay
    CLWYD Flint
    COUNTY TYRONE Cookstown

    The Counties were always in black while the cities in dark blue. I wanted to split the County from the City onto Columns C & D, so the first entry, for instance would have BEDFORDSHIRE in Col C and Dunstable in Col D.

    This is how it was achieved:

    Please Login or Register  to view this content.
    Hope this would help others.
    Thanks
    Last edited by needyerhelp; 05-01-2010 at 07:48 AM.

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Split data depending on colour

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ 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