Returning true if a number fits between a range

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hi,

I need 2 test whether a number fits between 2 numbers.
For example, if A1 contain 10, A2 contains 2, and A3 (my
test cell) contains 6 then the test displayed in A4 will
show True (or False). The values of A1-A3 will constantly
change.
Tried many ways to do this but can't figure out the logic.
Can someone help

Tony
 
=And(Min(A1,A2)<A3,Max(A1,A2)>A3)


if the number can equal either of the values then
=And(Min(A1,A2)<=A3,Max(A1,A2)>=A3)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top