Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gkaste
 
Posts: n/a
Default Check if a number exists in a range?


Is there any way (hopefully easy, no code) to check if a number exists
in a range?

For example, A1 to A5 contains the numbers 1, 2, 3, 4, 5. I want to
check if range A1:A5 contains, for example 2. Just have a true or
false return.


Thanks!


--
gkaste
------------------------------------------------------------------------
gkaste's Profile: http://www.excelforum.com/member.php...o&userid=24525
View this thread: http://www.excelforum.com/showthread...hreadid=386847

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=COUNTIF(A1:A5,2) 0

In article ,
gkaste wrote:

Is there any way (hopefully easy, no code) to check if a number exists
in a range?

For example, A1 to A5 contains the numbers 1, 2, 3, 4, 5. I want to
check if range A1:A5 contains, for example 2. Just have a true or
false return.


Thanks!

  #3   Report Post  
gkaste
 
Posts: n/a
Default


Thanks! It was even simpler than I thought.


--
gkaste
------------------------------------------------------------------------
gkaste's Profile: http://www.excelforum.com/member.php...o&userid=24525
View this thread: http://www.excelforum.com/showthread...hreadid=386847

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
How do I have a formula check if a value occurs within a range? afgncaap Excel Worksheet Functions 3 June 1st 05 06:44 PM
check occurrence of items in a range Jack Sons Excel Worksheet Functions 9 February 21st 05 08:37 AM
Histograms: how change number of bins [email protected] Excel Discussion (Misc queries) 2 January 31st 05 02:07 AM
I WANT TO SET PRINT RANGE TO NUMBER OF COLUMNS ckbusia Setting up and Configuration of Excel 2 January 20th 05 07:47 PM
index to a range of cells Frank Kabel Excel Worksheet Functions 0 October 27th 04 05:39 PM


All times are GMT +1. The time now is 03:48 AM.

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"