Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Correct #N/A Value

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(She et1!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(INDE X(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet 1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2) ,Sheet1!$F:$F,0)))))

can you help me correct it?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Correct #N/A Value

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(She et1!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(INDE X(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet 1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2) ,Sheet1!$F:$F,0)))))

can you help me correct it?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Correct #N/A Value

Try

=IF(ISNA(INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Shee t1!$A2),Sheet1!$F:$F,0))),"",INDEX(Sheet1!A:A,MATC H($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(She et1!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(INDE X(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet 1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2) ,Sheet1!$F:$F,0)))))

can you help me correct it?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Correct #N/A Value

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

--
__________________________________
HTH

Bob

"winnie123" wrote in message
...
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(She et1!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(INDE X(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet 1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2) ,Sheet1!$F:$F,0)))))

can you help me correct it?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Correct #N/A Value

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(Shee t1!$A2),Sheet1!$F:$F,0))),"",INDEX(Sheet1!A:A,MATC H($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(She et1!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(INDE X(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet 1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2) ,Sheet1!$F:$F,0)))))

can you help me correct it?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 129
Default Correct #N/A Value

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(She et1!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(INDE X(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2),Sheet 1!$F:$F,0),"
",INDEX(Sheet1!A:A,MATCH($C$17&"_"&ROW(Sheet1!$A2) ,Sheet1!$F:$F,0)))))

can you help me correct it?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Correct #N/A Value

Welcome, good to hear.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:23,500 Files:370 Subscribers:66
xdemechanik
---
"winnie123" wrote in message
...
Thanks very much, it works a treat.



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
Getting the correct SUM answer txheart Excel Discussion (Misc queries) 1 April 18th 08 07:05 PM
If with AND - Is this correct? Greg Excel Worksheet Functions 4 March 7th 08 04:01 AM
Linking to correct row Eden397 Excel Discussion (Misc queries) 0 June 25th 07 02:29 PM
If correct, add 1 sparky3883 Excel Worksheet Functions 2 October 11th 05 07:52 PM
if(b2=1,b3,0) is this correct [email protected] Excel Worksheet Functions 2 March 21st 05 08:21 AM


All times are GMT +1. The time now is 09:55 PM.

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

About Us

"It's about Microsoft Excel"