Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default (V)LOOKUP question

A simple task that I just can't get to work...

I have a simmple table in which I enter a number in a cell. I then
want to LOOKUP this number and if it matches what I am looking for I
want to return "1" if not return "0"

eg

A B
636 1
658 0
659 0
624 1
632 0

using the above table I want to look up the numbers in column A in a
seperate table and if it in the lookup table, return "1" if not "0"
the lookup table has

624 1
636 1
637 1
660 1

I got Vlookup to work but if the number is not in my lookup table I
get an #N/A returned which I don't want


Any suggestions would be helpfull or a better idea I'd br gratefull

G..
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default (V)LOOKUP question

Hy G..

try following:

=if(iserror(YOURVLOOKUPFORMULA),0,1)

hth
Carlo

On Jan 17, 9:55*am, wrote:
A simple task that I just can't get to work...

I have a simmple table in which I enter a number in a cell. I then
want to LOOKUP this number and if it matches what I am looking for I
want to return "1" if not *return "0"

eg

A * * * B
636 * * 1
658 * * 0
659 * * 0
624 * * 1
632 * * 0

using the above table I want to look up the numbers in column A in a
seperate table and if it in the lookup table, return "1" if not "0"
the lookup table has

624 * * 1
636 * * 1
637 * * 1
660 * * 1

I got Vlookup to work but if the number is not in my lookup table I
get an #N/A returned which I don't want

Any suggestions would be helpfull or a better idea I'd br gratefull

G..


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default (V)LOOKUP question

=(COUNTIF(LookupTable,A1)0)+0


" wrote:

A simple task that I just can't get to work...

I have a simmple table in which I enter a number in a cell. I then
want to LOOKUP this number and if it matches what I am looking for I
want to return "1" if not return "0"

eg

A B
636 1
658 0
659 0
624 1
632 0

using the above table I want to look up the numbers in column A in a
seperate table and if it in the lookup table, return "1" if not "0"
the lookup table has

624 1
636 1
637 1
660 1

I got Vlookup to work but if the number is not in my lookup table I
get an #N/A returned which I don't want


Any suggestions would be helpfull or a better idea I'd br gratefull

G..

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default (V)LOOKUP question

Thanks all,

I will give them all a go just for my edification.

Should be able to get one to work :)



G..
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
Yet another lookup question diaare Excel Worksheet Functions 2 May 11th 07 10:20 PM
Question on Lookup CJN Excel Discussion (Misc queries) 4 March 6th 07 10:58 PM
LOOKUP Question [again!] shakey1181 Excel Discussion (Misc queries) 5 May 31st 06 05:33 PM
Lookup Question Barb Reinhardt Excel Worksheet Functions 1 May 17th 06 03:13 PM
Lookup Question Mackay 1979 Excel Worksheet Functions 2 February 19th 05 01:11 PM


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