+ Reply to Thread
Results 1 to 7 of 7

How to get value after "\"

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    How to get value after "\"

    Hi,

    how can we get the last values from

    E:\data\london\test.pdf

    we want only with the formula = test.pdf

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: How to get value after "\"

    Hi, in VBA (macro?) or in a formula?
    in a macro assuming your string is in column a
    Please Login or Register  to view this content.
    In a formula, that's not my strong
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to get value after "\"

    Please try
    =trim(right(substitute(a1,"\",rept(" ",20)),20))

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: How to get value after "\"

    More alternatives, assuming pathname in cell B2.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If there'd be a lot of such formulas, better to define a name like seq referring to =ROW(INDEX(Sheet1!$1:$1048576,1,1):INDEX(Sheet1!$1:$1048576,255,1)), then use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    which is an array formula, so need to hold down [Ctrl] and [Shift] keys before pressing [Enter] to enter it.

  5. #5
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: How to get value after "\"

    Picky Tangent: filename could have multiple adjacent spaces, e.g.,

    Please Login or Register  to view this content.
    Rare, certainly, but TRIM could screw up such base filenames.

  6. #6
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: How to get value after "\"

    Thanks Bo_Ry,

    its working

  7. #7
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: How to get value after "\"

    thanks hrlngrv,

    its working

+ 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: 3
    Last Post: 11-19-2020, 08:30 PM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. Replies: 2
    Last Post: 07-24-2017, 02:19 AM
  4. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  5. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  6. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  7. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

Tags for this Thread

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