ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using variable cell references in Excel? eg A[B42] instead of A7 (https://www.excelbanter.com/excel-worksheet-functions/180684-using-variable-cell-references-excel-eg-%5Bb42%5D-instead-a7.html)

GlennC

Using variable cell references in Excel? eg A[B42] instead of A7
 
How would I do the following? Say cell B42 has a 7 in it. So I then want to
reference this element of column A, therefore A7. How would I do it?
Effectively referencing A[B42]. Thanks in advance.

T. Valko

Using variable cell references in Excel? eg A[B42] instead of A7
 
One way:

=INDEX(A:A,B42)


--
Biff
Microsoft Excel MVP


"GlennC" wrote in message
...
How would I do the following? Say cell B42 has a 7 in it. So I then want
to
reference this element of column A, therefore A7. How would I do it?
Effectively referencing A[B42]. Thanks in advance.





All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com