Results 1 to 6 of 6

Thread: Extract Certain Characters From A Text String

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    14
    Quote Originally Posted by bobkap View Post
    Sorry. I was trying to be as brief as possible. Here are some samples of what my data looks like:
    Heartsaver CPR and First Aid Course April 13th, 2013 [example without hyphen]
    BLS Certification 2013 - 8:00am - 11:00am, April 12th 2013
    PALS Renewal Course -- 9:00am to 5:00pm - April 4th, 2013

    In looking this up, I just realized that some of my data is NOT separated by a hyphen so I am now in a bit of a pickle.
    Some questions to help narrow things down some more (please answer each one of these as I have asked them for a specific reason)...

    1. Will the last part of your data always be a time and/or date (with no other text following them)?

    2. Could your data ever have the time only with no actual date (I'm guessing no for that, but figured I should check just to be sure)?

    3. When both the time and date are present, will the time always be shown before the date?

    4. Could your data ever look like this... "Descriptive text 8:00am - 11:00am, April 2nd 2013"... where there is a hyphen but it is not for separating the information from the time/date?

    5. Will your times always have an am/pm tag on them?

    6. Will the am/pm tag always follow the time without a space character separating them (as you show in your examples)?

    7. Will the month name always be a full month name or could it be abbreviated sometimes (such as Apr 23rd 2013)?

    8. Will the time and/or date always have a space character adjacent to them? What I am trying to find out here is whether you could have data that looked something like any of these...

    Descriptive text (8:00am - 11:00am) April 2nd 2013
    Descriptive text [8:00am - 11:00am] April 2nd 2013
    Descriptive text /8:00am - 11:00am/ April 2nd 2013
    and so on...

    9. And Admin's implied question... will your data always have a time and/or date in them (with a tip of the hat to my first question) somewhere?
    Last edited by Rick Rothstein; 05-23-2013 at 11:37 AM.

Similar Threads

  1. Get Field from Delimited Text String
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 5
    Last Post: 01-05-2017, 01:24 AM
  2. Wrap Text On Spaces Up To A Maximum Number Of Characters Per Line
    By Rick Rothstein in forum Rick Rothstein's Corner
    Replies: 15
    Last Post: 12-20-2016, 09:47 AM
  3. Remove Special Characters From Text Or Remove Numbers From Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 5
    Last Post: 05-31-2013, 04:43 PM
  4. Replies: 10
    Last Post: 12-10-2012, 11:28 PM
  5. Replies: 6
    Last Post: 09-26-2011, 07:39 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •