Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Reference to a column under a variable header of a table

Given a table T and headers H1, H2, H3. I know that we can use T[H1] to refer to the column under the header H1 of the table.

Now, I have a cell A10 containing the header such as H1, H2, or H3. I would like to return the column depending the value of A10, does anyone know how to do that?

I tried T[A10], Excel does not accept that.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

=INDIRECT("T["&A10&"]")

More on INDIRECT: indirect

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading