FormulaCraft

How to reverse a text string in Excel and Google Sheets

Topic:Text manipulation

Heads up: Excel and Google Sheets do this differently.

Excel
=TEXTJOIN("",TRUE,MID(A2,LEN(A2)+1-ROW(INDIRECT("1:"&LEN(A2))),1))
Google Sheets
=TEXTJOIN("",TRUE,MID(A2,LEN(A2)+1-SEQUENCE(LEN(A2)),1))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1In Google Sheets, enter =TEXTJOIN("",TRUE,MID(A2,LEN(A2)+1-SEQUENCE(LEN(A2)),1)) — SEQUENCE generates positions from LEN down to 1.
  2. 2In Excel 365, use =TEXTJOIN("",TRUE,MID(A2,LEN(A2)+1-ROW(INDIRECT("1:"&LEN(A2))),1)) as a Ctrl+Shift+Enter array formula in older Excel.
  3. 3MID extracts one character at each reversed position and TEXTJOIN concatenates them.
  4. 4The formula works on any text length automatically.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Does this work on numbers stored as text?

Yes — any value in the cell is treated as a text string and reversed character by character.

Is there a simpler built-in function?

Not yet in mainstream Excel or Sheets, though some scripting environments like Google Apps Script have a reverse method.

More on Text manipulation

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: