B
Bruce Tharp
I have a workbook that uses index that have worked well. I now have to index
and chose a named range based on the value of a cell. I'm having a tough
time understanding how to get the index to assign the correct range based on
the cell value.
=INDEX(Matrix!$A$2:$F$6,IF(HCS!D3<=Matrix!$A$3,2,IF(HCS!D3<=Matrix!$A$4,3,IF(HCS!D3<=Matrix!$A$5,4,IF(HCS!D3>=Matrix!$A$6,5,0)))),IF(HCS!E3=1,2,IF(HCS!E3=2,3,IF(HCS!E3=3,4,IF(HCS!E3=4,5,IF(HCS!E3=5,6,0))))))/10000
The above works great.
Now I need to change the "Matrix!" to change depending on what the value in
the cell $C2 changes to. ie: Matrix or TNP, or any of 12 other options.
There is a range matching the valuse of each possible selection in the cells
in column C.
Any help?
and chose a named range based on the value of a cell. I'm having a tough
time understanding how to get the index to assign the correct range based on
the cell value.
=INDEX(Matrix!$A$2:$F$6,IF(HCS!D3<=Matrix!$A$3,2,IF(HCS!D3<=Matrix!$A$4,3,IF(HCS!D3<=Matrix!$A$5,4,IF(HCS!D3>=Matrix!$A$6,5,0)))),IF(HCS!E3=1,2,IF(HCS!E3=2,3,IF(HCS!E3=3,4,IF(HCS!E3=4,5,IF(HCS!E3=5,6,0))))))/10000
The above works great.
Now I need to change the "Matrix!" to change depending on what the value in
the cell $C2 changes to. ie: Matrix or TNP, or any of 12 other options.
There is a range matching the valuse of each possible selection in the cells
in column C.
Any help?