+ Reply to Thread
Results 1 to 4 of 4

Extract Text Elements in a Cell providing stnd Starting/Stopping point.

  1. #1
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Extract Text Elements in a Cell providing stnd Starting/Stopping point.

    Hello again,

    I have a cell that may contain, "ONT EMS Asbestos Testing for job #XXXXX, ClientName," that I want the #xxxxx dropping into another cell.

    I am trying to extract only the numerals after the pound sign/hash-tag (#). Is there a string of functions to do this?

    Thank you

  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: Extract Text Elements in a Cell providing stnd Starting/Stopping point.

    Try this

    =TRIM(MID(SUBSTITUTE(SUBSTITUTE(A1,",","#"),"#",REPT(" ",255)),255,255))

    A
    B
    1
    ONT EMS Asbestos Testing for job #XXXXX, ClientName XXXXX
    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 Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: Extract Text Elements in a Cell providing stnd Starting/Stopping point.

    That did it perfectly. Thank you. Added rep.

    However, can you edumacate me a bit on that string's mechanics so I can (in the future) write my own?

  4. #4
    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: Extract Text Elements in a Cell providing stnd Starting/Stopping point.

    Thank you for the feedback!

    This formula is looking to find "#" anywhere in the string and will count it as a starting point. However, it is the only character in the string. So, formula also replaces "," with another "#" which is the end point.

    hope this help.

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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. Replies: 0
    Last Post: 09-16-2013, 10:10 AM
  2. Stopping Formula at a value? Then starting again?
    By cherabella in forum Excel General
    Replies: 1
    Last Post: 01-11-2012, 07:24 PM
  3. Cell value and cell address to starting point to another macro
    By kontti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-20-2011, 05:58 AM
  4. Replies: 2
    Last Post: 06-27-2011, 10:47 PM
  5. Export to Text File Starting Cell Point?
    By mfleming in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2011, 02:27 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