Excel help

Redwood

Q-School Graduate
Joined
Mar 18, 2009
Messages
999
Location
Bude and North Cornwall GC
Visit site
Excel gurus,

Does anyone know if this is possible? I'm trying to compare use an IF statement to check a numeric value in a cell and then output to a true\false scenario depending on that value.

The only trouble is I need to use two comparison opertaors, so I need to check that the number is greater than or equal to one number, AND less than another number. Is this possible?

Cheers
 

Region3

Ryder Cup Winner
Joined
Aug 4, 2009
Messages
11,860
Location
Leicester
Visit site
Not sure I understand properly, but you can use AND inside an IF formula.

Say your number is in A1 and you want to make sure it's bigger than or equal to B1, and less than C1.

=IF(AND(A1>=B1,A1<C1),"TRUE","FALSE")

Does that help?
 

Region3

Ryder Cup Winner
Joined
Aug 4, 2009
Messages
11,860
Location
Leicester
Visit site
Beat me to it :p

:D

As Leftie was about to point out, you don't even need the IF formula.

If you just type a statement without IF, your result will be TRUE or FALSE.

So if you were to type =5=7
you are basically saying 5=7, so your cell would show FALSE, because it is.

Using that, your formula from above could be

=AND(A1>=B1,A1<C1)

and Excel will choose TRUE of FALSE for you.
 

bobmac

Major Champion
Joined
Feb 2, 2009
Messages
28,194
Location
Lincolnshire
Visit site
As Leftie was about to point out, you don't even need the IF formula.

If you just type a statement without IF, your result will be TRUE or FALSE.

So if you were to type =5=7
you are basically saying 5=7, so your cell would show FALSE, because it is.

Using that, your formula from above could be

=AND(A1>=B1,A1<C1)

and Excel will choose TRUE of FALSE for you.

What was the questioon again? :D :D :D
 

Redwood

Q-School Graduate
Joined
Mar 18, 2009
Messages
999
Location
Bude and North Cornwall GC
Visit site
Good to know. I did need it to show some specific text though depending on the values.

OK, I'll own up, I'm being a saddo and putting together a spreadsheet with my clubs scorecard and scores and working out gross\net scores, plus stableford scores and what Cat you are etc.... and a few graphs for good measure!!! ;)
 
Top