Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default recognising if a number is in a list

Hi
I have a list of numbers in cells A2:A20, I am entering numbers into
B5 and am looking for a formula (in B6) that will tell me (yes/no) if
the number is in the list. Can anybody please help.
Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default recognising if a number is in a list

try this formula and see if it works

=IF(SUMPRODUCT((A2:A20=B5)*A2:A20)=0,"Not in list","In list")

--


Gary


wrote in message
ps.com...
Hi
I have a list of numbers in cells A2:A20, I am entering numbers into
B5 and am looking for a formula (in B6) that will tell me (yes/no) if
the number is in the list. Can anybody please help.
Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default recognising if a number is in a list

Paul,

Type the below code in the cell B6.

=IF(COUNTIF(A2:A20,B5)0,"Yes","No")

Regards,
Sriram

" wrote:

Hi
I have a list of numbers in cells A2:A20, I am entering numbers into
B5 and am looking for a formula (in B6) that will tell me (yes/no) if
the number is in the list. Can anybody please help.
Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 298
Default recognising if a number is in a list

=vlookup(b5,a:a,false)

will enable you to add more and more numbers to col a

Rich


" wrote:

Hi
I have a list of numbers in cells A2:A20, I am entering numbers into
B5 and am looking for a formula (in B6) that will tell me (yes/no) if
the number is in the list. Can anybody please help.
Thanks


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
Recognising dates pre-1900 Karen H Excel Discussion (Misc queries) 14 May 4th 09 11:37 AM
SUMPRODUCT not recognising dates Del[_2_] Excel Worksheet Functions 6 March 21st 07 07:30 PM
recognising if a number is in a list [email protected] Excel Programming 0 August 28th 06 04:48 AM
VLookup not recognising numbers Doug Excel Worksheet Functions 7 May 16th 05 04:05 PM
Recognising '0.00' Stuart[_5_] Excel Programming 2 August 19th 03 03:56 PM


All times are GMT +1. The time now is 11:20 AM.

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"