+ Reply to Thread
Results 1 to 5 of 5

Nested Formula Help - LEFT and Substitute

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    23

    Nested Formula Help - LEFT and Substitute

    Hi,

    I am having trouble writing a formula that will limit the text in a cell to 30 characters or less, and remove certain characters like "/". Just to give some background, I need to write this formula because it is messing up my macro. My macro uses the text in this cell (say b4) to rename each worksheet. I think I need to write a =Left($B$4,30) and a =Substitute($B$4,"/","") but I can't seem to combine them. Any help at all would be greatly appreciated!

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

    Re: Nested Formula Help - LEFT and Substitute

    Try

    =Left(Substitute($B$4,"/",""),30)

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,191

    Re: Nested Formula Help - LEFT and Substitute

    =left(substitute(b4,"/",","),30)

  4. #4
    Registered User
    Join Date
    04-22-2014
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Nested Formula Help - LEFT and Substitute

    Thank you!

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

    Re: Nested Formula Help - LEFT and Substitute

    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. [SOLVED] How to combine Upper Left and substitute in one formula?
    By MI3operations in forum Excel General
    Replies: 4
    Last Post: 03-20-2015, 02:26 PM
  2. [SOLVED] Substitute from right to left
    By simone77 in forum Excel General
    Replies: 7
    Last Post: 03-30-2012, 03:26 AM
  3. SUBSTITUTE nested within IF
    By malibu06 in forum Excel General
    Replies: 5
    Last Post: 01-18-2011, 11:57 PM
  4. How to use a substitute formula to substitute text entries to a different text entry
    By andybocchi in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-01-2010, 07:50 PM
  5. Eliminate the need for Nested Substitute
    By ElmerS in forum Excel General
    Replies: 3
    Last Post: 04-09-2010, 04:41 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