Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Test if a value is in a range of values

I am trying to write a formula that tests a cell value to see if it matches
values in a range of values and returns either true or false. Any help
would be greatly appreciated.

Josh
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 492
Default Test if a value is in a range of values

With the cell to test in A1 and the range to test if it matches in B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it matches
values in a range of values and returns either true or false. Any help
would be greatly appreciated.

Josh


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Test if a value is in a range of values

Try this:

=Countif(A1:A100,25)0


--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it

matches
values in a range of values and returns either true or false. Any help
would be greatly appreciated.

Josh


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 857
Default Test if a value is in a range of values

Hi Josh,

=AND(A1=50,A1<=100)

This returns TRUE if the value of A1 lies between 50 and 100, Otherwise it
returns FALSE.

Cheers,
Shane

"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it
matches
values in a range of values and returns either true or false. Any help
would be greatly appreciated.

Josh


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Test if a value is in a range of values

In that case you don't need the IF(...,TRUE,FALSE), Alan.

The condition automatically returns a Boolean, so you'd get the same result
from =COUNTIF(B1:B50,A1)0
--
David Biddulph

"Alan" wrote in message
...
With the cell to test in A1 and the range to test if it matches in B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it
matches
values in a range of values and returns either true or false. Any help
would be greatly appreciated.

Josh






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Test if a value is in a range of values

Alan:

Thanks this works great. Thanks everyone for your suggestions.

Josh

"Alan" wrote:

With the cell to test in A1 and the range to test if it matches in B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it matches
values in a range of values and returns either true or false. Any help
would be greatly appreciated.

Josh



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 492
Default Test if a value is in a range of values

That's good, but what David said is correct, it can be shortened to
=COUNTIF(B1:B50,A1)0
Regards,
Aln.

"jfrick" wrote in message
...
Alan:

Thanks this works great. Thanks everyone for your suggestions.

Josh

"Alan" wrote:

With the cell to test in A1 and the range to test if it matches in
B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it
matches
values in a range of values and returns either true or false. Any
help
would be greatly appreciated.

Josh




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Test if a value is in a range of values

Am I missing something... isn't that what he posted?

Rick


"Alan" wrote in message
...
That's good, but what David said is correct, it can be shortened to
=COUNTIF(B1:B50,A1)0
Regards,
Aln.

"jfrick" wrote in message
...
Alan:

Thanks this works great. Thanks everyone for your suggestions.

Josh

"Alan" wrote:

With the cell to test in A1 and the range to test if it matches in
B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it
matches
values in a range of values and returns either true or false. Any
help
would be greatly appreciated.

Josh




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Test if a value is in a range of values

Really? ... no kidding!<bg
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Alan" wrote in message
...
That's good, but what David said is correct, it can be shortened to
=COUNTIF(B1:B50,A1)0
Regards,
Aln.

"jfrick" wrote in message
...
Alan:

Thanks this works great. Thanks everyone for your suggestions.

Josh

"Alan" wrote:

With the cell to test in A1 and the range to test if it matches in
B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it
matches
values in a range of values and returns either true or false. Any
help
would be greatly appreciated.

Josh




  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 492
Default Test if a value is in a range of values

I was just acknowledging that I made a mistake,
Sorry,
"Rick Rothstein (MVP - VB)" wrote in
message ...
Am I missing something... isn't that what he posted?

Rick


"Alan" wrote in message
...
That's good, but what David said is correct, it can be shortened to
=COUNTIF(B1:B50,A1)0
Regards,
Aln.

"jfrick" wrote in message
...
Alan:

Thanks this works great. Thanks everyone for your suggestions.

Josh

"Alan" wrote:

With the cell to test in A1 and the range to test if it matches in
B1:B50,
=IF(COUNTIF(B1:B50,A1)0,TRUE,FALSE)
Regards,
Aln.
"jfrick" wrote in message
...
I am trying to write a formula that tests a cell value to see if it
matches
values in a range of values and returns either true or false. Any
help
would be greatly appreciated.

Josh





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
Test within a range? JC Excel Worksheet Functions 3 May 25th 07 03:41 AM
Test if the range is empty dan Excel Discussion (Misc queries) 6 December 21st 06 03:59 PM
Test if CELL is in RANGE Vaughan Excel Worksheet Functions 12 November 19th 06 02:48 PM
How I set up as logical test if my range has to be >=2 but <5 nsnjlacm Excel Discussion (Misc queries) 2 May 7th 05 08:04 PM
logical test - within a range esslingerdav Excel Worksheet Functions 4 November 17th 04 03:13 PM


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