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

How do I write a vlookup that works for n/a

IF(F45=--#N/A;1;0)

Above one does not work

br
sverre
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default correction-should be IF with na not vlookup

Sorry, wrong of me....

Below does not work when there is na. Can I correct it?

=IF(--F8="#N/A";1;0)

f8 is by the way a Vlookup that has catched a number.

sverre


br
sverre

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default correction-should be IF with na not vlookup

Use the ISNA() function to test for #NA

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"sverre" wrote in message ...
| Sorry, wrong of me....
|
| Below does not work when there is na. Can I correct it?
|
| =IF(--F8="#N/A";1;0)
|
| f8 is by the way a Vlookup that has catched a number.
|
| sverre
|
|
| br
| sverre


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default correction-should be IF with na not vlookup

Try this:

=IF(ISNA(F8);1;0)
or
=--ISNA(F8)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"sverre" wrote:

Sorry, wrong of me....

Below does not work when there is na. Can I correct it?

=IF(--F8="#N/A";1;0)

f8 is by the way a Vlookup that has catched a number.

sverre


br
sverre

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default correction-should be IF with na not vlookup

Yes
Works fine.
Thanks
Sverre

"Ron Coderre" skrev:

Try this:

=IF(ISNA(F8);1;0)
or
=--ISNA(F8)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"sverre" wrote:

Sorry, wrong of me....

Below does not work when there is na. Can I correct it?

=IF(--F8="#N/A";1;0)

f8 is by the way a Vlookup that has catched a number.

sverre


br
sverre

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
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 05:09 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"