Excel has no built-in REVERSE function, but you can reverse a string with a formula combination. The reliable modern method is TEXTJOIN("",1,MID(A1,SEQUENCE(LEN(A1),,LEN(A1),-1),1)), which works in Excel for Microsoft 365 and Excel 2021 onward. In older versions, you use an array-entered formula or a small helper column approach. This guide covers both, plus what to do when the formula returns an error.
Reversing a string means flipping the order of characters, so "Hello" becomes "olleH". It is useful for cleaning exports where a suffix must be stripped, checking palindromes, building sort keys, or reworking codes such as AB-12345 that you need to reorder. The formulas below are cosmetic only: they return text, they do not change the source cell.
What You'll Need
- Microsoft Excel on Windows or Mac (Excel for the web also supports the modern functions). Excel 2021 or Microsoft 365 is ideal because
SEQUENCEandTEXTJOINare available. - Your source text in a cell, for example A1. Keep a copy of it until you have checked the result.
- For older versions (Excel 2019 and earlier), you will need the array-entry keyboard shortcut, Ctrl+Shift+Enter on Windows or Command+Shift+Enter on Mac.
- Optionally, the Text to Columns feature on the Data tab if you want to work through a helper column.
Step-by-Step
Put the text to reverse in a cell. For example, type
Hello Worldinto cell A1. Do not include leading or trailing spaces unless you want them reversed too, because they are counted as characters.Click an empty cell where the result should appear. Cell B1 next to the source is the usual choice. Labels on the ribbon can differ slightly by Excel version and platform, but the formulas themselves are the same on Windows, Mac and the web.
Type the modern formula for Microsoft 365 or Excel 2021. Enter:
=TEXTJOIN("",1,MID(A1,SEQUENCE(LEN(A1),,LEN(A1),-1),1))Press Enter. This is not an array formula in dynamic-array Excel, so no special keystroke is needed. Replace A1 with your source cell.
Understand what the pieces do, so you can adapt them.
LEN(A1)counts the characters.SEQUENCE(LEN(A1),,LEN(A1),-1)creates the number list 5, 4, 3, 2, 1 for a five-character string.MID(A1, position, 1)pulls one character from each of those positions, which means it reads the text backwards.TEXTJOIN("",1,...)glues the single characters into one string, and the1tells it to ignore empty values.Fill the formula down. Drag the fill handle from the bottom-right corner of B1 down the column, or double-click it to fill to the end of the adjacent data. The relative reference A1 adjusts automatically to A2, A3 and so on.
Use the legacy array formula if you are on Excel 2019 or earlier. Select B1 and type:
=TEXTJOIN("",1,MID(A1,LEN(A1)-ROW(INDIRECT("1:"&LEN(A1)))+1,1))Press Ctrl+Shift+Enter (Windows) or Command+Shift+Enter (Mac) instead of plain Enter. Braces
{ }appear around the formula in the formula bar, confirming it is an array formula. Do not type the braces yourself.Try the helper-column method if array formulas misbehave. Add a sequence of numbers 1 to the length of the longest string in a spare column (1, 2, 3 down, or use the fill series). Then in the next column use
=MID($A$1,LEN($A$1)-B1+1,1)and copy down. Finally combine that column with=TEXTJOIN("",1,C1:C20). This gives you a visible, debuggable trail if you need to see how the characters are being picked.Convert the result to plain text when you are done. Select the results, copy them, then paste back using Paste Special > Values so the formula is removed and only the reversed string remains. This matters if you are about to delete the source column.
Check the output against the source. Compare length and spot-check characters. Reversing is easy to get wrong when the original contains punctuation, spaces or accented letters, because each of those occupies one position in the count.
Common Mistakes
- Forgetting that spaces and punctuation are characters.
Hello Worldreversed isdlroW olleH, notdlroWolleH. If you want the words reversed but their internal letters kept, that is a different task and needs a word-splitting formula, not this one. - Not entering the legacy formula as an array. In old Excel versions, plain Enter on the ROW/INDIRECT version can return a single character or
#VALUE!. Ctrl+Shift+Enter fixes it. - Using the wrong cell inside the formula. If the string is in A1 but the formula points at A2, a blank or different result follows. Check the reference before copying down.
- Reversing an emoji or accented character that uses two code units. Excel treats some symbols as two characters, so they can come out scrambled. Check special symbols manually.
- Assuming the formula changes the original. It does not. The reversed text lives only in the result cell until you copy and paste as values.
- Leaving the TEXTJOIN delimiter blank. The first argument must be
""(two double quotes with nothing between) to join characters with no separator. Putting" "inserts a space between every letter.
Tips
- Wrap the formula in
TRIMonly if you also want to strip extra spaces from the source; reversing the raw text is usually the correct behaviour. - To reverse a number, convert it to text first with
TEXT(A1,"0")inside the formula, since LEN and MID work on the displayed string. - If the result looks like a leading zero was lost when you later convert to a number, keep the cell formatted as Text, or prefix with an apostrophe.
- Name the source range (Formulas > Name Manager) if you reuse the formula across a large table; a defined name makes the formula shorter and easier to audit.
- Test the formula on a short string like
abcbefore applying it to a full column. Debugging one cell is far quicker than debugging 5,000. - For very long strings, TEXTJOIN has a result-length limit. If you exceed it, you will see
#VALUE!and need the helper-column approach instead.
Troubleshooting
If the formula returns #NAME?, Excel does not recognise a function name. The usual cause is an older Excel version without SEQUENCE or TEXTJOIN, or a typo such as missing parentheses. Check the function names are spelled exactly and confirm your version supports them.
If you see #VALUE!, check the TEXTJOIN result is not too long, and if you are on a pre-2021 version, confirm the formula was entered as an array with Ctrl+Shift+Enter. Also check for stray spaces or a hidden apostrophe in the source cell.
If the result is only one character, the array formula was almost certainly entered with plain Enter. Select the cell, press F2 to edit, then Ctrl+Shift+Enter.
If nothing updates after you change the source cell, calculation may be set to Manual. Go to Formulas and set Calculation Options to Automatic, or press F9 to recalculate.
If the copy-paste as values pastes a formula instead of text, you likely selected the whole cell and pasted with Ctrl+V. Use Paste Special > Values instead, or copy the cell and use the paste values button on the Home tab.
If the formula works for some rows and not others, check for blank cells. A blank source gives a blank result, which is expected; if you want a dash instead, wrap the formula in IF(A1="","-",...).
Frequently Asked Questions
Does Excel have a REVERSE function?
No. There is no native REVERSE function in any current version of Excel. The formula combination above is the standard workaround, and for the latest versions it is a single, non-array formula.
Why does my reversed string drop spaces?
It does not drop them; spaces are characters and are reversed along with the letters. If spaces appear missing, check that TEXTJOIN's second argument is 1 so it does not ignore blanks, and check the source cell has no trailing spaces.
Can I reverse text without a formula?
You can use the helper-column method or a short macro, but Excel's own menus have no one-click reverse command. A macro is optional and not needed for most tasks; the formula is simpler and safer for a shared workbook.
Does this work in Excel for the web?
Yes, on versions that support TEXTJOIN and SEQUENCE, which covers current Excel for the web. Older on-premises versions need the array formula instead.
Can I reverse a string in Google Sheets the same way?
The logic is similar, and recent Google Sheets versions support SEQUENCE and TEXTJOIN, so the same formula often works there too. If it does not, use the array entry method for that spreadsheet tool.
How do I reverse only the order of words?
That is a different problem. Use TEXTSPLIT or a combination of TRIM, MID and FIND to split on spaces, then rejoin in reverse order. The character-reversal formula above will not do this.