Jkaen
Chemical
- Aug 1, 2003
- 43
Hi all,
I am stuck trying to implement a function into excel. The part I am stuck on is using a lookup based on a cells content. I assume I want some use of the indirect function but cant quite make it to work.
The main issue I have is if the cell content of f2 is 1, I want to lookup D5
31, if its 2 then I want to lookup E5:E31 etc.
The array I am trying to enter this change into is:
{=IF(ISERROR(INDEX('Gantt Chart'!$A$5:$AB$31,(SMALL(IF('Gantt Chart'!$D$5:$D$31>0,ROW('Gantt Chart'!$A$5:$A$31)),ROW(1:1)))-4,1)),"",INDEX('Gantt Chart'!$A$5:$AB$31,(SMALL(IF('Gantt Chart'!$D$5:$D$31>0,ROW('Gantt Chart'!$A$5:$A$31)),ROW(1:1)))-4,1))}
The trimmed back spreadsheet is attached.
Can anybody advise how to amend it?
Thanks
I am stuck trying to implement a function into excel. The part I am stuck on is using a lookup based on a cells content. I assume I want some use of the indirect function but cant quite make it to work.
The main issue I have is if the cell content of f2 is 1, I want to lookup D5
The array I am trying to enter this change into is:
{=IF(ISERROR(INDEX('Gantt Chart'!$A$5:$AB$31,(SMALL(IF('Gantt Chart'!$D$5:$D$31>0,ROW('Gantt Chart'!$A$5:$A$31)),ROW(1:1)))-4,1)),"",INDEX('Gantt Chart'!$A$5:$AB$31,(SMALL(IF('Gantt Chart'!$D$5:$D$31>0,ROW('Gantt Chart'!$A$5:$A$31)),ROW(1:1)))-4,1))}
The trimmed back spreadsheet is attached.
Can anybody advise how to amend it?
Thanks