I am trying to make the tab name a variable for formals and am having an issue. Excel reads it as a external link but I am referring to tabs in the same worksheet. Example
=IF(ISNA(HLOOKUP(M$2,Freeport4!$C$2:$BB$12,7,FALSE)),0,HLOOKUP(M$2,Freeport4!$C$2:$BB$12,7,FALSE))
I want something like this.
=IF(ISNA(HLOOKUP(M$2,[$C1]!$C$2:$BB$12,7,FALSE)),0,HLOOKUP(M$2,,[$C1]!$C$2:$BB$12,7,FALSE))
Were [$c1] is the reference to a cell on the current tab that has the name of the tab I want the Hlookup refer to. I tried this and excel wanted to create a link variable I have to set every single time I open the file. It does not refer to the cell. Each tab is the same set-up so the cells I refer to would be the same in each tab. I really don't want to use an array.
=IF(ISNA(HLOOKUP(M$2,Freeport4!$C$2:$BB$12,7,FALSE)),0,HLOOKUP(M$2,Freeport4!$C$2:$BB$12,7,FALSE))
I want something like this.
=IF(ISNA(HLOOKUP(M$2,[$C1]!$C$2:$BB$12,7,FALSE)),0,HLOOKUP(M$2,,[$C1]!$C$2:$BB$12,7,FALSE))
Were [$c1] is the reference to a cell on the current tab that has the name of the tab I want the Hlookup refer to. I tried this and excel wanted to create a link variable I have to set every single time I open the file. It does not refer to the cell. Each tab is the same set-up so the cells I refer to would be the same in each tab. I really don't want to use an array.