Excel Tip: How do you create a dynamic reference to a cell and retrieve it’s value

I stumbled across a handy function in Excel today – Indirect(). Basically, it allows you to convert a string into a cell reference. Typically, in excel, if you want the value of a particular cell (say A5), you use the following:


However, indirect allows you to refer to the same cell, but as a string

=INDIRECT("A" & "5")

This enables you do to some pretty cool things, like let the user choose which column they want to sum:

Example of using Indirect

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: