Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Reverse a Word in Excel: 3 Easy Methods

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can reverse a word in Excel without any add-ins by combining built-in functions. The simplest reliable method uses a helper column with a formula that rebuilds the word one character at a time from the end to the start. For a single word in cell A1, this formula returns the reversed text: =TEXTJOIN("",TRUE,MID(A1,SEQUENCE(LEN(A1),1,LEN(A1),-1),1)). If your Excel version does not have TEXTJOIN or SEQUENCE, use the classic array formula =RIGHT(A1,LEN(A1))&MID(A1,LEN(A1)-1,1)&MID(A1,LEN(A1)-2,1)&MID(A1,LEN(A1)-3,1) extended as far as needed, or use a short VBA function. This guide covers each method, what to watch for, and how to fix the usual errors.

What You'll Need

  • Microsoft Excel for Windows, Mac, or Excel for the web. Function availability varies by version and region, so labels and supported functions can differ slightly.
  • A worksheet with the word or words you want to reverse in a column, one word per cell.
  • Basic familiarity with entering formulas and dragging the fill handle.
  • If you use the VBA method: a workbook saved as .xlsm (macro-enabled), and macro security settings that allow macros. On managed workstations, macros may be blocked by policy.

Step-by-Step

Method 1: Modern formula with TEXTJOIN and SEQUENCE (Excel 365 and Excel 2021+)

  1. Put your word in cell A1. For example, type Excel.
  2. Click cell B1 and type the formula:
    =TEXTJOIN("",TRUE,MID(A1,SEQUENCE(LEN(A1),1,LEN(A1),-1),1))
  3. Press Enter. B1 should show lecxE.
  4. To apply it to a whole column, drag the fill handle from B1 down, or copy B1 and paste it into the cells below. Each formula adjusts to its row automatically.
  5. If you want plain text instead of a formula, copy the results, then use Paste Special > Values into another column.

How it works: LEN finds the word length, SEQUENCE generates a descending list of character positions, MID pulls each character, and TEXTJOIN glues them back together. The TRUE argument ignores empty values.

Method 2: Legacy formula for older Excel versions

  1. In cell B1, enter this formula for words up to 10 characters:
    =MID(A1,10,1)&MID(A1,9,1)&MID(A1,8,1)&MID(A1,7,1)&MID(A1,6,1)&MID(A1,5,1)&MID(A1,4,1)&MID(A1,3,1)&MID(A1,2,1)&MID(A1,1,1)
  2. Press Enter. For a 5-letter word, the extra MID calls return empty strings, so the result is correct.
  3. For longer words, extend the pattern by adding more &MID(A1,n,1) segments, starting from the highest position and counting down to 1.
  4. Drag the formula down the column as needed.

This method is limited by the number of segments you write. It is fine for short words but impractical for long text.

Method 3: User-defined function with VBA

  1. Press Alt+F11 (Windows) or Fn+Option+F11 (Mac) to open the Visual Basic Editor.
  2. In the editor, choose Insert > Module.
  3. Paste the following code into the module:
    Function ReverseWord(txt As String) As String
    Dim i As Long
    For i = Len(txt) To 1 Step -1
    ReverseWord = ReverseWord & Mid(txt, i, 1)
    Next i
    End Function
  4. Close the editor and return to Excel.
  5. In cell B1, enter =ReverseWord(A1) and press Enter.
  6. Save the workbook as .xlsm to keep the function available next time.

If macros are disabled by your organization, this method will not work; use one of the formula methods instead.

Common Mistakes

  • Using SEQUENCE or TEXTJOIN in an older Excel version. These functions are not available in Excel 2019 and earlier; you will see #NAME? errors. Use Method 2 or 3 instead.
  • Forgetting to adjust the formula range. Dragging a formula that references a fixed cell (e.g., $A$1) will reverse the same word repeatedly. Use relative references like A1.
  • Leaving trailing spaces. A space at the end of the word becomes the first character of the reversed result. Use TRIM(A1) inside the formula to remove extra spaces.
  • Assuming the formula reverses entire sentences. These methods reverse character order, including spaces and punctuation, so a sentence comes out backwards word by word. That is expected behavior.
  • Not saving as macro-enabled. A VBA function disappears when you save as .xlsx and reopen the file.

Tips

  • To reverse several words in one cell, split them first with Text to Columns (Data > Text to Columns) using a space delimiter, reverse each word, then combine them back with TEXTJOIN.
  • Wrap the word reference in TRIM to avoid stray spaces: =TEXTJOIN("",TRUE,MID(TRIM(A1),SEQUENCE(LEN(TRIM(A1)),1,LEN(TRIM(A1)),-1),1)).
  • If you only need the reversed text once, type the formula, copy the result, and paste it as values to remove the formula dependency.
  • Use Excel Tables (Insert > Table) so formulas auto-fill when you add new rows.
  • For words with accented characters, the formula treats each character as one unit in most cases; test a sample first if accuracy matters.

Troubleshooting

  • #NAME? error: The function name is misspelled or not available in your Excel version. Check spelling and confirm TEXTJOIN and SEQUENCE are supported. If not, switch to Method 2 or 3.
  • #VALUE! error: The referenced cell contains an error or a non-text value that LEN cannot handle. Check the source cell.
  • Formula returns the original word unchanged: You may have used an absolute reference or dragged the formula without adjusting the row. Verify the cell reference matches the row.
  • VBA function not found: Macros are disabled, or the code was placed in the wrong module. Enable macros in the Trust Center (File > Options > Trust Center > Trust Center Settings > Macro Settings) and confirm the code is in a standard module. Note that organizational policy may override this.
  • Results look wrong for long words: The legacy formula may not have enough segments. Extend it or use Method 1.
  • Excel for the web limitations: Some functions and VBA are not available in the browser version. Use the desktop app for full support.

Frequently Asked Questions

Can I reverse a word without a formula?

Not directly in Excel. You can type the reversed word manually, or use an online tool, but Excel has no built-in reverse-text command. Formulas or VBA are the standard approaches.

Does this work for sentences or phrases?

Yes, but it reverses every character, so spaces and punctuation move too. "Hello World" becomes "dlroW olleH". If you want each word reversed but the word order kept, split the text first.

Why do I get a #NAME? error with TEXTJOIN?

TEXTJOIN requires Excel 2019 or later, Microsoft 365, or Excel for the web. In older versions, use the legacy formula or a VBA function.

Can I reverse text in Excel for Mac?

Yes. The formula methods work the same. For VBA, the shortcut to open the editor is Fn+Option+F11 on most Mac keyboards, and macros must be enabled.

Will the reversed text update if I change the original word?

Yes, as long as you keep the formula. If you paste the result as values, it becomes static text and will not update.

Is there a limit to how long the word can be?

Excel cells hold up to 32,767 characters, but practical limits depend on the method. The modern formula handles long strings well; the legacy formula needs one segment per character, so it becomes unwieldy beyond about 20 characters.