#1   Report Post  
J Shrimps, Jr.
 
Posts: n/a
Default In between

Is there no "between" function like Access in Excel?
Need to determine if a value is between two sets of
values.
Formula below is what I'm using
from Walkenbach's book, displaying
the number 1 if the value in cell M42 does
not fall within values in cells M46, M50
M52 and M53.
=IF(AND(M42M46,M42M50),1,
IF(AND(M42<M46,M42<M50),1,
IF(AND(M42M52,M42M53),1,
IF(AND(M42<M52,M42<M53),1))))
Seems a bit long just to check if a value
falls between two other sets of values...


  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Somewhat shorter:

=IF((M42<M46)+(M42M50)+(M42<M52)+(M42M53)1,1)

HTH
Jason
Atlanta, GA

-----Original Message-----
Is there no "between" function like Access in Excel?
Need to determine if a value is between two sets of
values.
Formula below is what I'm using
from Walkenbach's book, displaying
the number 1 if the value in cell M42 does
not fall within values in cells M46, M50
M52 and M53.
=IF(AND(M42M46,M42M50),1,
IF(AND(M42<M46,M42<M50),1,
IF(AND(M42M52,M42M53),1,
IF(AND(M42<M52,M42<M53),1))))
Seems a bit long just to check if a value
falls between two other sets of values...


.

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



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