The first argument,text, is thetextstring to extract from.

This is typically a reference to a cell that contains text.

The second argument, callednum_chars, specifies the number of characters to extract.

LEFT function example - abbreviate month names

Ifnum_charsis not provided, it defaults to 1.

Ifnum_charsis greater than the number of characters available, LEFT returns theentiretext string.

When the result is TRUE, IF returns “x”.

LEFT function example - abbreviate month names

When the result is FALSE, IF returns an empty string “”.

The result is that the codes in column B that begin with “xyz” are clearly marked.

The screen below shows how this formula can be applied in a worksheet.

LEFT function example - abbreviate month names

you’re able to read a moredetailed explanation here.

The LEFT function is used to extract text from theleftside of a text string.

Use theRIGHT functionto extract text starting from therightside of the text, and theMID functionto extract from themiddleof text.

LEFT function example - abbreviate month names

For example, =RIGHT(“apple”,3) returns “ple”.

For example, =MID(“apple”,2,3) returns “ppl”.

LEN will also count characters in numbers, but number formatting is not included.

LEFT function example - abbreviate month names

TEXTBEFORE Function

The Excel TEXTBEFORE function returns the text that occurs before a given substring or delimiter.

TEXTAFTER Function

The Excel TEXTAFTER function returns the text that occurs after a given substring or delimiter.

TEXTSPLIT can split text into rows or columns.

LEFT function example - defaults to 1 character

Example - The LEFT function with the UPPER function

LEFT function example - if cell begins with “xyz”

LEFT function example - get first name

Excel formula: Split text string at specific character

Excel formula: Match first does not begin with

Excel formula: If cell begins with x, y, or z

Excel formula: Create email address from name

Excel formula: Remove file extension from filename

Excel formula: Get domain name from URL

Excel formula: Get last name from name with comma

Excel formula: Get first word

Excel formula: Sum matching columns

Excel formula: Split text and numbers

Excel formula: Split dimensions into two parts

Excel formula: INDEX and MATCH advanced example

Excel formula: Get name from email address

Excel formula: Remove trailing slash from url

Excel formula: Get first name from name

Article image

Article image

Article image

Article image

Excel RIGHT function

Excel MID function

Excel LEN function

Excel TEXTBEFORE function

Excel TEXTAFTER function

Excel TEXTSPLIT function

LEFT function example - if cell begins with “xyz”

LEFT function example - get first name