In this case, using regular expressions through VBA, it may be more efficient
to use the VBA method I posted or, if you want to use worksheet functions, to
rewrite it as a function.
If you do decide to use Longre's stuff as a function, you could use the same
pattern, and the formula would be:
=REGEX.MID(A1,"[0-9:]+(\s?[ap])?")
--ron
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.