Excel has no single button that flips the words in a cell, but you can reverse word order with a formula, with Text to Columns plus a quick sort trick, or with a few clicks in Power Query. The formula route is best for a handful of cells that need to update automatically, while Text to Columns and Power Query are better when you have a whole column of data that you want to transform once. Before you start, put your source data in a dedicated column and leave an empty column beside it for the result, so nothing gets overwritten. Also make sure your text uses ordinary spaces between words; text pasted from websites sometimes contains non-breaking spaces, which break the formulas below.
What You'll Need
- Microsoft Excel on Windows or Mac, or Excel for the web. Excel for iPad and iPhone supports TEXTSPLIT, TEXTJOIN and TRIM, but the older helper-column method will not work the same way because you cannot easily drag a formula across cells.
- Your list of phrases in one column, one phrase per row, with no blank rows in the middle.
- An empty column to the right where the reversed text will land.
- Optional: a recent version of Excel if you want to use the single-formula method. TEXTSPLIT requires Microsoft 365; older versions need the helper-column approach.
Step-by-Step
Method 1: One formula (Microsoft 365 and Excel for the web)
- Click the first empty cell beside your source text, for example B2 if your phrase is in A2.
- Type this formula:
=TEXTJOIN(" ", TRUE, TRIM(TEXTSPLIT(A2, " "))). Here is what each part does: TEXTSPLIT breaks the phrase into separate words using the space as the delimiter, TRIM removes any stray spaces, and TEXTJOIN glues the words back together with a single space between them. - That formula rebuilds the phrase with clean spacing, but it does not reverse it yet. To flip the order, wrap it in another layer:
=TEXTJOIN(" ", TRUE, SORTBY(TEXTSPLIT(A2, " "), SEQUENCE(, COUNTA(TEXTSPLIT(A2, " "))), -1)). SORTBY sorts the split words in descending position, so the last word becomes first. - Press Enter and check the result. "smart home camera" should become "camera home smart".
- Drag the fill handle (the small square at the bottom right of the cell) down the column to apply the formula to every row.
- When the results look right, copy the whole result column, then paste it back over itself using Paste Special > Values so the text is no longer dependent on the formula. If you skip this and later delete column A, the results disappear.
Method 2: Helper columns (works in any Excel version)
- Turn on the legacy Text to Columns wizard result by first selecting your source column, then going to the Data tab and choosing Text to Columns.
- Choose Delimited and click Next. Tick Space as the delimiter, untick any others, and click Finish. Each word now sits in its own column to the right.
- Count how many columns were created. If the widest phrase has five words, you now have five columns of split words.
- In the row below or in a new set of columns, build the reversed string with an ampersand formula. If words are in C2 to G2, type
=G2&" "&F2&" "&E2&" "&D2&" "&C2. Add another&" "&cellsegment for every extra word. - The result will carry extra spaces where a row had fewer words than the widest row. Clean it with
=TRIM(around the whole formula and a closing)at the end. - Copy the cleaned column, use Paste Special > Values onto the destination, then delete the helper columns.
Method 3: Power Query (best for long or recurring lists)
- Select your data range, go to the Data tab and choose From Table/Range. Confirm the range and that the table has headers, then click OK.
- In the Power Query Editor, right-click the column header and choose Split Column > By Delimiter. Pick Space and choose to split into rows rather than columns, so every word becomes its own row.
- If you need to keep the original row grouping, add an index before splitting so you can re-group afterwards. Without an index, the original row order is lost.
- Use the Home tab's Reverse Rows option on the resulting column to flip the order, then group or pivot the words back together, and combine them with a delimiter of a single space.
- Choose Close & Load to send the result to a new worksheet. The query can be refreshed later when the source list changes.
Common Mistakes
- Leaving double spaces in the source. Two spaces in a row create an empty word, which shows up as an extra gap in the output. Run your source through TRIM or use Find and Replace before splitting. TRIM only removes spaces in a formula result, not from the original cell unless you paste the value back.
- Forgetting the paste-as-values step. Formulas that reference column A break the moment column A is deleted or sorted. Paste values before you clean up.
- Splitting on the wrong character. Phrases pasted from the web often contain non-breaking spaces (character 160) that look like normal spaces. Find and Replace can remove them: copy one from the cell, paste it into the Find field, and replace with a normal space.
- Assuming every row has the same word count. Fixed helper-column formulas with hard-coded cell ranges produce ragged results on shorter rows. TRIM helps with spacing but not with words landing in the wrong slot.
- Punctuation sticking to words. "camera," reverses as "camera," with the comma attached. If punctuation placement matters, clean it before splitting or accept it stays with its word.
Tips
- Keep a copy of the original column, hidden if you like, until you have verified the output.
- Use a spare sheet as a test bed for the formula on three or four rows before running it down a large list.
- If you only need to reverse the whole string character by character rather than word by word, that is a different task and requires a different formula or a VBA routine.
- Named ranges make long TEXTJOIN formulas easier to read, though they add a step to set up.
- Excel for the web and Microsoft 365 handle TEXTSPLIT and SORTBY the same way; older perpetual versions do not have them, which is why Method 2 exists.
Troubleshooting
The formula shows #NAME?. Your version of Excel does not recognise TEXTSPLIT or SORTBY. Switch to Method 2, or check that you are on a Microsoft 365 build.
The formula shows #CALC!. TEXTSPLIT found nothing to split, usually because the cell is empty or contains only spaces. Wrap the formula in IFERROR to return a blank instead of an error, or clean the source first.
Words come back in the wrong order or duplicated. Check that TEXTSPLIT is splitting on a single space and that the COUNTA count matches the number of words. A hidden leading space creates an empty first word and shifts everything.
Extra spaces appear between words. Wrap the result in TRIM, and also check the source for double spaces.
Results vanish after sorting or deleting a column. The results were formulas, not values. Rebuild them and paste as values this time.
Excel freezes on a very long list. A single formula per row on thousands of rows is heavy. Use Power Query or split the work into chunks. If it still fails, close and reopen Excel, then test on 50 rows before running the full list.
Frequently Asked Questions
Can I reverse word order without a formula?
Yes. Text to Columns plus a manual rejoin, or Power Query, both work without typing a formula, though Power Query needs a few more clicks.
Does this work for phrases with commas and hyphens?
It splits on spaces only, so hyphenated words stay together and punctuation stays attached to its neighbouring word.
Can I reverse the order of characters instead of words?
Not with the same formula. Character reversal needs a different approach, typically a small VBA function or a chain of MID and LEN formulas.
Will the reversed text update automatically if I change the source?
Only while the formula is still in the cell. Once you paste as values, you must rerun the formula after editing the source.
Does Excel for Mac support TEXTSPLIT?
Yes, on Microsoft 365 builds. Older Mac versions do not, so use Method 2 there.