Steve_Brady
asked on
Display values in Excel based on the location of the current active cell
Hello,
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.
Thanks
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.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Just what I needed! Thanks
ASKER
Tried to give rspahitz a few points for the heads up but it won't let me. ??
looks like it worked...thanks Steve.
Dave
Open in new window