Solved

ISNA(Index

Posted on 2011-09-15
2
214 Views
Last Modified: 2012-06-27
Experts,
I have run across a spreadsheet that uses the Isna(Index function. I'm not familiar with this function and was wondering if a vlookup could be used in place of? Here's an example:

=IF(ISNA(INDEX('C:\Users\ffreese\AppData\Local\Microsoft\Windows\Temporary Internet Files\OLK1FC4\[Summary.xls]MS AUG'!$A$1:$G$1000,MATCH($A5,'C:\Users\ffreese\AppData\Local\Microsoft\Windows\Temporary Internet Files\OLK1FC4\[Summary.xls]MS AUG'!$A$1:$A$1000,),MATCH($A$1,'C:\Users\ffreese\AppData\Local\Microsoft\Windows\Temporary Internet Files\OLK1FC4\[Summary.xls]MS AUG'!$A$1:$G$1,))),0,INDEX('C:\Users\ffreese\AppData\Local\Microsoft\Windows\Temporary Internet Files\OLK1FC4\[Summary.xls]MS AUG'!$A$1:$G$1000,MATCH($A5,'C:\Users\ffreese\AppData\Local\Microsoft\Windows\Temporary Internet Files\OLK1FC4\[Summary.xls]MS AUG'!$A$1:$A$1000,),MATCH($A$1,'C:\Users\ffreese\AppData\Local\Microsoft\Windows\Temporary Internet Files\OLK1FC4\[Summary.xls]MS AUG'!$A$1:$G$1,))*-1)+'#21TL'!L5

This just looks like too much work
0
Comment
Question by:Frank Freese
2 Comments
 
LVL 32

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 36544295
The majority of the text in that formula is the file path for a linked file.

The other reason for the lengthy text is becuase of the lack of a better error evaluation formula in xl2003.

The formula is saying IF the results of the formula give an NA error then zero else do the formula.

xl2007 has got round this with the IFERROR function, you only need to specify the formula once and the value if an error.

I have just had a similar question answered that was in fact the other way round. I had literally tens of thousands of vlookup formulae in a workbook creating a cost model for an 18 month weekly forecast. The filesize is 16Mb and it was taking at least 1 minute to recalculate.

I have now changed the lookups for INDEX using MATCH to identify the row and the calculation time isn't even noticeable.

INDEX does basically the same as a lookup:

=INDEX(Array,Row,Column)

Array - block of data same as would use for lookup
Row - the row within the array that the data to be found is on
Column - Offset like lookup

I have replaced the Row with a MATCH formula to identify the row number from the column which would normally have been used for a lookup and then column is variable.

HTH
Rob H
0
 

Author Closing Comment

by:Frank Freese
ID: 36544328
thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA Help 18 44
And OR formula 5 22
Why do I often "Too many different cell formats" error message in Excel2010? 2 23
Excel Formula 16 44
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question