Hi All-
I've built a workbook with a few different VLOOKUPs and named arrays in it. Everything works fine, regardless of machine, as long as its running Excel 365. However, when using Excel 2010, I'm getting a #NAME error.
Interestingly, I have two very similar formulas in different cells. One is getting the #NAME error, the other is not.
Rather than posting the entire workbook (which would require quite a bit of work to remove proprietary information), see the simplistic representation below:
CELL D5: "Select a color to show a list of fruit that match:"
CELL E5: is defaulted to "RED", but uses Data Validation to limit to Red, Yellow, Green
There are a few handler cells and rows in between, but CELL D15 is the problem cell. When you first open the document and the default RED selection is in E5, it correctly shows "Apple". However, if you change E5 to anything (including changing it back to "RED", it produces a #NAME error. Here's the formula:
=IF(VLOOKUP($D$8,INDIRECT($D$7),3,FALSE)=0,"ERROR",VLOOKUP($D$8,INDIRECT($D$7)3,FALSE))
The same selection in cell E5 also updates cell D17 with a slightly different formula. This formula works with no problems at all. It is:
=INDEX(INDEX(Table1,0,1),MATCH($E$5,INDEX(Table1,0,4),0))
Again, this all works fine in Excel 365, and the issues are in Excel 2010. I don't think that either VLOOKUP or INDIRECT are so new to Excel that they wouldn't work in 2010, but that's my best guess. Unfortunately, I need to distribute this tool to external customers and I've found that many of them don't have the latest version of Excel. Any help to get this working on older versions would be greatly appreciated!
Bookmarks