In Excel (2007), what formula or code would enable a given cell to display values from a range based on the location of the current active cell?
For example, suppose column A contains arbitrary values in all cells from row 1 to row 9999 (A1:A9999) and you want to be able to activate or select (by clicking or using arrow keys, etc.) any corresponding cell in column B (in range B1:B9999) and have cell C1 display the value from the adjacent cell in column A.
In other words:
if cell B1 is active, cell C1 will display the value in A1.
if cell B2 is active, cell C1 will display the value in A2.
if cell B3 is active, cell C1 will display the value in A3.
if cell B4 is active, cell C1 will display the value in A4.
and so on...
In effect, it would be very similar to how the Name Box, in the upper left corner of Excel, displays the coordinates for the currently active cell, except here, C1 would be displaying the values from the same row in column A.
By the way, if more than one cell in column B is selected, C1 should display the value from the first corresponding column A cell -- again similar to how the Name Box works.