Why Is the LEFT Formula Not Working in Excel?

Errors & fixes · Updated November 3, 2026

Why Is the LEFT Formula Not Working in Excel?

The LEFT formula usually fails because Excel is reading the entry as text, the formula has an invalid character count or separator, or the source value is not in the form you expect. Check that the formula begins with an equals sign, uses the right cell reference and a nonnegative number of characters, and then verify what is actually stored in the source cell.

What the LEFT function does

LEFT returns characters from the beginning of a text value. Its syntax is =LEFT(text, [num_chars]): the first argument identifies the text or cell, and the optional second argument sets how many characters to return. If you omit the second argument, Excel returns one character. If the requested count is longer than the text, LEFT returns the entire text rather than an error.

With a product code in A2 and a desired three-character prefix, enter =LEFT(A2,3) in another cell. If A2 contains ABC-104, the result is ABC. The function does not look for a particular symbol or word; it simply counts positions from the left edge. That distinction matters when codes have different prefix lengths or may contain spaces before the characters you want.

LEFT is often used to split fixed-width codes, extract initials, or prepare values for matching. It returns text, even when the result looks like a number. That can affect later calculations, lookups, sorting, and comparisons, so a result that appears correct visually may still not behave like a numeric value.

Check the formula syntax and argument count

First inspect the formula in the formula bar. The function name must be followed by parentheses, and each argument must be in the right position. The character count must be zero or a positive number. A negative count produces #VALUE!. A blank second argument is not the same as leaving it out, and misspelled cell references can cause other errors.

With the source text in A2, this formula returns the first character because the character-count argument is omitted: =LEFT(A2). With the same cell layout, this formula returns the first four characters: =LEFT(A2,4). If A2 contains WIDGET, the second formula returns WIDG. Make sure the count is a number or a cell containing a number, rather than text Excel cannot interpret as a count.

In some regional settings, Excel expects semicolons between arguments instead of commas. If Excel rejects a correctly written formula with a message about the formula, check the separator used by another working formula in that workbook or installation. The required separator depends on Excel’s regional and list-separator settings. Do not change commas to semicolons at random if other formulas in the same setup use commas.

When Excel displays the formula instead of a result

If the cell shows =LEFT(A2,3) literally, Excel may be treating the entry as text. Select the cell and check its number format on the Home tab. If it is set to Text, change it to General, then re-enter the formula; changing the format alone may not convert a formula that was already entered as text. Press F2 and then Enter to recommit the entry, or delete it and type it again.

A leading apostrophe also forces text entry. If the formula bar shows an apostrophe before the equals sign, remove it. Another possibility is that Show Formulas is enabled, which displays formulas across the worksheet rather than their results. On Windows, press Ctrl+` (the grave accent key, usually near the upper-left corner of the keyboard) to toggle this view. If that key combination is inconvenient, use Formulas > Show Formulas. On Mac, the shortcut can vary by keyboard; use Formulas > Show Formulas if the shortcut does not work.

Also check for an extra space or character before the equals sign. A formula must start with = as the first actual character in the cell. If you copied it from a website or document, replace any curly quotation marks or unusual spaces with ordinary characters typed directly in Excel.

Fix common errors such as #VALUE! and #NAME?

#VALUE! commonly appears when the requested character count is negative or cannot be interpreted as a number. For example, subtracting one from a position number can produce a negative count if the searched-for character is missing. Inspect any calculation used for the second argument and test whether the source really contains the expected character.

#NAME? can mean Excel does not recognize the function name or another name in the formula. Check spelling: the function is LEFT, not LEFFT or LEFTS. Also look for a named range that was mistyped. If a formula was copied from a localized version of Excel, the function name may differ in that language. Excel for Microsoft 365 normally recognizes the English function name in an English-language installation.

A formula may also return an unexpected blank or only one character without showing an error. If the second argument is missing, LEFT returns one character. If the referenced cell is blank, the result is blank. If the reference points to a different row than intended, the formula can be valid but still produce the wrong result. Confirm the reference by selecting it in the formula bar and checking the highlighted cell.

Understand numbers, dates, spaces, and hidden characters

Excel stores numbers as numeric values, not as strings of displayed digits. LEFT can work with a number by converting it to text, but that does not guarantee the output follows the cell’s displayed format. For instance, a value displayed as 00127 may actually be stored as the number 127 with a custom number format. LEFT cannot retrieve leading zeros that are not part of the underlying value. If those zeros are meaningful, store the code as text or explicitly create the padded text before extracting characters.

Dates are also stored as serial numbers and merely displayed using a date format. Applying LEFT directly to a date may extract characters from its underlying numeric representation, not from the visible date. With a date in A2, use =LEFT(TEXT(A2,"yyyy-mm-dd"),4) to return the year as displayed in that chosen format. This assumes A2 contains a valid Excel date; the formula returns the text 2026 for a date in 2026. Choose the TEXT format string to match the date structure you actually need.

Leading spaces count as characters. If A2 begins with a space, the first character returned is that space, which can make the result look empty. Ordinary spaces can be removed first with TRIM. With unwanted regular spaces in A2, =LEFT(TRIM(A2),3) returns the first three characters after leading and trailing spaces are removed. TRIM also reduces repeated internal spaces to single spaces, so use it only if that change is acceptable.

Some imported data contains nonbreaking spaces, often from web pages or reports. These look like regular spaces but TRIM does not remove them. With the text in A2, =LEFT(TRIM(SUBSTITUTE(A2,CHAR(160)," ")),3) replaces nonbreaking spaces with regular spaces, trims the result, and takes its first three characters. Inspect the source before cleaning it: not every unusual-looking character is a space, and removing characters can change identifiers.

Extract text before a delimiter instead of a fixed number

LEFT is the wrong tool by itself when the part you want has a variable length. If a code contains a hyphen after the prefix, combine LEFT with FIND so Excel counts to the delimiter. With values such as AB-103 in A2, enter =LEFT(A2,FIND("-",A2)-1). It returns AB, because FIND locates the hyphen and subtracting one excludes it.

This approach requires the delimiter to exist. If one row has no hyphen, FIND returns an error, and the combined formula does too. Before relying on it across a column, check that every value follows the same pattern or decide what should happen when the delimiter is absent. For a fixed-width identifier, a simple character count is often clearer. For irregular data, a delimiter-based approach is more adaptable, but it depends on consistent separators.

In Microsoft 365 or Excel 2024, TEXTBEFORE can be a more direct option for text before a delimiter. It is not available in every older Excel version, so use LEFT with FIND when compatibility with older installations matters. Either way, confirm whether the delimiter can appear more than once and whether you want text before the first occurrence or another part of the value.

Check recalculation and copied formulas

If the source cell changes but the LEFT result does not, the workbook may be set to manual calculation. In Excel for Microsoft 365 on Windows, open Formulas > Calculation Options and choose Automatic. You can also recalculate the workbook with F9. On Mac, use Formulas > Calculation Options where available, or Formulas > Calculate Now to recalculate; shortcut behavior can differ by keyboard and Excel version.

When filling a formula down, look for shifted or misaligned references. If the formula in B2 refers to A2, copying it to B3 normally changes the reference to A3. That is useful for row-by-row extraction, but not if every formula should point to one fixed cell. In that case, use an absolute reference such as $A$2. Also check whether a filter, hidden row, or sorted data has made it seem that a result belongs to a different source record.

Excel tables may automatically fill a formula down a calculated column. If the results differ from row to row, inspect the table’s row values rather than assuming the formula itself changed incorrectly. If formulas were pasted as values, the cells will no longer update when the source text changes; click a result cell and look for a formula beginning with an equals sign.

Choose the right fix for the job

Before rewriting a formula, identify the exact symptom. A visible formula points toward text formatting or Show Formulas. A formula error points toward syntax, separators, or an invalid argument. A plausible but wrong result often points toward spaces, dates, numeric formatting, or a mistaken assumption about character positions. This quick checklist helps narrow the cause:

  • Confirm the formula starts with an equals sign and the function is spelled LEFT.
  • Check that the source reference is the intended cell and that the character count is nonnegative.
  • Compare argument separators with formulas that already work in the same Excel installation.
  • Check whether the source contains leading spaces, hidden characters, a date, or a number with display-only leading zeros.
  • Confirm the cell is not formatted as Text and that calculation is set to Automatic if results are stale.

For a fixed number of starting characters, LEFT is appropriate. For text before a known delimiter, use a delimiter-aware approach. For a date, first convert the date to the text representation you intend to extract. For values that should remain numeric, remember that LEFT returns text and convert or validate the result as needed before using it in arithmetic. The best fix addresses the structure of the data rather than simply making the error disappear.

Frequently Asked Questions

Why does LEFT return only one character?
If you leave out the optional character-count argument, LEFT returns one character by default. Add the number of characters you want as the second argument, and make sure it is not in quotation marks as text.

Why does LEFT show the formula instead of the answer?
The cell may be formatted as Text, the formula may have a leading apostrophe, or Show Formulas may be on. Change the cell to General and re-enter the formula; if formulas are visible throughout the sheet, turn off Formulas > Show Formulas.

Why does LEFT return the wrong characters from a date?
Excel stores dates as serial numbers. LEFT may therefore use the underlying value rather than the date format you see. Convert the date to a chosen text format with TEXT before extracting characters.

Can LEFT extract leading zeros?
Only if the zeros are part of the stored text. If they appear only because of a number format, LEFT cannot read them as characters. Store the identifier as text or create a text version that includes the required zeros.

Why does my formula use semicolons instead of commas?
Excel’s argument separator depends on regional and list-separator settings. If commas cause a formula-entry error, follow the separator used by working formulas in your Excel installation.

Does LEFT work with variable-length prefixes?
Not reliably when you give it a fixed character count. If each prefix ends at a consistent delimiter, locate that delimiter and use its position to determine how many characters to return.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Errors & fixes

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.