Solved

ISNA(Index

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

863 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

25 Experts available now in Live!

Get 1:1 Help Now