Names Tutorial I: Row / column matching

This page in 2003
Top  Previous  Next

Row matching is possible as well as column matching

In Lesson F we saw that when confronted by a formula that mentions several cells where one would be more usual, Excel can often make sense of the expression.  It will resort to column matching to pick out one of the cells to act on.

The process Excel goes through to work out which cell to pick from a range doesn't only involve column matching.  It can involve row matching too.

Example of column matching

We have already seen column matching in Lesson F.

Example of Row matching

1Create a new workbook
2In cell C1, write "Radius"
3Type some numbers into cells C2:C11.
4Highlight cells C1:C11
5Use Excel's Formulas | Defined Names | Create from selection command with the "Top row" command selected
6Press F5, the shortcut for Goto, and satisfy yourself that a name "Radius" has been created.  Dismiss the Goto dialog when you have done so.
7In cell E1, write "Area"
8In cell E2, write =Pi()*Radius^2
9Copy cell E2 into cells E3:E11.
10See that Excel is using row matching to pick out the radius of each circle listed to calculate its area.

Row matching

Example of Row and Column matching simultanEously

1Create a new workbook
2Press Ctrl+A.  This selects all the cells on Sheet1.
3Using Excel's Formulas | Defined names | Define name command, define a name "ValueOnSheet1" so that it refers to all the cells just selected.
4Put some random entries in cells in the first few rows on Sheet1.
5Move to Sheet2.  Type  =ValueOnSheet1 into a cell and copy it into the first few rows of that sheet.
6See that where there you have put entries in Sheet1, they appear in corresponding cells on Sheet2.  To do this Excel is matching both the rows and the columns in order to reduce a two dimensional range of cells to a single value that it can usefully place in a cell.

See also

Names tutorial J