What is the use of LEFT function?

LEFT Function in Excel returns the first or left most character(or Characters) in a text string.

LEFT Function in Excel syntax

Syntax of LEFT function:

LEFT(text,

[num_chars])

Where

text – Is the text string contains the characters you want to extract.
num_chars – Its optional argument.The number of characters you want to extract. If this parameter won’t     declare, Only one character is returned.

LEFT Function in Excel- Examples

LEFT Function in Excel - Example 1

Example 1: It will return first four characters from the text string.
Example 2: It will return ten four characters from the text string.
Example 3: In this case, blank also consider as single character
Example 4: It will return first nine characters from the text string.
Example 5: The num_chars is more than the length of string, then it will return original text string.
Example 6: The num_chars should be more than “Zero”, otherwise it will through error.
Example 7: If num_Chars left balnk, only 1 character is returned from the left side of string

VBA example on LEFT function

LEFT function is also available in VBA, following is the example code:

Dim sOutout As String
sOutout1 =LEFT(“Analysis Tabs “, 8)

Output: “Analysis”

120+ Professional Project Management Templates!
Save Up to 85% LIMITED TIME OFFER

A Powerful & Multi-purpose Templates for project management. Now seamlessly manage your projects, tasks, meetings, presentations, teams, customers, stakeholders and time. This page describes all the amazing new features and options that come with our premium templates.

Browse All Templates
Excel VBA Project Management Templates

All-in-One Pack
120+ Project Management
Premium Templates
View Details

Essential Pack
50+ Project Management
Premium Templates
View Details
50+ Excel
Project Management
Templates Pack
View Details
50+ PowerPoint
Project Management
Templates Pack
View Details
25+ MS Word
Project Management
Templates Pack
View Details
Ultimate Project Management Template
View Details
Ultimate Resource Management Template
View Details
Project Portfolio Management Templates
View Details
By Last Updated: June 17, 2022Categories: Excel FormulasTags:

Share This Story, Choose Your Platform!

Leave A Comment