Using a between function

H

HB

Hi

I need the following formula
=If(a1 between b1 and c1,"OK","Fault")
What operators should I use?
Thanks
HB
 
A

Anon

HB said:
Hi

I need the following formula
=If(a1 between b1 and c1,"OK","Fault")
What operators should I use?
Thanks
HB

=IF(AND(A1>B1,A1<C1),"OK","Fault")

You may prefer A1>=B1 and/or A1<=C1. It depends on your application.
 

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

Top