PC Review


Reply
Thread Tools Rate Thread

Correct #N/A Value

 
 
winnie123
Guest
Posts: n/a
 
      18th Feb 2009
Hello,

I have created a formula using the threads I have seen and I can not get rid
of the #N/A value. The formula works ok if there is match or if the value of
$c$2 is not in my Sheet1.

Original formula was

=IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))

The #N/A appears when it has found a MATCH but there is only 1 row of data.

I have tried ISNA but my logic is not right, so it returns a value of TRUE.

Here is my revised formula


=IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))))

can you help me correct it?

 
Reply With Quote
 
 
 
 
Max
Guest
Posts: n/a
 
      18th Feb 2009
Try the below (all in one cell, split for easier clarity)
Copy direct from the post, then paste directly into the formula bar:
=IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",
IF(ISNA(MATCH($C$17&"_"&ROW($A2),Sheet1!$F:$F,0)),"",
INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW($A2),Sheet1!$F:$F,0))))

Works ok? Click YES below to celebrate the success
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,000 Files:370 Subscribers:66
xdemechanik
---
"winnie123" wrote:
> I have created a formula using the threads I have seen and I can not get rid
> of the #N/A value. The formula works ok if there is match or if the value of
> $c$2 is not in my Sheet1.
>
> Original formula was
>
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))
>
> The #N/A appears when it has found a MATCH but there is only 1 row of data.
>
> I have tried ISNA but my logic is not right, so it returns a value of TRUE.
>
> Here is my revised formula
>
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0),"
> ",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))))
>
> can you help me correct it?
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      18th Feb 2009
Try

=IF(ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0))),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))

Mike

"winnie123" wrote:

> Hello,
>
> I have created a formula using the threads I have seen and I can not get rid
> of the #N/A value. The formula works ok if there is match or if the value of
> $c$2 is not in my Sheet1.
>
> Original formula was
>
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))
>
> The #N/A appears when it has found a MATCH but there is only 1 row of data.
>
> I have tried ISNA but my logic is not right, so it returns a value of TRUE.
>
> Here is my revised formula
>
>
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0),"
> ",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))))
>
> can you help me correct it?
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      18th Feb 2009
=IF(OR(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),ISNA(MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0))),"",
INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))

--
__________________________________
HTH

Bob

"winnie123" <(E-Mail Removed)> wrote in message
news:A82AC51C-F631-4260-87C4-(E-Mail Removed)...
> Hello,
>
> I have created a formula using the threads I have seen and I can not get
> rid
> of the #N/A value. The formula works ok if there is match or if the value
> of
> $c$2 is not in my Sheet1.
>
> Original formula was
>
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))
>
> The #N/A appears when it has found a MATCH but there is only 1 row of
> data.
>
> I have tried ISNA but my logic is not right, so it returns a value of
> TRUE.
>
> Here is my revised formula
>
>
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0),"
> ",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))))
>
> can you help me correct it?
>



 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      18th Feb 2009
Hi,

I don't suppose it makes a lot of diffferenece but

&"_"&ROW(Sheet1!$A2)

simply returns _2 so there's no need to refer to another sheet

&"_"&ROW($A2),

will do it.

Mike

"Mike H" wrote:

> Try
>
> =IF(ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0))),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))
>
> Mike
>
> "winnie123" wrote:
>
> > Hello,
> >
> > I have created a formula using the threads I have seen and I can not get rid
> > of the #N/A value. The formula works ok if there is match or if the value of
> > $c$2 is not in my Sheet1.
> >
> > Original formula was
> >
> > =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))
> >
> > The #N/A appears when it has found a MATCH but there is only 1 row of data.
> >
> > I have tried ISNA but my logic is not right, so it returns a value of TRUE.
> >
> > Here is my revised formula
> >
> >
> > =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0),"
> > ",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))))
> >
> > can you help me correct it?
> >

 
Reply With Quote
 
winnie123
Guest
Posts: n/a
 
      18th Feb 2009
Thanks very much, it works a treat.

"Max" wrote:

> Try the below (all in one cell, split for easier clarity)
> Copy direct from the post, then paste directly into the formula bar:
> =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",
> IF(ISNA(MATCH($C$17&"_"&ROW($A2),Sheet1!$F:$F,0)),"",
> INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW($A2),Sheet1!$F:$F,0))))
>
> Works ok? Click YES below to celebrate the success
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> Downloads:23,000 Files:370 Subscribers:66
> xdemechanik
> ---
> "winnie123" wrote:
> > I have created a formula using the threads I have seen and I can not get rid
> > of the #N/A value. The formula works ok if there is match or if the value of
> > $c$2 is not in my Sheet1.
> >
> > Original formula was
> >
> > =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))
> >
> > The #N/A appears when it has found a MATCH but there is only 1 row of data.
> >
> > I have tried ISNA but my logic is not right, so it returns a value of TRUE.
> >
> > Here is my revised formula
> >
> > =IF(ISNA(MATCH($C$17,Sheet1!$C:$C,0)),"",ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0),"
> > ",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet1!$F:$F,0)))))
> >
> > can you help me correct it?
> >

 
Reply With Quote
 
Max
Guest
Posts: n/a
 
      18th Feb 2009
Welcome, good to hear.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"winnie123" <(E-Mail Removed)> wrote in message
news:66D617C2-E6EC-4BFF-9BB7-(E-Mail Removed)...
> Thanks very much, it works a treat.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to correct a word and it correct throughout the document ? Bad typer Microsoft Word Document Management 1 24th Apr 2009 03:50 AM
Windows password correct but not correct RedPenguin Windows XP Basics 7 20th Apr 2006 03:13 AM
Windows Password Correct but not correct RedPenguin Windows XP General 5 19th Apr 2006 02:52 AM
Correct date preview correct but printed as #Name? =?Utf-8?B?UnVpIFNhbnRvcw==?= Microsoft Access Reports 1 16th Nov 2004 02:31 PM
I need a reference to the correct resource to correct my problem Scooter Windows XP Performance 1 4th Aug 2003 10:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 PM.