Formulyo

Excel + Google Sheets · LEFT

Take the first characters of any text

Returns the first N characters of a text.

The formula

=LEFT(A2, 2)

What each part means

Example

Before
AB
1Order codeCountry
2ES-1043
3BR-2210
4IN-0087
5MX-5521
After
AB
1Order codeCountry
2ES-1043ES
3BR-2210BR
4IN-0087IN
5MX-5521MX

Step by step

  1. Click cell B2.
  2. Type the formula: =LEFT(A2, 2)
  3. Press Enter.
  4. Drag the small square in the bottom-right corner of the cell down to copy it to the other rows.

Where it works

The same formula in other languages

Get 1 formula a day, free

Plus a free weekly planner template for Excel and Google Sheets. Unsubscribe in 1 click.

✓ Done! Check your inbox to confirm.

Want ready-made templates? See the Formulyo pack →

Keep learning