To remove a set number of characters from the left side of text in Excel, use RIGHT with LEN: if the text is in A2 and you want to remove the first three characters, enter =RIGHT(A2,LEN(A2)-3) in another cell. To remove everything before a known delimiter, such as a hyphen, use TEXTAFTER in Microsoft 365 or Excel 2024: =TEXTAFTER(A2,"-").
Choose a method based on what you want to remove
“Remove text from the left” can mean two different things: delete a fixed number of characters, or delete a variable-length prefix up to a recognizable marker. The best formula depends on which pattern your data follows.
- Fixed number of characters: use
RIGHTandLEN, orMID. - Text before a delimiter: use
TEXTAFTERif available, or a compatible combination of older functions. - One-time cleanup: use Find and Replace or Flash Fill when the pattern is consistent and you want values rather than formulas.
- Repeatable imports or cleanup: consider Power Query, which can remove a specified number of characters or split a column by a delimiter.
Keep the original data until you have checked the results. Formulas normally return cleaned text in a new column; they do not change the source cells.
Remove a fixed number of characters
Suppose A2 contains SKU-48271 and you want to remove its first four characters, SKU-. With the source value in A2, enter =RIGHT(A2,LEN(A2)-4). The result is 48271. Fill the formula down to process more rows.
LEN(A2) counts the characters in the cell, and RIGHT returns the specified number of characters from the end. Subtracting the number to remove leaves the number of characters to return.
Another option is MID. With the same value in A2, enter =MID(A2,5,LEN(A2)). It starts at character 5 and returns up to the remaining length, producing 48271. Use the start position one greater than the number of characters being removed: remove three characters, start at position 4.
For a simple, known fixed count, RIGHT is often easiest to read. MID is useful when you also need to specify a starting position somewhere other than the beginning.
Remove text up to a delimiter
A prefix may vary in length, so counting characters is unreliable. For example, values such as North-48271 and West-93210 have different-length prefixes. If you want the part after the hyphen, and A2 contains one of these values, use =TEXTAFTER(A2,"-"). It returns 48271 or 93210, respectively.
TEXTAFTER is available in Microsoft 365 and Excel 2024. By default, it returns text after the first occurrence of the delimiter. If there could be several hyphens and you need the text after the last one, the instance argument can specify that: with the value in A2, =TEXTAFTER(A2,"-",-1).
For older Excel versions without TEXTAFTER, use MID, FIND, and LEN. With the text in A2 and a hyphen that must be present, enter =MID(A2,FIND("-",A2)+1,LEN(A2)). For North-48271, the result is 48271. FIND locates the hyphen, and adding 1 makes the extraction begin immediately after it.
If the delimiter might be missing, the older formula returns an error because FIND cannot locate it. Decide what should happen in that case. To return the original value when no hyphen exists, with the source in A2, use =IFERROR(MID(A2,FIND("-",A2)+1,LEN(A2)),A2).
Remove characters directly from the cells
If you do not need a formula and the same number of leading characters should be deleted from every selected cell, use Find and Replace:
- Select the cells you want to change, so the replacement does not affect unrelated data elsewhere.
- Press Ctrl+H on Windows to open Find and Replace. On Mac, use Control+H or open Find and Replace from Excel’s Edit menu; shortcuts can vary with keyboard settings.
- In Find what, enter the exact prefix to remove, such as
SKU-. - Leave Replace with blank, then choose Replace All.
This method removes the matching text wherever it occurs in each selected cell, not exclusively at the left edge. Use it only when the prefix is distinctive and should be removed wherever it appears. It cannot remove an arbitrary number of characters unless you know their exact content.
Flash Fill can also recognize a pattern: type the desired result beside the first source value, then choose Data > Flash Fill or press Ctrl+E on Windows. Review the results, especially if entries are inconsistent. Flash Fill produces values rather than a live formula; Mac availability and behavior can differ by Excel version.
Fill down, check results, and keep text intact
After entering a formula, copy it down by dragging the fill handle or double-clicking it. Excel adjusts a relative reference such as A2 to A3, A4, and so on. To replace the source column with the results, copy the formula results and use Home > Paste > Paste Values. Check the pasted values before deleting the original column.
- Leading zeros: if an identifier such as
00482is stored as text, the formula can preserve those zeros. If Excel has already stored it as a number, the zeros may already be lost; format or import identifiers appropriately. - Blank cells: a formula may return 0 or an unexpected result for a blank source, depending on the method. To keep blank rows blank, with source data in A2, use
=IF(A2="","",RIGHT(A2,LEN(A2)-3))when removing three characters. - Short entries: if a value has fewer characters than the fixed number you intend to remove, the calculation may return an error. Confirm the input length or add an explicit rule for short values.
- Spaces: a leading space counts as a character. If results seem shifted, inspect the source for spaces before the visible prefix; do not remove spaces indiscriminately if they are meaningful.
Excel formulas that return text do not necessarily convert digit strings into numbers. That is often helpful for product codes, postal codes, and account IDs, where leading zeros and exact characters matter.
Frequently Asked Questions
How do I remove the first character in Excel?
With the value in A2, enter =RIGHT(A2,LEN(A2)-1). It returns everything after the first character. Fill down for additional rows.
How do I remove everything before a space?
In Microsoft 365 or Excel 2024, with the text in A2, use =TEXTAFTER(A2," "). It returns the text after the first space. If there may be no space, use an error-handling formula or decide whether the unchanged value or a blank is preferable.
Can I remove a prefix without a formula?
Yes. Find and Replace can remove a known, exact prefix from selected cells by replacing it with nothing. It removes that text wherever it occurs within each cell, so confirm the match is specific enough.
Why does my formula return an error?
A fixed-count formula may be asking for an invalid number of characters, or a delimiter-based formula may not find its delimiter. Check the source text, the character count, and whether the expected separator is present.
Will removing text change the original cell?
No, not when you use a formula in another cell. To make the change permanent in the original column, copy the results and paste values over the source after verifying them, or use Find and Replace on a selected range.
Related
- VLOOKUP to the Left in Google Sheets: How It Works
- How to Remove Wrap Text in Google Sheets
- How to Remove Formatting in Word: Text and Styles
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Formulas & functions
- EDATE in Excel: Add Months, Not DaysEDATE in Excel moves a date by whole calendar months; it does not add a specified number of…
- Excel SUMIF Exact Text Match: Formula & FixesTo make Excel’s SUMIF match an exact text string (not a partial match), use the formula =SUMIF(range, "exact…
- Generate 50 Random Numbers: How to Do It RightTo generate 50 random numbers, you can use a programming language’s built-in random function, a spreadsheet formula, or…
- Excel SUBTOTAL: Count Unique Values in Filtered DataExcel’s SUBTOTAL function cannot count unique values by itself. In Microsoft 365, combine UNIQUE and FILTER with SUBTOTAL…
- VLOOKUP Examples for Practice: Learn Excel Lookup SkillsFor a first VLOOKUP practice problem, put product IDs in A2:A6, prices in B2:B6, and the lookup ID…
- Excel Formula to Round to the Nearest Whole NumberTo round a number in Excel to the nearest whole number, use the ROUND function with zero decimal…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.