Solved

# IF/OR Statement

Posted on 2011-05-03
122 Views
Last Modified: 2012-05-11
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
Question by:Seamus2626
4 Comments

LVL 33

Expert Comment

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

LVL 33

Accepted Solution

Please check the attached file.

jppinto
test-IFs.xls
0

Author Closing Comment

Thanks Jppinto

Cheers,
Seamus
0

LVL 39

Expert Comment

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

## Join & Write a Comment Already a member? Login.

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

#### 732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

#### Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!