+ Reply to Thread
Results 1 to 6 of 6

Combine LEFT and TRIM Functions

  1. #1
    Registered User
    Join Date
    04-24-2017
    Location
    Lincoln, England
    MS-Off Ver
    2016
    Posts
    27

    Question Combine LEFT and TRIM Functions

    Good Evening. I'm trying to combine two functions into one if possible. The first formula uses the LEFT function to strip out the last 5 characters in the string: =LEFT(A2,LEN(A2)-5) I then use the TRIM function =TRIM(B2) to clear out the extra spaces/padding that the system inserts. Example of the data is attached and how I'm currently using the functions is attached.
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,946

    Re: Combine LEFT and TRIM Functions

    Try Cell B2 formula , Drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Combine LEFT and TRIM Functions

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

  4. #4
    Registered User
    Join Date
    04-24-2017
    Location
    Lincoln, England
    MS-Off Ver
    2016
    Posts
    27

    Re: Combine LEFT and TRIM Functions

    Perfect, thank you!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,788

    Re: Combine LEFT and TRIM Functions

    Glad to help & thanks for the feedback.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,946

    Re: Combine LEFT and TRIM Functions

    @KINGOFCHAOS17 You're Welcome. Glad to help . Thank You for the feedback.

+ 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. Combining Vlookup, TRIM and LEFT
    By Eduards in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-22-2019, 05:21 AM
  2. Combining Vlookup, TRIM and LEFT
    By Eduards in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-22-2019, 04:56 AM
  3. Trim and left formulas
    By Jack White in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2013, 09:25 PM
  4. Trim Left With a Date
    By rmb623 in forum Excel General
    Replies: 1
    Last Post: 08-12-2011, 01:34 PM
  5. trim, left, right, middle
    By sarahkatt in forum Excel General
    Replies: 1
    Last Post: 03-16-2011, 02:13 PM
  6. TRIM, LEFT and other excel formula functions in VB
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2010, 10:00 AM
  7. trim left of a found word in a text variable
    By MervB in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2005, 06:15 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