+ Reply to Thread
Results 1 to 7 of 7

Having problem with text to column split on a particular word

  1. #1
    Registered User
    Join Date
    10-26-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    3

    Having problem with text to column split on a particular word

    Hello!

    New to the forum, but have found many old posts incredibly useful when googling for various excel formulas. However, I couldn't find any old threads relevant to my current problem.

    I'm trying to figure out how to isolate and split out day of the week and the time ONLY in the following data (currently found in a single cell):

    Wednesday, October 2, 2013 at 7:00 PM

    The original data will not reformat as date/time, but rather is only recognized as general text (copied and pasted from a proprietary database w/ no other export option).

    I've figured out how to separate the 1st word (the day of the week), but I'm having an issue with the time.

    I was trying to use this formula:

    =RIGHT(A2,LEN(A2)-FIND("at",A2)-2)

    which worked beautifully until I got to Saturday!!

    Is there anyway to adjust this formula so that it finds the LAST instance of "at" or specify that it shouldn't find part of a word?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Having problem with text to column split on a particular word

    change the "at" to " at "
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Having problem with text to column split on a particular word

    Hi Alicia,

    Instead of looking for "at", try "at " (extra space)...

    re-post: yeah, what FD said... (beaten to the punch again!!!)

  4. #4
    Registered User
    Join Date
    10-26-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Having problem with text to column split on a particular word

    I tried that but it was giving me the Value error message. When I copied and pasted the original text into my web browser for posting to the forum, the text appeared as *at*, so I thought maybe there were some "hidden characters"or something in the text initially copied and pasted, but when I tried changing the formula to "*at*", it still gave me the Value error.

    Anyone know why copying and pasting the original text into this forum would result in the asterisk instead of spaces on either side of the word at? All other spaces still appeared to be spaces.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Having problem with text to column split on a particular word

    the time can only be 7 or 8 characters since there is a space before it you can just use
    =TRIM(RIGHT(A1,8))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Having problem with text to column split on a particular word

    Hi alicia,

    Is there a way for you to send a sample spreadsheet?

  7. #7
    Registered User
    Join Date
    10-26-2012
    Location
    Earth
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Having problem with text to column split on a particular word

    Sorry - was off the grid for a few days thanks to Sandy. Back to work now and I figured it out! I found a CellView Add In, which showed the special character that was on either side of "at" - it was Dec code 160, so I entered that into the formula (Alt+0160) and voila! "Saturday" issue solved!

    Thanks for all of the help.

+ 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