How to reverse row and column data using formulas in Excel?

Some actions, such as sorting data in one or more rows or transposing elements between rows and columns, are very common in Excel. Therefore, if you have multiple ranges of elements in a table , you may be interested in learning how to invert data across rows and columns using formulas in Excel. In this tutorial, we’ll show you the steps to do just that.

How to invert row and column data using formulas in EXCEL?

Index( )

  1. Is it necessary to combine functions from different ranges to invert them?
  2. How can you reverse a range of cells in Excel using a formula?
    1. Are absolute values ​​required to be set for investment?
    2. Why is it required to replace the ‘Rows’ function with ‘Columns’?
    3. What formula should be used to invert cells in Excel?

Is it necessary to combine functions from different ranges to invert them?

It’s not necessary to combine functions from different ranges to invert them. It’s best to create a separate formula for each range to specify the arguments and the location of the values ​​from a single range, taking into account absolute and relative references.

You can use various reference functions such as SORT, INDEX, OFFSET, ROW, COLUMN, and COUNTA to reverse ranges individually . For example, if you need to create a formula with OFFSET to reverse the values ​​of ten cells in column A, you would write =OFFSET($A$1; COUNTA($A$1:$A$10)-ROW(A1);).

How can you reverse a range of cells in Excel using a formula?

Typically, using the Sort By option by expanding a range selection is enough to reverse a range of cells in Excel. However, you can reverse a range of cells using a formula that includes the SORT function to reverse a range of cells with characters or numbers, or by using the INDEX function.

Both functions require absolute arguments to perform the inversion process. Therefore, if you need to invert a list of names in the range A2:A11, click the ‘fx’ formula bar and type =SORT($A$2:$A$11;ROW(A2:A11);-1). This way, you can invert the values ​​in each cell.

You can also invert a range of cells using the INDEX function. To use it, go to Excel’s formula bar and type the following statement: =INDEX($A$2:$A$11;ROWS(A2:$A$11)). Note that the first argument specifies the range to invert , and ROWS defines the change in values ​​as the range is copied down.

Are absolute values ​​required to be set for investment?

An absolute reference in Excel is a range of one or more cells that remains constant; that is, it isn’t modified in a formula even when it’s copied to another location. Absolute references are identified by the “$” sign before and after the cell. To add it to a formula, go to a specific cell and press “F4.”

You need to set absolute values ​​to invert them in Excel. This way, the column or row references won’t be changed when you copy the formula elsewhere. For example, if you want to invert the values ​​in cells A1:A5, you’d create the formula and set the range to absolute values ​​in the form $A$1:$A$5.

Why is it required to replace the ‘Rows’ function with ‘Columns’?

You may need to replace the “Rows” function with “Columns” to reorganize the data in a table. Therefore, if you select a range of values, you can rotate data from rows to columns with their labels. To do this, it’s important to choose a new location with enough space to paste the values.

When you replace the Rows with Columns function, the positions of the data in the spreadsheet are swapped. Therefore, items that were in the rows will be displayed in columns, and vice versa. To do this, you need to use a special function called ‘INDEX’ .

What formula should be used to invert cells in Excel?

You can reverse cells in Excel by using a formula that changes the order of the cells and displays them in a row or column. To reverse cells vertically, click the formula bar and type =INDEX($A$2:$A$11;ROW(A2:$A$11)), assuming there are 10 items in the range.

If you prefer to invert the cells horizontally, write the formula: = INDEX ($B$1:$F$1; COLUMN (B1:$F$1)) Where $B$1:$F$1 is the series of values ​​to be inverted with an absolute reference while the ROW and COLUMN functions will serve to define where the inverted data will be displayed by setting the last cell.

 

Leave a Comment

Scroll to Top