+ Reply to Thread
Results 1 to 7 of 7

Extraction of the string without the first and last character

  1. #1
    Registered User
    Join Date
    12-07-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Extraction of the string without the first and last character

    I have a long list of domains that look so (?Http://www.abcde.co.il/zurich/sites?).
    I need to delete the "?" At the beginning and end of the string.
    Using Find and Replace function I could not do it.

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

    Re: Extraction of the string without the first and last character

    find ~? replace with nothing you need to precede ? with ~
    because * ? and ~ are special wild card characters and to find/replace any of them you need to precede with ~ so
    ~~ ~* ~?
    Last edited by martindwilson; 12-07-2013 at 08:23 PM.
    "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

  3. #3
    Registered User
    Join Date
    12-07-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Extraction of the string without the first and last character

    Thank you
    Some strings have ? In the middle of the string which I do not want to replace. What to do?

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

    Re: Extraction of the string without the first and last character

    then youll have to use a function to extract then something like
    =MID(A1,2,LEN(A1)-2)

  5. #5
    Registered User
    Join Date
    12-07-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Extraction of the string without the first and last character

    Thank you very much

  6. #6
    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: Extraction of the string without the first and last character

    Here is with REPLACE function

    =REPLACE(REPLACE(A1,1,1,""),LEN(A1)-1,1,"")
    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

  7. #7
    Registered User
    Join Date
    12-07-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Extraction of the string without the first and last character

    Well it works

+ 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] extraction of number from cell containing alpha-numeric character with space
    By Astaa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2013, 02:31 AM
  2. String Extraction
    By qcity in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-27-2011, 10:58 PM
  3. Replies: 6
    Last Post: 03-16-2006, 04:15 PM
  4. Mystery ALT key character illudes all methods of extraction! HELP!
    By bxc2739 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-16-2006, 03:00 PM
  5. Function to return Character Position of Xth character within a string
    By Andibevan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2005, 11:05 AM

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