+ Reply to Thread
Results 1 to 8 of 8

Removing Everything before Specific String of Characters

  1. #1
    Registered User
    Join Date
    02-07-2012
    Location
    Annapolis, MD
    MS-Off Ver
    Excel 2016
    Posts
    17

    Removing Everything before Specific String of Characters

    How do I remove everything in a cell that comes before the final set of characters "..."

    In this example of how the data in the cells appears, I would like to have a column next to this that would have just "Melbourne" (if I could eliminate the ending period "." too that would be great.

    ACE.AU VIC..Melbourne.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Removing Everything before Specific String of Characters

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 ACE.AU VIC..Melbourne. Melbourne
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,082

    Re: Removing Everything before Specific String of Characters

    Your example data doesn't contain ... it contains only TWO periods ..

    =SUBSTITUTE((RIGHT(A3,FIND("...",A3)-1)),".","")

    This won't work properly if you have a period within the name,e.g. St. John.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,995

    Re: Removing Everything before Specific String of Characters

    Your description says "..." but your example shows "..". I will assume the example is the correct one.

    This will remove the front part and also the final character. It does not check to see if the final character is a dot, I assumed it is always there.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    02-07-2012
    Location
    Annapolis, MD
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Removing Everything before Specific String of Characters

    AlKey...That solution is is perfect. Thank you!

  6. #6
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Removing Everything before Specific String of Characters

    Cross posted : https://www.mrexcel.com/forum/excel-...haracters.html

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  7. #7
    Registered User
    Join Date
    02-07-2012
    Location
    Annapolis, MD
    MS-Off Ver
    Excel 2016
    Posts
    17

    Re: Removing Everything before Specific String of Characters

    My apologies for violating a Forum Rule. You have my word it will not happen again.
    Sincerely,
    Mark

  8. #8
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Removing Everything before Specific String of Characters

    Hi mcgonna

    It would be nice of you to call at Mr Excel and thank those who also helped you today, even though you may not have used their answer, they have given their time, for free, to help you.

    DominicB

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Removing duplicate characters from string
    By RaydenUK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2015, 02:49 PM
  2. [SOLVED] Macro to create a new line within a text string if specific characters appear mid-string
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-29-2014, 11:32 AM
  3. removing/extracting characters from a string
    By The Monitor in forum Excel General
    Replies: 1
    Last Post: 11-30-2011, 06:19 PM
  4. removing first and last characters of a string
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2011, 09:45 AM
  5. Removing first three characters in a string - vb code
    By vivekdevkar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-04-2010, 09:10 AM
  6. removing 4 characters from the left of a string
    By mfish2010 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2010, 07:16 PM
  7. Removing Characters From a String of Numbers.
    By Chunkmonki in forum Excel General
    Replies: 1
    Last Post: 09-27-2006, 04:41 PM

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