LEFT

Textbeginner

LEFT pulls characters from the beginning of a text value. It's a core text manipulation formula used for parsing codes, extracting prefixes, and cleaning data. Often combined with FIND or LEN for dynamic extraction.

Syntax

Excel:=LEFT(text, [num_chars])
Google Sheets: Same syntax

Parameters

textThe text string or cell reference.
num_chars?How many characters to extract from the left. Defaults to 1.

? = optional parameter

Worked Example

Extract just the 'INV' prefix from an invoice ID.

Row numbersA
Header rowinvoice_id
2INV-1001
3INV-1002
4INV-1003
5INV-1004
6INV-1005

Formula

=LEFT(A2, 3)

Result

INV

LEFT takes the first 3 characters from A2, which contains 'INV-1001'. In this sample, that returns the invoice prefix 'INV'.

Practice Exercises

2 exercises - work through each one using the data table below

Exercise 1 of 2beginner
#LEFT-001

Question

Your team wants to extract just the numeric portion of invoice IDs to use as a shorter reference. Invoice IDs follow the format 'INV-XXXX'. What are the last 4 characters of INV-1001 — in other words, what does LEFT("INV-1001", 7) return starting from the right? Actually: what do the 4 characters after 'INV-' look like? Use LEFT to extract the first 4 characters of the numeric suffix from the string '1001'. What is LEFT("1001", 4)?

Dataset

Showing rows 1-10

Download CSV
Row numbersAB
Header row
2INV-1001Cloudline Software
3INV-1002Apex Office Supply
4INV-1003Summit Consulting Group
5INV-1004Meridian Travel Co.
6INV-1005Forge & Frame Creative
7INV-1006NovaTech Solutions
8INV-1007Atlas Hardware Co.
9INV-1008Clearview Data Systems
10INV-1009Redstone Marketing
11INV-1010Keystone Legal Advisors
12

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Exercise 2 of 2beginner
#LEFT-002

Question

You want to create abbreviated vendor codes using the first 6 characters of each vendor name. What does LEFT("Summit Ridge Consulting", 6) return?

Dataset

Showing rows 1-20

Download CSV
Row numbersAB
Header row
2INV-1001Cloudline Software
3INV-1002Apex Office Supply
4INV-1003Summit Consulting Group
5INV-1004Meridian Travel Co.
6INV-1005Forge & Frame Creative
7INV-1006NovaTech Solutions
8INV-1007Atlas Hardware Co.
9INV-1008Clearview Data Systems
10INV-1009Redstone Marketing
11INV-1010Keystone Legal Advisors
12INV-1011Cloudline Software
13INV-1012Basecamp Events
14INV-1013Apex Office Supply
15INV-1014BrightPath Analytics
16INV-1015Meridian Travel Co.
17INV-1016Clearview Data Systems
18INV-1017Apex Office Supply
19INV-1018Summit Consulting Group
20INV-1019Cloudline Software
21INV-1020Atlas Hardware Co.
22

Scroll to explore the table, then sort or filter by column as needed.

Hints

Your Answer

Want more practice?

Test Me mode randomizes exercises across all formulas without telling you which formula to use.

Try Test Me ->