#1   Report Post  
Excel GuRu
 
Posts: n/a
Default Between function

Is there a function in Excel that will determine whether a cell value is
between x and y? I can't find one.

I'd like to write an "IF" formula that returns a certain result if the
value is between 1 and 100 and a different result if it isn't.

Please let me know the proper syntax of the "Between" function if you can.
  #2   Report Post  
X_HOBBES
 
Posts: n/a
Default

Well, sort of... it's not a dedicated 'between' function, but this is how:

=IF(AND(B11, B1<100), TrueValueHere, FalseValueHere)

where B1 is the cell you're looking at. You probably want it to be
inclusive of the 1 and 100, so it might need to be like this:

=IF(AND(B1=1, B1<=100), TrueValueHere, FalseValueHere)

X_HOBBES




"Excel GuRu" wrote in message
...
Is there a function in Excel that will determine whether a cell value is
between x and y? I can't find one.

I'd like to write an "IF" formula that returns a certain result if the
value is between 1 and 100 and a different result if it isn't.

Please let me know the proper syntax of the "Between" function if you can.



  #3   Report Post  
Jonathan Cooper
 
Posts: n/a
Default

=if(and(a1=1, a1<=10),"good response","bad response")

"Excel GuRu" wrote:

Is there a function in Excel that will determine whether a cell value is
between x and y? I can't find one.

I'd like to write an "IF" formula that returns a certain result if the
value is between 1 and 100 and a different result if it isn't.

Please let me know the proper syntax of the "Between" function if you can.

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
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM


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