+ Reply to Thread
Results 1 to 5 of 5

Extract cell contents separated by either a space, an & or by ,

  1. #1
    Registered User
    Join Date
    06-19-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    23

    Extract cell contents separated by either a space, an & or by ,

    Hello there,

    I have column A that contains a series of numbers separated by either a space, an & or by ,. I would like to extract each cell contents and place the extracted data in column B, C, D and so on depending on how many items were extracted.

    Is there a way to do this? Please see attached file for the sample data.

    Thanks in advance for helping!
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,378

    Re: Extract cell contents separated by either a space, an & or by ,

    Hi,

    Here is an attachment with the formula that parses using a space.

    If you wanted to use a period or comma also, you could search and replace all periods and commas in your text with spaces before using the attache formula.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Extract cell contents separated by either a space, an & or by ,

    Hello novodisc,

    The formats below will cause problems with parsing the data correctly:
    DOGB0600076013 - Model DS-32B2-00
    IM20007276002760 -NOPRD3-760

    Since this is a small data sample, are there any more oddities like this in the actual data?
    Last edited by Leith Ross; 03-15-2011 at 11:45 PM.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    06-19-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    23

    Unhappy Re: Extract cell contents separated by either a space, an & or by ,

    Quote Originally Posted by Leith Ross View Post
    Hello novodisc,

    The formats below will cause problems with parsing the data correctly:
    DOGB0600076013 - Model DS-32B2-00
    IM20007276002760 -NOPRD3-760

    Since this is a small data sample, are there any more oddities like this in the actual data?

    Unfortunately there might be more of these odd entries...

  5. #5
    Registered User
    Join Date
    06-19-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Extract cell contents separated by either a space, an & or by ,

    Quote Originally Posted by MarvinP View Post
    Hi,

    Here is an attachment with the formula that parses using a space.

    If you wanted to use a period or comma also, you could search and replace all periods and commas in your text with spaces before using the attache formula.
    Hello..
    thanks for the formula.. You have helped a long way... I'll just have to manually filter out the odd entries if there are no other ways around it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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