How to Truncate Text from the Left in Excel -5 Methods

 

The dataset showcases Employee Name and Working Period. The dataset

Dataset to Truncate Text from Left in Excel


Method 1 – Using the Excel LEFT Function to Abbreviate Text from the Left

Apply the LEFT function.

Steps:

  • Select a new cell: D5 to keep the truncated text.
  • Use the formula below in D5.
=LEFT(C5,3)

The function returns a particular number of characters from the start of the text: 3.Use Excel LEFT Function to Abbreviate Text from Left

  • Press ENTER to see the result.

  • Drag down the Fill Handle to see the result in the rest of the cells.

  • The joining months of all employees is displayed.

 Application of Left Function to Truncate Text from Left in Excel

Read More: How to Truncate Text in Excel


Method 2 – Combine the LEFT & LEN Functions to Truncate Text from the Left

Steps:

  • Select a new cell: D5 to keep the truncated text.
  • Use the formula below:
=LEFT(C5, LEN(C5) - 17)
  • Press ENTER to see the result.

Combine LEFT & LEN Functions to Truncate Text from Left

Formula Breakdown

  • Here, LEN(C5)  returns the total number of characters of the text in C5.
    • Output: 30.
  • 30-17.
    • Output: 13.
  • The LEFT(C5,13) function returns a number of characters: 13 characters from the leftmost character of the text in C5.
    • Output: August, 2012.

  • Drag down the Fill Handle to see the result in the rest of the cells.
  • This is the output.

Read More: How to Truncate Text from Right in Excel


Method 3 – Using the MID Function to Truncate Text from the Left in Excel

Apply the MID function.

Steps:

  • Select a new cell: D5 to keep the result.
  • Use the formula below.
=MID(C5,1,3)

The MID function returns a number of characters between the 1st character and the 3rd character in C5.

  • Press ENTER to see the result.

Employ MID Function to Truncate Text from Left in Excel

  • Drag down the Fill Handle to see the result in the rest of the cells.
  • This is the output.


Method 4 – Applying the  Excel Flash Fill Feature to Shorten Text from the Left

Steps:

  • Enter the target result manually. Here, “Aug”, and “Ma”, and got the suggestion:

Apply Excel Flash Fill Feature for Shortening Text from Left

  • Press ENTER to see the result.
  • This is the output.

Note: This method will work only in Excel 365 version.

Read More: How to Stop Excel from Truncating Text


Method 5 – Truncate Text from the Left applying a User-Defined Function in Excel

Steps:

  • Go to the Developer tab >>  select Visual Basic.

Truncate Text from Left by Employing VBA Code in Excel

  • In Insert  >> select Module.

  • Enter the following Code in the Module.
Function Truncate_Txt_frm_Left(my_Text As String, removed_num_of_string As Long)
  Truncate_Txt_frm_Left = Left(my_Text, Len(my_Text) - removed_num_of_string)
End Function

Code Breakdown

  • creates a Function: Truncate_Txt_frm_Left.
  • declares the variable my_Text as a String to call the text, and another variable removed_num_of_string as Long to insert a number.
  • With the Left and Len functions, a function was created: Truncate_Txt_frm_Left.

  • Save the code by pressing CTRL+S ( .xlsm).
  • Go to the Excel worksheet.

 

Steps:

  • Select a cell to keep the result. Here, D5.
  • Enter “=tr” to find your defined function.

  • Use the formula in D5.
=Truncate_Txt_frm_Left(C5,17)

The function returns a number of characters from the start of the text: 17 characters from the leftmost character in C5.

  • Press ENTER to see the result.

Using Defined Function to Truncate Text from Left in Excel

  • Drag down the Fill Handle to see the result in the rest of the cells.
  • This is the output.

Read More: How to Use Truncate in Excel VBA


Practice Section

Practice here.

Practice Section to Truncate Text from Left in Excel


Download Practice Workbook

Download the practice workbook.


Related Articles


<< Go Back to Excel TRUNC Function | Excel Functions | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Musiha Mahfuza Mukta
Musiha Mahfuza Mukta

Musiha Mahfuza Mukta is a marine engineer who loves exploring Excel and VBA programming. To her, programming is a time-saving tool for dealing with data, files, and the internet. She's skilled in Rhino3D, Maxsurf, C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. With a B.Sc in Naval Architecture & Marine Engineering from BUET, she's shifted gears and now works as a content developer. In this role, she creates techy content exclusively focused on Excel... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo