I know how to use the indirect function and how to name table ranges, but is it possible to combine these two? Because in defining the table range, the tab/worksheet name is included. If the range is the same on each tab, is it possible to create a named range that encompasses the range on select sheets?
This is what I am using now:
IF(ISERROR(HLOOKUP($A3,INDIRECT("'[nms2130.xls]" & $B3 & "'!9:11"),2,FALSE)),HLOOKUP($A3,INDIRECT("'[nms2130.xls]" & $B3 & "'!42:46"),2,FALSE),HLOOKUP($A3,INDIRECT("'[nms2130.xls]" & $B3 & "'!9:11"),2,FALSE))
$B3 is the tab name, which changes.
The problem is that when a new row is added, the formula continues to search in ranges 9:11 & 42:46 instead of 9:12 & 42:48(because the row is also added in between 42:46).
I have the same problem in the formula below:
IF(($A$2="o")*(INDEX(INDIRECT("'[nms2130.xls]" & $A$1 & "'!$c$27:$iv$27"),1,ROWS($4:4))>0),INDEX(INDIRECT("'[nms2130.xls]" & $A$1 & "'!$c$9:$iv$9"),1,ROWS($4:4)),IF(($A$2="c")*(INDEX(INDIRECT("'[nms2130.xls]" & $A$1 & "'!$c$27:$iv$27"),1,ROWS($4:4))<0),INDEX(INDIRECT("'[nms2130.xls]" & $A$1 & "'!$c$9:$iv$9"),1,ROWS($4:4))," "))
Any help would be greatly appreciated.
Bookmarks