+ Reply to Thread
Results 1 to 2 of 2

Formula to Delete Text Between 2 Characters

  1. #1
    Forum Contributor
    Join Date
    11-28-2005
    Location
    Dover, England
    Posts
    172

    Formula to Delete Text Between 2 Characters

    Hi,

    I have the following string 12345_123_6789 and I need to get to 12345_6789, in there a way I can do this with a single formula, or do I have to split to multiple cells and concatenate?

    Thanks

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula to Delete Text Between 2 Characters

    Try

    =REPLACE(A1,FIND("_",A1),FIND("_",A1,FIND("_",A1)+1)-FIND("_",A1),"")

+ 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] Backspace event text box string formatting not able to delete characters
    By Code Flunkie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2014, 04:30 PM
  2. [SOLVED] Delete characters and add * in front and last characters in ACCESS QUERY
    By LALTIZER in forum Access Tables & Databases
    Replies: 9
    Last Post: 02-01-2013, 02:06 PM
  3. [SOLVED] Characters.delete only works with less than 255 characters?
    By mexindian in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-26-2012, 11:57 AM
  4. Replies: 2
    Last Post: 08-18-2011, 12:32 AM
  5. formula to delete all but the last 3 characters
    By duugg in forum Excel General
    Replies: 2
    Last Post: 09-15-2006, 12:40 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