View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default If Formula using Greater than / Less than

But you don't need to test for F23 when you've already taken out those
where F2<=3, and you don't need to test for F26 when you've already taken
out those where F2<=6.
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4))) can be simplified
to
=IF(F2<=3,1,IF(F2<=6,2,IF(F2<=9,3,4)))
--
David Biddulph

"Sheeloo" <="to" & CHAR(95) & "sheeloo" & CHAR(64) & "hotmail.com" wrote in
message ...
Try
=IF(F2<=3,1,IF(AND(F23,F2<=6),2,IF(AND(F26,F2<=9 ),3,4)))

"crmulle" wrote:

My formula is listed below. I would like the formula to look at cell f2
and
determine if it =3 than 1, <3 but =6 than 2, <6 but =9 than 3 and <9
but
=12 than 4. The formula is not working and I know it has something to
do

with my logical test but i am not able to figure it out...any help would
be
appreciated.

=IF(F2<=3,1,IF(F23<=6,2,IF(F26<=9,3,4)))

Carolyn