+ Reply to Thread
Results 1 to 6 of 6

divide text string with a formula

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    divide text string with a formula

    Hello you can divide text string with a formula?

    in B2 C:\Users\utente\Desktop\fogli_viterie\

    in B1 C:\Users\utente\Desktop\
    in D1 \fogli_viterie\
    -------------------------------------------------
    in B2 C:\Users\utente\Desktop\foglio materiali\

    in B1 C:\Users\utente\Desktop\
    in D1 \foglio materiali\
    -------------------------------------------------
    in B2 C:\Users\utente\Desktop\COMMESSE\PIPPO-12345\

    in B1 C:\Users\utente\Desktop\COMMESSE\
    in D1 \PIPPO-12345\
    -------------------------------------------------

    thanks in advance.
    max_max

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

    Re: divide text string with a formula

    B1: =REPLACE(B2,1,LEN(D1)-1,"")
    D1: =LEFT(B2,FIND("^",SUBSTITUTE(B2,"\","^",LEN(B2)-LEN(SUBSTITUTE(B2,"\",""))-1)))


    Note, B1 will not funciton on it's own, it depends on the result of D1.

  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: divide text string with a formula

    Hello jonmo1
    B1 is accurate
    D1 = 0 ???

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

    Re: divide text string with a formula

    That makes no sense, as I wrote them, B1 is dependant on a result from D1.
    So how can B1 be accurate, but D1 is 0 ??

    Anyway, they work for me.
    Example
    Attached Files Attached Files

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: divide text string with a formula

    Hello jonmo1,
    It is accurate it was my mistake.
    Thank you.
    max_max

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

    Re: divide text string with a formula

    You're welcome.

+ 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: 2
    Last Post: 05-27-2016, 12:30 AM
  2. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  3. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  4. [SOLVED] Highlight a portion of string text (the string text is a value of a formula)
    By RaymondH in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2012, 06:50 AM
  5. [SOLVED] Dim String, and divide/split into parts
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-19-2012, 12:37 PM
  6. Divide string to different cells
    By Shark Man in forum Excel General
    Replies: 1
    Last Post: 12-18-2010, 03:42 AM
  7. read string from database and divide result into cells?
    By ladyhawke in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-01-2006, 07:35 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