A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Error Return Value from and INDEX(A:2,MATCH()) function



 
 
Thread Tools Display Modes
  #1  
Old January 26th, 2005, 02:35 PM
BJ
external usenet poster
 
Posts: n/a
Default Error Return Value from and INDEX(A:2,MATCH()) function

Hello,

I am using the following function =IF(INDEX('Page A'!F:F,MATCH('Page
B'!A9,'Mar A'!A:A,0))=#N/A,"",INDEX('Page A'!F:F,MATCH('Page B'!A9,'Page
A'!A:A,0))) and it keeps returning a #N/A when the MATCH() function errors
out, but what I want to show is "" (blank space). Obviously there is
something wrong with my formula but I can't figure it out. If anyone out
there can help me please let me know what I am doing wrong

Thanks!
  #2  
Old January 26th, 2005, 02:47 PM
Tom Hayakawa
external usenet poster
 
Posts: n/a
Default

Try using ISNA instead:
IF(ISNA(INDEX('Page A'!F:F,MATCH('Page B'!A9,'Mar
A'!A:A,0))),,"",INDEX('Page A'!F:F,MATCH('Page B'!A9,'Page
A'!A:A,0)))

That should get you a blank with a return of #N/A. Check out the other IS
functions, too (ISERROR, ISBLANK, ISREF, etc.).

Hope that helps.

Tom Hayakawa

"BJ" wrote:

Hello,

I am using the following function =IF(INDEX('Page A'!F:F,MATCH('Page
B'!A9,'Mar A'!A:A,0))=#N/A,"",INDEX('Page A'!F:F,MATCH('Page B'!A9,'Page
A'!A:A,0))) and it keeps returning a #N/A when the MATCH() function errors
out, but what I want to show is "" (blank space). Obviously there is
something wrong with my formula but I can't figure it out. If anyone out
there can help me please let me know what I am doing wrong

Thanks!

  #3  
Old January 26th, 2005, 02:49 PM
Max
external usenet poster
 
Posts: n/a
Default

Try instead in this form:

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

Error trap for the MATCH(...) part will do
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik atyahoodotcom
----
BJ wrote in message
...
Hello,

I am using the following function =IF(INDEX('Page A'!F:F,MATCH('Page
B'!A9,'Mar A'!A:A,0))=#N/A,"",INDEX('Page A'!F:F,MATCH('Page B'!A9,'Page
A'!A:A,0))) and it keeps returning a #N/A when the MATCH() function errors
out, but what I want to show is "" (blank space). Obviously there is
something wrong with my formula but I can't figure it out. If anyone out
there can help me please let me know what I am doing wrong

Thanks!



  #4  
Old January 26th, 2005, 02:51 PM
Peo Sjoblom
external usenet poster
 
Posts: n/a
Default

I am assuming you have a typo in the formula and Mar A should be Page A (or
if it is a translation that you missed?), however I am going to use Page A


=IF(ISNUMBER(MATCH('Page B'!A9,'Page A'!A:A,0)),INDEX('Page
A'!F:F,MATCH('Page B'!A9,'Page A'!A:A,0)),"")


should work


Regards,

Peo Sjoblom

"BJ" wrote:

Hello,

I am using the following function =IF(INDEX('Page A'!F:F,MATCH('Page
B'!A9,'Mar A'!A:A,0))=#N/A,"",INDEX('Page A'!F:F,MATCH('Page B'!A9,'Page
A'!A:A,0))) and it keeps returning a #N/A when the MATCH() function errors
out, but what I want to show is "" (blank space). Obviously there is
something wrong with my formula but I can't figure it out. If anyone out
there can help me please let me know what I am doing wrong

Thanks!

  #5  
Old January 26th, 2005, 02:59 PM
BJ
external usenet poster
 
Posts: n/a
Default

Thanks all for the Help, I got what I needed.

Cheers!

"Peo Sjoblom" wrote:

I am assuming you have a typo in the formula and Mar A should be Page A (or
if it is a translation that you missed?), however I am going to use Page A


=IF(ISNUMBER(MATCH('Page B'!A9,'Page A'!A:A,0)),INDEX('Page
A'!F:F,MATCH('Page B'!A9,'Page A'!A:A,0)),"")


should work


Regards,

Peo Sjoblom

"BJ" wrote:

Hello,

I am using the following function =IF(INDEX('Page A'!F:F,MATCH('Page
B'!A9,'Mar A'!A:A,0))=#N/A,"",INDEX('Page A'!F:F,MATCH('Page B'!A9,'Page
A'!A:A,0))) and it keeps returning a #N/A when the MATCH() function errors
out, but what I want to show is "" (blank space). Obviously there is
something wrong with my formula but I can't figure it out. If anyone out
there can help me please let me know what I am doing wrong

Thanks!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.