To flip a column upside down in Excel, add a temporary index beside the data, sort the entire range by that index from largest to smallest, then remove the index. This reverses the row order while keeping each value attached to the right record. You can also create a reversed copy with a formula if you want to leave the original column untouched.
What You’ll Need
- An Excel workbook with the column you want to reverse. The steps below are for Microsoft Excel for Microsoft 365 on Windows.
- If the column belongs to a table of related information, such as names and dates, make sure you can select and sort the whole table or data range—not just the one column.
- Optionally, a spare column for a temporary index or an empty area for a formula result. Save a copy first if the data is important or difficult to reconstruct.
Step-by-Step
- Identify the exact data range. Find the first and last cells that contain the records you want to reverse. For example, if the values are in A2:A10 and A1 is a heading, the data range is A2:A10. Decide whether blank rows are part of the list; sorting across a blank row can separate the data into different regions. If other columns contain information for the same records, include those columns too.
- Make a temporary index column. Insert or use an empty column directly beside the data, and label its heading something clear, such as Temporary Order. If the values are in A2:A10, enter 1 in the index cell beside A2 and 2 beside A3. Select both cells, then drag the fill handle—the small square at the selection’s lower-right corner—down to the last data row. Excel should continue the series through 9. Check the first and last numbers before sorting.
- Select every related column and the index. Select the complete set of records, including any headings, neighboring details, and the temporary index. For example, if names are in A, dates are in B, and the index is in C, select all three columns across the same rows. This is essential: sorting only the target column could mismatch names, dates, or other information.
- Open the Sort dialog. On the ribbon, choose Data > Sort & Filter > Sort. If Excel asks whether your selection has headers, choose the appropriate option. In the Sort dialog, set Sort by to the temporary index heading, set Sort On to Values, and set Order to Largest to Smallest.
- Apply the sort and check the result. Choose OK. The row that originally had index 9 should now appear first, and the row with index 1 should appear last. Check a few neighboring columns as well to confirm each record stayed together. The values in the target column are now in reverse order.
- Remove the temporary index. Select the temporary index column and delete it, or clear its contents if you need to keep the worksheet layout. Do not delete a neighboring column that contains actual data. Save the workbook after confirming the reversed list is correct.
- Use a formula when you want a separate reversed copy instead. If your source values are in A2:A10, click an empty cell outside an Excel Table and enter
=SORTBY(A2:A10,SEQUENCE(ROWS(A2:A10)),-1). In Microsoft 365, the formula spills down automatically. The result begins with the original A10 value and ends with the original A2 value. Keep the source range unchanged; this formula creates a reversed display rather than rearranging the original cells.
The sort method works in Excel for Microsoft 365 on Windows and Mac, though ribbon layout can vary slightly. In Excel for the web, use the Data tab’s sort controls; check the selection carefully before applying a sort. Windows shortcuts for selecting or filling cells can differ from Mac shortcuts, so the ribbon steps are a dependable alternative on either platform.
Common Mistakes
- Sorting only one column in a multi-column list. If each row is a record, sorting a single column can attach values to the wrong records. Include all related columns and the helper index in the sort selection. If Excel prompts you to choose, select Expand the selection.
- Including a heading as if it were data. A heading may move into the list or be sorted among values if Excel does not recognize it. In the Sort dialog, confirm that My data has headers is set correctly and choose the helper column by its heading.
- Using an incomplete or incorrect index. Duplicate numbers or skipped numbers can give an unexpected order. The helper should increase by one for every record, from top to bottom. Check that the index reaches the final data row.
- Sorting across blank rows without noticing. Excel may treat separate blocks as separate lists, so only one block reverses. Remove unintended blank rows or select and sort each block deliberately.
- Expecting the formula method to preserve formatting. A spilled formula returns values, not the source cells’ full formatting, comments, or row-specific properties. Copy the result and use Paste Special > Values if you need a fixed copy; apply formatting separately as needed.
Tips
- Keep the source until you verify the result. A helper-column sort changes the order of the selected records. If there is any chance you will need the original order, duplicate the worksheet first or use the formula method in an empty area.
- Turn a simple list into an Excel Table when useful. Select the data and choose Insert > Table, confirming whether the range has headers. Tables help Excel keep related columns together when sorting. Still check that the temporary index is included in the sort and remove it afterward.
- Use a formula for a repeatable view. The
SORTBYandSEQUENCEformula is available in Microsoft 365 and Excel 2021 or later. It updates when source values change, provided the referenced range remains appropriate. It will not automatically include new rows outside A2:A10; adjust the range or use a suitable table-based setup when the list grows. - Choose whether blanks belong in the reversal. A blank cell inside the selected range is a row position too. If you want to reverse only filled entries, remove or exclude blank rows first, taking care not to separate associated data. With a formula, you can select a precise contiguous range that does not include extra blank cells.
- Remember that reversing is not alphabetical sorting. The goal is to put the last row first and the first row last, preserving the sequence between them. Sorting the values themselves A to Z or Oldest to Newest produces a different result.
Troubleshooting
The wrong column or rows moved. Undo immediately with Ctrl+Z on Windows, then repeat the sort with the complete related range selected. On Mac, use Command+Z. In the Sort dialog, choose the temporary index as the sort key and confirm the correct header setting. If you have made more changes since the sort, inspect the workbook before undoing, because undo also reverses later actions.
Only part of the list reversed. Look for blank rows, blank columns, or separate data blocks that may have caused Excel to identify a smaller region. Select the intended full range manually, including any connected columns, and run the sort again. If the data has a heading, include it and identify it as a header in the dialog.
The values reversed but the other details did not. The sort was likely applied to only the target column. Undo, select all columns that make up each record, and sort those columns together using the helper index. If undo is no longer available, restore from a saved copy or version history rather than trying to match records by guesswork.
The formula shows an error or does not spill. Check that the formula is entered in a blank area with enough empty cells beneath it. A message such as #SPILL! usually means something is occupying part of the result range; clear those cells or move the formula. Confirm the source range is valid and that your Excel version supports SORTBY and SEQUENCE. Excel for the web and Microsoft 365 support dynamic arrays, but older Excel versions may not.
The formula result is correct but you need it to replace the original. Copy the spilled results, select the destination’s first cell, and use Home > Paste > Paste Special > Values (the exact menu presentation can vary by platform). Check that the destination has the same number of rows before pasting. Keep a backup until you have confirmed the replacement.
Frequently Asked Questions
Can I reverse a column without a helper column?
You can use the SORTBY formula in an empty area to create a reversed copy without modifying the original. For a direct in-place reversal using standard ribbon sorting, a temporary index is the clearest method because it gives Excel an explicit order to sort by.
Will sorting the column change the rest of my table?
It will if you select the whole table or choose Expand the selection when prompted. That is usually what you want when each row contains one record. Selecting only the target column can separate its values from their associated details, so avoid doing that for related data.
Does this method work with text, numbers, and dates?
Yes. The helper index determines the order, so the original values can be text, numbers, dates, or a mixture. The sort does not depend on their alphabetical or numerical meaning. Formula results likewise follow the positions of the source cells.
Can I flip a column that contains formulas?
Yes, but consider whether you want to move the formulas or just their displayed results. Sorting the full range moves the rows and their formulas together, while a SORTBY result displays values from the source range. Relative references in formulas can behave differently when cells are rearranged, so check important calculations afterward.
Can I reverse a column in Excel for Mac or the web?
Yes. The helper-index approach and the Data tab’s sorting controls are available in current Excel for Mac and Excel for the web, although exact ribbon placement can differ. Mac users can undo with Command+Z; Windows users can use Ctrl+Z. The dynamic-array formula works only in versions that support its functions.
How do I restore the original order?
If the sort was your last action, use Undo. If you removed the helper index or continued editing, use a saved copy, backup, or workbook version history if available. For future reversals, keep a duplicate worksheet or retain an original-order index so you can sort back to the starting sequence.
Related
- How to Insert Multiple Tables of Contents in Word
- How to Add a New Section to a Word Table of Contents
- Insert a Personal Signature in Word 365
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Insert a Gray Line in Word: Shapes and BordersTo insert a gray line in Microsoft Word, go to Insert > Shapes > Line, draw the line,…
- Remove Section Breaks in Word Without Losing FormattingTo remove a section break in Microsoft Word, show formatting marks with Home > ¶, select the section…
- Set Out of Office in Outlook for Mac: A Step-by-Step GuideTo set an out-of-office reply in Outlook for Mac, open Tools > Automatic Replies, choose your Exchange or…
- Unblock a Sender in Outlook: App and Desktop StepsTo unblock a sender in Outlook, remove their email address or domain from Outlook’s blocked-senders list; in new…
- Remove Percentage in Google Sheets: Format or ConvertTo remove the percent sign in Google Sheets, select the cells and choose Format > Number > Number.…
- How to Make a Booklet in Word 365 and Print It CorrectlyTo make a booklet in Word 365, open Layout > Margins > Custom Margins, choose Book fold from…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.