Often you may want to remove the first 2 digits from a cell in Excel.
You can use the RIGHT function combined with the LEN function to do so:
This particular formula removes the first 2 digits from cell A2.
For example, if cell A2 contains AA4506 then this formula would return just 4506.
The following example shows how to use this formula in practice.
Example: Remove First 2 Digits from Cell in Excel
Suppose we have the following list of employee ID’s in Excel:
Suppose we would like to remove the first two digits from each employee ID.
We can type the following formula into cell B2 to do so:
We can then click and drag this formula down to each remaining cell in column B:
Column B now displays the employee ID’s in column A with the first two digits removed from each employee ID.
How This Formula Works
The RIGHT() function in Excel extracts a specific number of characters from the right side of a string.
The LEN() function in Excel is used to find the length of a string.
Thus, our formula tells Excel to extract the amount of characters equal to the length of the string minus two characters.
Thus, our formula displays the entire string with the first two digits removed.
Note: Blank spaces at the start of a string count as characters. You may need to first remove blank spaces to get your desired result.
The following tutorials explain how to perform other common operations in Excel: