Excel Formulas to Split Alphanumeric Strings into Letters and Numbers

📅 Jan 11, 2026 📝 Sarah Miller

Managing mixed alphanumeric strings in Excel can be incredibly frustrating when trying to isolate clean datasets. While standard funding sources for data management-such as basic Text-to-Columns-fail to isolate irregular patterns, advanced formulas bridge this gap. Implementing a dynamic array formula grants users seamless, real-time data separation without complex VBA scripts.

The primary stipulation is that this method requires Microsoft 365 or Excel 2021 to support functions like LET and SEQUENCE. For instance, splitting messy SKUs like "PART4500" into "PART" and "4500" becomes effortless. Below, we will detail the step-by-step formula mechanics to streamline your workflows.

Excel Formulas to Split Alphanumeric Strings into Letters and Numbers

Data imported from external systems-such as ERPs, CRMs, or e-commerce platforms-often arrives in a consolidated format. One of the most common data-cleaning challenges in Excel is dealing with combined alphanumeric strings (e.g., product codes like "PROD4920", tracking numbers like "US9837422X", or serial codes like "49200ABC").

Because Excel lacks a native, single-click button to separate text from digits, we must rely on formulas. Depending on your version of Excel (Excel 365 vs. Legacy Excel 2019/2016) and the structure of your data, the solution can range from a simple classic formula to a dynamic array formula. This guide covers the most robust methods to split alphanumeric strings into distinct letters and numbers.

Scenario 1: Fixed-Length Patterns (The Easy Way)

If your alphanumeric strings always follow a strict, consistent structure where the letters and numbers occupy the exact same number of positions, you can use Excel's basic text functions: LEFT, RIGHT, and MID.

Example: Letters First, Then Numbers (Fixed Length)

Assume cell A2 contains "USD500" (3 letters followed by 3 numbers).

  • To extract letters (first 3 characters):
    =LEFT(A2, 3)
  • To extract numbers (remaining characters):
    =RIGHT(A2, LEN(A2)-3)

While this works flawlessly for uniform data, it fails the moment you encounter variable-length strings like "EUR12500" or "GB50". For variable patterns, we must use dynamic positioning formulas.

Scenario 2: Letters First, Then Numbers (Variable Length)

When you have strings of varying lengths where letters always precede numbers (such as "Apple500", "Banana12000", or "Cherry5"), the key is to pinpoint the exact position of the first numerical digit.

Finding the Split Point

To find the position of the first number in cell A2, use this array-based calculation inside the MIN and FIND/SEARCH functions:

=MIN(SEARCH({0,1,2,3,4,5,6,7,8,9}, A2 & "0123456789"))

How this works:

  1. SEARCH({0,1,2,3,4,5,6,7,8,9}, A2 & "0123456789") searches for every single digit from 0 to 9 within the target string.
  2. By appending "0123456789" to the end of your string (A2 & "0123456789"), we guarantee that every digit is found at least once. This prevents the formula from throwing a #VALUE! error if your source string is missing certain digits.
  3. The MIN function evaluates the array of positions returned by the search and identifies the smallest index-which corresponds to the first actual digit in your target string.

The Complete Split Formulas

Once we know the index of the first number, extracting the text and number components is straightforward.

Target Element Formula (Cell A2) Description
Extract Letters =LEFT(A2, MIN(SEARCH({0,1,2,3,4,5,6,7,8,9}, A2 & "0123456789"))-1) Extracts all characters to the left of the first digit.
Extract Numbers =MID(A2, MIN(SEARCH({0,1,2,3,4,5,6,7,8,9}, A2 & "0123456789")), LEN(A2)) Extracts starting from the first digit to the very end of the string.

Scenario 3: Numbers First, Then Letters (Variable Length)

If your data is formatted with digits first, followed by letters (e.g., "120USD", "4500EUR"), you need to find where the first alphabetic character begins.

Because there are 26 letters (or 52 if accounting for case sensitivity), searching for every letter using an array constant is cumbersome. Instead, we can search for when the characters stop behaving like numbers.

The Formula to Extract Numbers:

=LEFT(A2, MATCH(TRUE, ISERROR(VALUE(MID(A2, ROW(INDIRECT("1:" & LEN(A2))), 1))), 0) - 1)

Note: If you are using Excel 2019 or earlier, you must press Ctrl + Shift + Enter to register this as an array formula.

The Formula to Extract Letters:

=MID(A2, MATCH(TRUE, ISERROR(VALUE(MID(A2, ROW(INDIRECT("1:" & LEN(A2))), 1))), 0), LEN(A2))

How this works:

  • ROW(INDIRECT("1:" & LEN(A2))) generates a vertical array of numbers from 1 to the length of the string.
  • MID(A2, ..., 1) breaks down the string into individual characters.
  • VALUE(...) attempts to convert each character into a numeric value. Letters will return a #VALUE! error.
  • ISERROR(...) returns TRUE for letters and FALSE for numbers.
  • MATCH(TRUE, ..., 0) locates the exact position of the first TRUE (the first non-numeric letter character).

Scenario 4: Mixed Alphanumeric (The Excel 365 Method)

If your strings are highly irregular (e.g., "A1B279C" or "12a34b56") where letters and numbers are interspersed, legacy Excel formulas become highly complex. Fortunately, Excel 365 introduced dynamic arrays and array helper functions that simplify this task.

Extracting Only Numbers from Mixed Strings

To pull out all numerical digits from anywhere in a string and stitch them together, use the following Excel 365 formula:

=CONCAT(IFERROR(MID(A2, SEQUENCE(LEN(A2)), 1) * 1, ""))

How it works:

  1. SEQUENCE(LEN(A2)) generates an array of indices from 1 to the length of the string.
  2. MID(A2, ..., 1) splits the string into single-character cells.
  3. Multiplying by 1 converts numerical characters back to actual numbers, while turning letters into #VALUE! errors.
  4. IFERROR(..., "") replaces all errors (letters) with empty text strings.
  5. CONCAT merges the remaining numeric array back into a single string.

Extracting Only Letters from Mixed Strings

Conversely, to extract only the alphabetic characters, we can check for errors when converting characters to numbers:

=TEXTJOIN("", TRUE, IF(ISERROR(MID(A2, SEQUENCE(LEN(A2)), 1) * 1), MID(A2, SEQUENCE(LEN(A2)), 1), ""))

How it works:

  1. We split the string using MID and SEQUENCE.
  2. We multiply each character by 1.
  3. The IF statement checks if the multiplication resulted in an error (meaning it's a letter). If TRUE, it keeps the letter; if FALSE (meaning it's a number), it replaces it with an empty string "".
  4. TEXTJOIN combines all remaining letter characters together, ignoring empty values.

An Alternative: Power Query

If you prefer a code-free approach that handles large datasets, consider using Power Query (built into Excel under the Data tab > Get & Transform Data).

  1. Select your range and click From Table/Range to load your data into the Power Query Editor.
  2. Select the column you want to split.
  3. In the menu, go to Home > Split Column > By Transition.
  4. Select From Non-Digit to Digit (to split letters followed by numbers) or From Digit to Non-Digit (to split numbers followed by letters).
  5. Click Close & Load to return your clean, split data back to Excel.

Summary

Choosing the right approach depends entirely on your version of Excel and your data structure:

  • For consistent structures, use simple LEFT, RIGHT, and MID functions.
  • For letters followed by numbers (variable length), leverage the MIN(SEARCH({0..9}, ...)) pattern.
  • For numbers followed by letters (variable length), use the MATCH(TRUE, ISERROR(VALUE(...)), 0) array array formula.
  • For modern Excel 365 environments, use SEQUENCE combined with CONCAT or TEXTJOIN for ultimate flexibility.

Disclaimer:
The documents and templates provided on this page are for informational and illustrative purposes only. They do not constitute professional, legal, or financial advice, and should not be relied upon as such. Because individual circumstances and regulatory requirements vary, these materials may not be suitable for your specific needs. We recommend consulting with a qualified professional before adapting or using any of these examples for official or commercial purposes.