Hi,
I am using a heap of INDIRECT statements on a Reconciliation tab of my workbook, this makes the updating of these formula very easy by just changing the cell data to a different tab name to alter my lookups. The problem I am trying to adress is ...... is there a way to check that the data entered into the indirect cell is an actual tab name?
Example.
Tab names
Reconciliation, Apr10, Mar10, Feb10, Jan10, Dec09, etc, etc
In the Reconciliation tab in cell A1 I have "Apr10", and am using the following formula for my lookups =IFERROR(IFERROR(VLOOKUP(A9,INDIRECT("'" & $A$1 & "'!$A$2:$G$37"),4,FALSE),VLOOKUP(A9,'NRV 2YR'!$A$1:$G$102,4,FALSE)),0)
The idea of this is that if the lookup doesn't exist in the first lookup then it reverts to older costing data, but if the user inputs the data in cell A1 as "APR 10" instead of "APR10" then it will revert to the older data just because the sheet name does not exist.
How do I verify that the data entered into cell A1 is an actual tab in my work book.
I am using a heap of INDIRECT statements on a Reconciliation tab of my workbook, this makes the updating of these formula very easy by just changing the cell data to a different tab name to alter my lookups. The problem I am trying to adress is ...... is there a way to check that the data entered into the indirect cell is an actual tab name?
Example.
Tab names
Reconciliation, Apr10, Mar10, Feb10, Jan10, Dec09, etc, etc
In the Reconciliation tab in cell A1 I have "Apr10", and am using the following formula for my lookups =IFERROR(IFERROR(VLOOKUP(A9,INDIRECT("'" & $A$1 & "'!$A$2:$G$37"),4,FALSE),VLOOKUP(A9,'NRV 2YR'!$A$1:$G$102,4,FALSE)),0)
The idea of this is that if the lookup doesn't exist in the first lookup then it reverts to older costing data, but if the user inputs the data in cell A1 as "APR 10" instead of "APR10" then it will revert to the older data just because the sheet name does not exist.
How do I verify that the data entered into cell A1 is an actual tab in my work book.