Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sai Sai is offline
external usenet poster
 
Posts: 4
Default #N/A value is returned

I am looking for a number in a column and the result I want is either 0 or 1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default #N/A value is returned

=--ISNUMBER(MATCH(A1,B1:B10,0))


--
Regards,

Peo Sjoblom



"Sai" wrote in message
...
I am looking for a number in a column and the result I want is either 0 or
1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.



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

Assume source numbers are running in A1 down,
and you have listed the numbers to be checked in B1 down

Place in C1:
=IF(B1="","",--ISNUMBER(MATCH(B1,A:A,0)))
Copy down as far as required.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Sai" wrote:
I am looking for a number in a column and the result I want is either 0 or 1.
if number is there i want 1 and if not 0.
I am trying with vlookup function and it is not working.
Can anybody help please.
Regards
sai.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sai Sai is offline
external usenet poster
 
Posts: 4
Default #N/A value is returned

I sloved it. found the solution from one of the posts.

thanks.

"Sai" wrote:

I am looking for a number in a column and the result I want is either 0 or 1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default #N/A value is returned

Maybe

=IF(ISNA(VLOOKUP(B1,A:A,1,FALSE)),0,1)

Vaya con Dios,
Chuck, CABGx3



"Sai" wrote:

I am looking for a number in a column and the result I want is either 0 or 1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default #N/A value is returned

One way:

=IF(COUNTIF(A:A,35)0,1,0)

Note, 35 is the number to be looked for. Change as needed or use a cell
reference =IF(COUNTIF(A:A,A2)0,1,0)

HTH,
Paul


"Sai" wrote in message
...
I am looking for a number in a column and the result I want is either 0 or
1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default #N/A value is returned

Ok...So what solution did you go with?

"Sai" wrote in message
...
I sloved it. found the solution from one of the posts.

thanks.

"Sai" wrote:

I am looking for a number in a column and the result I want is either 0
or 1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 146
Default #N/A value is returned

Assuming the number you're looking for is in A1 and your range of values is
in B1 through B10, in any order, then this will work:
=IF(ISNA(MATCH(A1,B1:B10,0)),0,1)

If the number in A1 matches exactly one of the numbers in B1 through B10
the MATCH function will return the relative position of the number, 1
through 10, in this case or the error value #N/A if the number in A1 is not
found in B1 through B10. As MATCH in this example is looking for an exact
match as specified by the third parameter in the MATCH function being 0, the
numbers in B1 though B10 may be in any order and there may be duplicate
numbers. If the number in A1 is one of the duplicates, MATCH will return the
relative position of the first duplicate.

"Sai" wrote in message
...
I am looking for a number in a column and the result I want is either 0 or
1.

if number is there i want 1 and if not 0.

I am trying with vlookup function and it is not working.

Can anybody help please.

Regards
sai.



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
#NUM! being returned instead of 0 or blank The Countryman Excel Worksheet Functions 2 January 5th 07 05:22 PM
need to know how to get the sum of right product returned farmer Excel Worksheet Functions 5 March 7th 06 01:10 PM
Using the returned value of a function adombrowski New Users to Excel 1 December 21st 05 07:01 AM
Result not being returned Pat Excel Worksheet Functions 8 February 19th 05 05:45 PM
#Value! Returned ? John Excel Worksheet Functions 2 December 6th 04 08:55 PM


All times are GMT +1. The time now is 07:40 PM.

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"