I have cells in one sheet that when using this formula, looks up values in another sheet called alldata. alldata is linked to an access database.
I am using this formula
This works fine.
I would like to add another condition.
In the alldata sheet I have a cell called period ending. In this example I have 007 in that cell.
I would only like to return the value for the formula above if the period at the top of the column is less than the period ending in the alldata cell. If that is false, to return a value from elsewhere on the same sheet.
I tried this;
I am getting a too many arguments error. I think it has to do with the second IF(ISERROR portion of the formula but I can't figure out how to correct it. I thought you could nest IF statements but I think the ISERROR is messing that up.
Any suggestions?
In advance, thanks for your help.
I am using this formula
Code:
=IF(ISERROR(VLOOKUP((CONCATENATE($A$3,$A11,D$6)),alldata!$A$3
:$D$5001,4,FALSE)),0,VLOOKUP((CONCATENATE($A$3,$A11,D$6)),
alldata!$A$3:$D$5001,4,FALSE))
This works fine.
I would like to add another condition.
In the alldata sheet I have a cell called period ending. In this example I have 007 in that cell.
I would only like to return the value for the formula above if the period at the top of the column is less than the period ending in the alldata cell. If that is false, to return a value from elsewhere on the same sheet.
I tried this;
Code:
IF(D6<alldata!$A$3,IF(ISERROR(VLOOKUP((CONCATENATE($A$3,$A11
,D$6)),alldata!$A$3:$D$5000,4,FALSE)),0,VLOOKUP((CONCATENATE
($A$3,$A11,D$6)),alldata!$A$3:$D$5000,4,FALSE),AG11)))
I am getting a too many arguments error. I think it has to do with the second IF(ISERROR portion of the formula but I can't figure out how to correct it. I thought you could nest IF statements but I think the ISERROR is messing that up.
Any suggestions?
In advance, thanks for your help.