+ Reply to Thread
Results 1 to 5 of 5

formula to truncate

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    formula to truncate

    Hello:

    I have Cell R2 = C:\Dropbox\Poll\1RM_Shared\Reports\NightClose\10-31-2017-TimeSheet.xls.

    I need formual in cell I3 to give me just the file name 10-31-2017-TimeSheet.xls

    Please let me know if you have any questions.
    Thanks.

    Riz

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: formula to truncate

    Try this:

    =TRIM(RIGHT(SUBSTITUTE(R2,"\",REPT(" ",50)),50))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: formula to truncate

    Hi,

    This should do it for you.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: formula to truncate

    Hello Glenn:

    Thanks a lot, works

    Riz

  5. #5
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: formula to truncate

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

    where 150 is the max length of the string

+ 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] Formula to Truncate data
    By rizmomin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-12-2017, 02:03 PM
  2. [SOLVED] Formula to Truncate and Transpose
    By rizmomin in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-24-2017, 01:12 AM
  3. Formula to truncate
    By rizmomin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2016, 01:47 AM
  4. [SOLVED] Truncate At Specific Character Formula - And More. - Help Needed.
    By TheProffesional in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-07-2013, 04:11 PM
  5. [SOLVED] Formula Needed To Truncate Postcodes
    By Dom2066 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-27-2012, 03:03 AM
  6. Truncate Name
    By ernestgoh in forum Excel General
    Replies: 3
    Last Post: 03-31-2006, 05:41 AM
  7. [SOLVED] truncate
    By tamar in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02: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