To extract the first 10 digits (or characters) of a value in Excel, use the LEFT function: type =LEFT(A1,10) in a cell, replacing A1 with the cell containing your text. LEFT returns the leftmost characters of a string, so this instantly pulls the first 10 characters — perfect for trimming long account numbers, IDs, or codes down to the leading digits. If your data contains non-digit characters mixed in (letters, spaces, dashes), you'll need a slightly longer formula to keep only the numeric digits, which is covered below.

What You'll Need

  • A copy of Excel (desktop, Excel for the web, or Excel for mobile — LEFT works identically in all of them, and also in Google Sheets and LibreOffice Calc)
  • Your source data in a cell or column — the values can be text or numbers
  • A spare cell or column for the results

Step-by-Step

  1. Open your workbook and click the cell where you want the first 10 digits to appear. This should be an empty cell — ideally in a helper column next to your data, for example B1 if your data starts in A1.
  2. Type the LEFT formula. Enter =LEFT(A1,10) and press Enter. The cell now shows the first 10 characters from A1. If A1 contains 1234567890123, the result is 1234567890.
  3. Copy the formula down. Click the result cell, then drag the small square fill handle (bottom-right corner of the cell) down alongside your data. Alternatively, select the result cell and the empty cells below it, then press Ctrl+D (Windows) or Cmd+D (Mac) to fill down. The cell reference updates automatically for each row.
  4. Check the result's alignment. LEFT always returns text, so the result appears left-aligned even when the source is a number. That's normal.
  5. (Optional) Convert the result back to a number. If you need to do math on the extracted digits, wrap the formula in VALUE: =VALUE(LEFT(A1,10)). The result will right-align like a normal number.
  6. (Optional) Replace the formulas with fixed values. If you want to delete the original column, first select the results, copy them (Ctrl+C), then right-click and choose Paste Special > Values. Without this step, deleting the source column breaks the formulas.

If your source cells mix digits with letters, spaces, or dashes (for example a phone number like +1 (555) 123-4567) and you want the first 10 numeric digits only, use this formula instead:

=LEFT(CONCAT(IFERROR(MID(A1,SEQUENCE(LEN(A1)),1)*1,"")),10)

This works in Excel 365 and Excel 2021 and later, where SEQUENCE is available. It strips every non-digit character, joins the remaining digits, and returns the first 10. If you're on an older Excel version without SEQUENCE, the simplest route is to clean the data first with Find and Replace (Ctrl+H) — replace each unwanted character (dashes, spaces, parentheses) with nothing — and then apply plain =LEFT(A1,10).

Common Mistakes

  • Forgetting the second argument. =LEFT(A1) returns only the first character, not 10. Always include the comma and the number.
  • Using straight quotes incorrectly. Do not write =LEFT("A1",10) — quoting A1 makes Excel look for the literal text "A1" instead of the cell's contents.
  • Not realizing the output is text. Formulas like SUM ignore text results, and lookups against a numeric column will fail to match. Wrap in VALUE() if you need a real number.
  • Trailing zeros get lost on re-entry. If you extract leading zeros from an ID (like 0012345678) and then convert with VALUE, the zeros disappear. Keep the result as text for IDs.
  • Short source values. If A1 has fewer than 10 characters, LEFT simply returns whatever exists — no error, no padding. Check for short values if your data must always be 10 digits.
  • Deleting the source column before pasting values. The results turn into #REF! errors. Always Paste Special > Values first.

Tips

  • Make the length flexible: put 10 in its own cell (say D1) and use =LEFT(A1,$D$1). Change D1 to any number to extract a different length across the whole column at once.
  • Flash Fill as a quick alternative: type the desired 10-digit result in B1, then press Ctrl+E. Excel infers the pattern and fills the column — handy for one-off cleanups, though check a few rows as it can guess wrong.
  • Use TRIM first for messy data: =LEFT(TRIM(A1),10) removes leading/trailing spaces so they don't eat into your 10 characters.
  • Pad short results when needed: =LEFT(A1&REPT("0",10),10) guarantees exactly 10 characters by padding short values with trailing zeros.

Troubleshooting

  • The result shows the formula text, not a value. The cell is probably formatted as Text. Change it: right-click the cell > Format Cells > General, then re-enter the formula (press F2 and Enter).
  • You see #NAME? or #VALUE! errors. Check the spelling of LEFT and that you used regular parentheses and commas. In some regional Excel versions the separator is a semicolon, so the formula is =LEFT(A1;10).
  • The result looks like a decimal. If the source cell contains a large number formatted with decimals, LEFT reads the underlying value, not the display. Format the source as a number with no decimals first.
  • Leading zeros vanished from your source. Excel strips leading zeros when a value is entered as a number. Enter or import such data as Text (format the column as Text before pasting) so the zeros survive.
  • Results are inconsistent down the column. Some source cells likely have stray spaces or are stored differently. Wrap with TRIM, or use =ISTEXT(A1) on a suspect cell to check how it's stored.

Frequently Asked Questions

Can I get the first 10 digits of a number without it turning into text?

Yes — use =VALUE(LEFT(A1,10)). The LEFT part extracts, and VALUE converts the result back to a true number. Note this drops any leading zeros.

Does LEFT work in Excel for the web and mobile?

Yes. LEFT is a core function available in every modern Excel version, including Excel for the web, Excel for mobile, Google Sheets, and LibreOffice Calc.

How do I get the first 10 digits from the right side instead?

To keep the last 10 characters, use =RIGHT(A1,10). It works exactly the same way but counts from the end of the string.

What if my numbers are longer than 15 digits?

Excel only stores 15 significant digits for numbers; anything beyond that becomes zeros. For long IDs (like 20-digit keys), store the data as Text so no digits are lost, then use LEFT normally.

Can I extract the first 10 digits from a date or timestamp?

Only after converting it to text first, because LEFT reads the underlying serial number, not the displayed date. Use =LEFT(TEXT(A1,"yyyymmddhhmmss"),10) to work from the formatted date instead.

Is there a way to do this without a formula at all?

Yes: select the column, go to Data > Text to Columns, choose Fixed width, set a break line after the 10th character, and finish. The first column will contain your 10 characters. Work on a copy of the data, as this overwrites the original column split.