• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 128
  • Last Modified:

IF/OR Statement

Hi,

I have attached an if/or statement that is not quite working for me. You can see from my results, that the brackets are not quite right

Thanks
Seamus
test.xls
0
Seamus2626
Asked:
Seamus2626
  • 2
1 Solution
 
jppintoCommented:
Just change yourt OR's for AND's, like this:

=IF(AND(B3<30),"Under 30",IF(AND(B3>=30,B3<=60),"31-60",IF(AND(B3>60,B3<=90),"61-90",IF(AND(B3>90,B3<=120),"91-120",IF(AND(B3>=121,B3<=150),"121-150","181+")))))

jppinto
0
 
jppintoCommented:
Please check the attached file.

jppinto
test-IFs.xls
0
 
Seamus2626Author Commented:
Thanks Jppinto

Cheers,
Seamus
0
 
Pratima PharandeCommented:
try this

=IF((B3<=30);"Under 30";IF((B3<=60);"31-60";IF((B3<=90);"61-90";IF((B3<=120);"91-120";IF((B3<=150);"121-150";"181+")))))
test1.xls
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now