+ Reply to Thread
Results 1 to 3 of 3

formula split path

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

    formula split path

    Hi to all,
    formula spit:

    C:\Users\massimo\etichette\P01235666688
    or
    C:\Users\massimo\Desktop\ciao\ciao\ciao\ciao\etichette\jfjfjfjfj
    or
    C:\Users\massimo\Desktop\etichette\rty8744_RUTP

    only rigt last \

    max

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: formula split path

    =mid(a1,aggregate(14,6,row(indirect("1:"&len(a1)))/(mid(a1,row(indirect("1:"&len(a1))),1)="\"),1)+1,100)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: formula split path

    Another way...
    =MID(A2,SEARCH("@",SUBSTITUTE(A2,"\","@",LEN(A2)-LEN(SUBSTITUTE(A2,"\",""))))+1,99)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] VBA to Split Records For 3 set of Unique Values in column P:P as new workbook to path
    By johnmacpro in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2016, 03:12 AM
  2. split worksheet to new file name for some path.
    By kimudao in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-13-2015, 06:18 AM
  3. Replies: 1
    Last Post: 11-26-2013, 08:46 PM
  4. Variable .Attachment.Add path using Function to pull path from word table
    By aavelyn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-27-2013, 10:07 PM
  5. How to set GetOpenfile dialog start path to current open files path.
    By Michael Wise in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2010, 02:24 PM
  6. Replies: 7
    Last Post: 10-09-2009, 10:10 AM
  7. [SOLVED] Split function to get a relative path
    By Jon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2006, 07:00 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