Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Using INDEX and it Returns a #N/A

I am using the Function INDEX and MATCH. It works. It does not work well when
you want to add up the results but the result returns a #N/A. I would like to
return a Zero instead on a #N/A. Here is my Formula that I am using.

=INDEX(Detail!$F$2:$F$1292,MATCH(1,(Detail!$A$2:$A $1292=Summary!C$5)*(Detail!$G$2:$G$1292=Summary!$A $11),0))

This returns #N/A and I would like it to return a Zero.

Thanks in Advance for any help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Using INDEX and it Returns a #N/A

Here is the answer.


=IF(ISNA(INDEX(Detail!$F$2:$F$1292,MATCH(1,(Detail !$A$2:$A$1292=Summary!R$5)*(Detail!$G$2:$G$1292=Su mmary!$A$10),0))),0,INDEX(Detail!$F$2:$F$1292,MATC H(1,(Detail!$A$2:$A$1292=Summary!R$5)*(Detail!$G$2 :$G$1292=Summary!$A$10),0)))

It works every time.

"Crazyhorse" wrote:

I am using the Function INDEX and MATCH. It works. It does not work well when
you want to add up the results but the result returns a #N/A. I would like to
return a Zero instead on a #N/A. Here is my Formula that I am using.

=INDEX(Detail!$F$2:$F$1292,MATCH(1,(Detail!$A$2:$A $1292=Summary!C$5)*(Detail!$G$2:$G$1292=Summary!$A $11),0))

This returns #N/A and I would like it to return a Zero.

Thanks in Advance for any help.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Using INDEX and it Returns a #N/A

Actually, it's the MATCH part that returns #NA if there is no match,
so you could improve it slightly by having:

=IF(ISNA(MATCH(...)),0,INDEX(...MATCH(...)...))

Hope this helps.

Pete

On Jan 8, 4:52*pm, Crazyhorse
wrote:
Here is the answer.

=IF(ISNA(INDEX(Detail!$F$2:$F$1292,MATCH(1,(Detail !$A$2:$A$1292=Summary!R$5*)*(Detail!$G$2:$G$1292=S ummary!$A$10),0))),0,INDEX(Detail!$F$2:$F$1292,MAT C*H(1,(Detail!$A$2:$A$1292=Summary!R$5)*(Detail!$G $2:$G$1292=Summary!$A$10),0*)))

It works every time.



"Crazyhorse" wrote:
I am using the Function INDEX and MATCH. It works. It does not work well when
you want to add up the results but the result returns a #N/A. I would like to
return a Zero instead on a #N/A. Here is my Formula that I am using.


=INDEX(Detail!$F$2:$F$1292,MATCH(1,(Detail!$A$2:$A $1292=Summary!C$5)*(Detai*l!$G$2:$G$1292=Summary!$ A$11),0))


This returns #N/A and I would like it to return a Zero.


Thanks in Advance for any help.- Hide quoted text -


- Show quoted text -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart axes color index vs font color index [email protected] Charts and Charting in Excel 4 December 7th 06 04:05 PM
cell with value returns that value, empty cell returns zero tamarak Excel Worksheet Functions 2 November 15th 06 11:51 AM
Index with 2 arrays returns error Rasoul Khoshravan Excel Worksheet Functions 2 October 21st 06 05:47 AM
SUM(INDEX(MATCH) for a range returns different result than SUM! [email protected] Excel Worksheet Functions 2 September 22nd 06 08:07 AM
Looking for formula index/match-type that returns an array Tom Excel Worksheet Functions 1 April 1st 05 10:05 PM


All times are GMT +1. The time now is 04:25 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"