×

Reverse List in Excel

What is Reverse list in Excel?

Microsoft Excel is widely used for calculation purposes like statistical and analytical for predicting and getting the result. Sometimes for calculation purposes, the user needs to shuffle the data or flip the order of the data upside down in a vertical dataset and left to right in a horizontal dataset, which means reversing the data or list. Doing manually take lot of time, and sometimes leads to error. Excel provides default function to reverse the list of data present in the worksheet using formulas, simple sorting trick or VBA. It provides default functions like INDEX, COUNTA, SORTBY, SEQUENCE and ROW functions for reversing the data present in the list. It provides several methods to use the reverse function with and without formulas. In this tutorial the various methods for reversing the list is explained clearly.

1. Reversing the list without using the formula

In the following method the data in the list are reversed without using the formula. If someone forgets the formula or function, easily this method can be applied for reversing the list or range.

  1. Enter the list of values in the spreadsheet. Here the values are entered from cell range A1:A10.
  2. From the cell B1:B10 enter the numeric value from 1 to 10 .Like ‘1’ in cell B1, ‘2’ in cell B2. Similarly follow this step up to value 10
  3. Select any of the data in the column B1:B10. Choose Data> Sort Descending to Ascending order in the ribbon tab in Excel
  4. The data in the column A2:A11 will change its order, and the values present in the column B2:B11 will also changes.
Reverse List in Excel
Reverse List in Excel

From the above worksheet, the data are reversed, where the value ‘A’ present in the bottom of the list while ‘J’ present in the top of the list. The numbers present in the column B2:B11 is called helper column, where it is used to reverse the order of the list.

2. Reversing the list using the formula

One can reverse the list using the Excel default formula. Here the combination of INDEX and ROWS function is used to reverse the list or range in Excel. To use this formula, following steps are followed.

  1. Enter the data in the worksheet in the required column.
  2. Select a new cell where the result wants to display and enter the formula as =INDEX (CELL RANGE, ROWS (CELL RANGE). Here the formula used are = INDEX ($A$2:$A$11, ROWS (A2:$A$11).
  3. It display the result in the cell B2. Drag the formula towards the cell B11. It will display the result in remaining cell. This process is called spilling. The process of spilling is done in Excel 365 and some advanced versions like Excel 2021.
Reverse List in Excel

From the above worksheet, the data is reversed using the function INDEX and ROWS. Here the data range containing the list A2:A11 becomes the first argument of the array function. To return the last element of the array, ROW function is used.

3. How to reverse the order using SEQUENCE, SORTBY and ROWS function together?

The list or range in the cell can be reversed using the Excel default function called SEQUENCE, SORTBY and ROWS function. It is called as Dynamic array formula which is used for quicker and efficient calculations .To use this function following steps are followed,

  1. Enter the data in the spreadsheet in the required column
  2. Select a new to create the sequence for the column range A1:A10. Enter the formula as =SEQUENCE (10, 1, 1, 1). The arguments present in the Sequence function is ‘10’ represents the number of rows, ‘1’ represents columns, ‘1’ represents the start, ‘1’ represents the step. It displays the sequence of numbers in the column B1:B10.
Reverse List in Excel

From the above worksheet, the sequence is created using the sequence function. The action of spilling is performed to fill the remaining cells.

  • Next use SORTBY function, by selecting a new cell and enter the formula as =SORTBY (A1:A10, B1:B10,-1). Here -1 indicates the values to be arranged from descending to ascending order.
Reverse List in Excel

Here the values are reversed using SORTBY function.

  • Next, use the SEQUENCE function inside the SORTBY function. Select a new cell and type the formula as = SORTBY (A1:A10, SEQUENCE (10, 1, 1, 1),-1). Here the arguments ‘10’ represents the rows, 1- column, 1- start, 1- step and -1 indicates the range to be arranged from descending to ascending order.
  • Next step involve the merging of ROWS function inside the formula. Select a new cell and type the formula as = SORTBY (A1:10, SEQUENCE (ROWS (A1:A10), 1, 1, 1),-1). The ROW function is used to count the number of rows in a range.
Reverse List in Excel

From the above worksheet, the SEQUENCE, SORTBY and ROWS function is used together to reverse the list or range in the table.

4. How to reverse the list of range using COUNTA function?

Excel default function called COUNTA is used to reverse the list or range in the table. The formula to be used is,

=INDEX (list, COUNTA (list) +ROW (list)-ROW (), 1).

To implement this formula, steps to be followed are,

  1. Enter the data in the worksheet in the required column.
  2. Select a new cell and type the formula as =INDEX (A1:A10, COUNTA (A1:A10) +ROW (A1:A10)-ROW (), 1). Here A1:A10 is considered as list.
  3. The result will be displayed in the cell.
Reverse List in Excel

From the above worksheet, the list is reversed using the formula INDEX, COUNTA and ROW. The name “list” is a named range, where it is an absolute reference by default. In this formula INDEX function acts as a important part of the formula, where it represents the list as an array of argument. The other part of the formula is called expression, which represents the correct row number in the formula.

COUNTA- It is used to represent the count of non-blank cell present in the list. In this example ‘10’ is represented as non-blank cell

ROW – It is used to represent the starting row number. For example, the row number here is 1.

ROW () - It represents the row number where the formula is present.

5. How to reverse the list horizontally?

Excel default functions or formula is used to reverse the column in a vertical manner. Similarly using this function, the data in the row can be flipped or reversed in a horizontal manner. To reverse the data horizontally, following steps are followed,

  1. Enter the data in the respective row. Here the data are entered in the row range namely A1:J1
  2. Enter the helper column number 1 to 10 in the row A2:A10.
  3. Select the value and helper column range ,here in the example the data range to be selected are A1:J2.
  4. Choose the Sort icon from the Data Tab. A dialog box will appear, in that select the option button. The sort option dialog box will appear, in that choose “Sort left to Right” option. Click OK.
Reverse List in Excel

From the above dialog box, click the “OPTION” button.

Reverse List in Excel
  • Click OK, after choosing the “Sort Left to Right button”.
Reverse List in Excel
  • From the above worksheet, choose the helper row in Sort by option. Here the helper row is present in row 2. Hence row 2 is selected. In order choose the “Largest to Smallest option”. Click Ok.
Reverse List in Excel

From the above worksheet, the data are reversed in the order.

Summary

From the tutorial, the various methods and functions to reverse the order is explained briefly.


Related Topics

Separate Strings in Excel

How to Separate String in Excel Day by day, Microsoft Excel is increasing for business and personal use. It is a combination of numbers and alphabets based on the data provided....

4 minutes read.

Sum Every Nth Row in Microsoft Excel

The main and the critical use of the SUM Function is used to add all the amounts of the numerical data and thus efficiently produce the sum of all at...

3 minutes read.

Reverse List in Excel

What is Reverse list in Excel? Microsoft Excel is widely used for calculation purposes like statistical and analytical for predicting and getting the result. Sometimes for calculation purposes, the user needs...

5 minutes read.

Unique Values in Excel

The Unique function in Excel filters the list of unique values from the given data like range or array. The data presented is either number, text, date, time etc. This...

3 minutes read.

Purpose of Randomize in Excel

Excel spreadsheets are used on a large scale for business and personal usage. It is used to store data, perform multiple calculations, make assumptions based on charts and graphs etc....

7 minutes read.

Histogram in Excel

What is Histogram in Excel? “ A histogram is a graphical tool familiar for summarizing discrete or continuous data, where the data are measured on an interval scale.”  Karl Pearson described this...

5 minutes read.

Application Interface and Key Components

The essential key components of Excel are as follows: Ribbon TabQuick Access ToolbarFormula BarActive CellColumnsRows Name BoxSheet TabsZoom ControlStatus Bar Ribbon Tab: The ribbon includes tabs labeled Home, Insert, Page Layout, Formulas, Data, Review,...

3 minutes read.

Date and Time in Excel-VBA

In this modern world of computer technology the creation of Excel reports are termed to be the crucial elements, and the particular type of programs that helps us in performing...

6 minutes read.

Excel MAX() Function

Excel MAX() Function The MAX() function in excel returns the largest or maximum number from a range of cells. It ignores logical values and text. Syntax MAX(Number1,Number2, ...) Parameter Number1(required)- This parameter represents the string for which you...

1 minute read.

Excel MIN() Function

Excel MIN() Function The MIN() function in excel returns the smallest or minimum value from the provided numbers, named range or array. It ignores logical values and text. Syntax MIN(Number1,Number2, ...) Parameter Number1(required)- This parameter represents the...

1 minute read.

Excel IFNA Function

Excel IFNA Function The IFNA in Excel is used to remove the #N/A type of errors in excel values cells with our choice of value. IFNA function is from Excel 2013 onwards, so it...

1 minute read.

Array Formula in Excel

How to use Array Formula in Excel? By default, Excel consists of various formulas for calculating the data. Among various formulas, the Array formula is a powerful one that is used...

8 minutes read.

Calculating the Last Day of the Month in Excel

In Microsoft Excel, various functions exist to calculate the date and time from the current date to the past and future. Among multiple tasks in this tutorial, let's see how...

3 minutes read.

Frequency Distribution in Excel

The term Frequency Distribution in Microsoft Excel is mainly used to explain how the data will be spread out. And it could be achieved with the help of the Histogram,...

7 minutes read.

Excel SMALL() Function

The SMALL() function in excel returns the k-th smallest value in a data set. Syntax SMALL(Array, kth small number from the list) Parameter Array (required)- This parameter represents the list of numbers from which nth smallest...

1 minute read.

Excel IFERROR() Function

The IFERROR() function in excel returns the specified value if initially supplied the argument or formula returns an error, otherwise returns the result of the formula supplied in the first argument. When...

2 minutes read.

Calculating Age in Excel

Microsoft Excel provides separate functions for various mathematical operations. Nowadays, Microsoft Excel is widely used by large and various organizations. Using formulas one can calculate the statistical functions quickly and...

2 minutes read.

Check Marks in Excel

What is a Check Mark? Among various characters checkmark is one of the characters used to indicate that the item or product in the list is correct, chosen or selected. A...

5 minutes read.

Thermometer Chart in the Microsoft Excel

It was known that the thermometer chart is basically based on a single data point and that in turn could be used to show the achievement percentage. It primarily depends...

7 minutes read.

Excel Axes

What is Excel Axes? Axes are a horizontal or vertical line containing units of measure. There are two types of axes X and Y axes. X is a horizontal and Y...

3 minutes read.