FormulaCraft

LEFT / RIGHT / MID

LEFT, RIGHT, and MID pull a number of characters from a string — handy for codes, IDs, and parsing.

Excel
=LEFT(A2, 3)
Google Sheets
=LEFT(A2, 3)

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

How it works

  1. 1A2 is the source text.
  2. 23 is how many characters to take from the left.

Need a version for your data?

Try: “Get the first 3 characters of the code in A2

Related

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: