Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Specifying cell targets with text in cells

Status
Not open for further replies.

skeletron

Structural
Joined
Jan 30, 2019
Messages
898
Location
CANADA
This is probably a simple one because I've read bits and pieces of how it's done, but I can't seem to execute it. I've tried using the offset function for a similar effect, but the coding is not as simple as I hoped.

How do you use a cell input as the target location for a formula?

For example:

If I want my OUTPUT cell to find the maximum of B12:H12...
Can I use two input cells somewhere on the sheet to input "B12" and "H12", and then use those text references to define the range in the OUTPUT cell's formula?


The goal is to be able to target the range manually to allow more rapid updating of the sheet.
 
something like this?

Code:
=MAX(INDIRECT(K17):INDIRECT(L17))

where cells k17 and L17 contain the beginning and end of the range required.
 
Ahhh! Yes the Indirect function. Okay. Gonna give it a shot. Thanks guys!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top