Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=--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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
#NUM! being returned instead of 0 or blank | Excel Worksheet Functions | |||
need to know how to get the sum of right product returned | Excel Worksheet Functions | |||
Using the returned value of a function | New Users to Excel | |||
Result not being returned | Excel Worksheet Functions | |||
#Value! Returned ? | Excel Worksheet Functions |