![]() |
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 |
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! |
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 |
All times are GMT +1. The time now is 01:58 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com