Solved

ISNA(Index

Posted on 2011-09-15
2
209 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 31

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now