ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Dynamic Range Within INDEX (https://www.excelbanter.com/excel-discussion-misc-queries/235783-dynamic-range-within-index.html)

BugOnPoint

Dynamic Range Within INDEX
 
I would like to set up the use if the INDEX fcn so that elements of the range
can be set based on the values in specified cells. Sort of like this:

=INDEX($C[value1]:$L[value2],A3,B3)

where value1 and value2 are the numeric value of specified cells, say C1 and
D1.

I suspect the use of OFFSET is involved, but I can't quite figure out the
syntax.
Any suggestions appreciated.

Thanks

T. Valko

Dynamic Range Within INDEX
 
Try something like this:

A1 = value1
B1 = value2

=INDEX(INDEX(C:C,A1):INDEX(L:L,B1),A3,B3)

--
Biff
Microsoft Excel MVP


"BugOnPoint" wrote in message
...
I would like to set up the use if the INDEX fcn so that elements of the
range
can be set based on the values in specified cells. Sort of like this:

=INDEX($C[value1]:$L[value2],A3,B3)

where value1 and value2 are the numeric value of specified cells, say C1
and
D1.

I suspect the use of OFFSET is involved, but I can't quite figure out the
syntax.
Any suggestions appreciated.

Thanks




BugOnPoint

Dynamic Range Within INDEX
 
I can see how that would work, thanks. I also dig a bit deeper and figured
out the use of OFFSET within Index - so now I have two ways to do it - cool!

"T. Valko" wrote:

Try something like this:

A1 = value1
B1 = value2

=INDEX(INDEX(C:C,A1):INDEX(L:L,B1),A3,B3)

--
Biff
Microsoft Excel MVP


"BugOnPoint" wrote in message
...
I would like to set up the use if the INDEX fcn so that elements of the
range
can be set based on the values in specified cells. Sort of like this:

=INDEX($C[value1]:$L[value2],A3,B3)

where value1 and value2 are the numeric value of specified cells, say C1
and
D1.

I suspect the use of OFFSET is involved, but I can't quite figure out the
syntax.
Any suggestions appreciated.

Thanks





T. Valko

Dynamic Range Within INDEX
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"BugOnPoint" wrote in message
...
I can see how that would work, thanks. I also dig a bit deeper and figured
out the use of OFFSET within Index - so now I have two ways to do it -
cool!

"T. Valko" wrote:

Try something like this:

A1 = value1
B1 = value2

=INDEX(INDEX(C:C,A1):INDEX(L:L,B1),A3,B3)

--
Biff
Microsoft Excel MVP


"BugOnPoint" wrote in message
...
I would like to set up the use if the INDEX fcn so that elements of the
range
can be set based on the values in specified cells. Sort of like this:

=INDEX($C[value1]:$L[value2],A3,B3)

where value1 and value2 are the numeric value of specified cells, say
C1
and
D1.

I suspect the use of OFFSET is involved, but I can't quite figure out
the
syntax.
Any suggestions appreciated.

Thanks








All times are GMT +1. The time now is 08:18 PM.

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