Link to home
Start Free TrialLog in
Avatar of Seamus2626
Seamus2626Flag for Ireland

asked on

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
Avatar of jppinto
jppinto
Flag of Portugal image

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
ASKER CERTIFIED SOLUTION
Avatar of jppinto
jppinto
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Seamus2626

ASKER

Thanks Jppinto

Cheers,
Seamus
Avatar of Pratima
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