Solved

# Excel If/Or Statement

Posted on 2014-12-22
122 Views
Hello,

I have the following Excel formula:

I would like to alter it so that if any cell between K46:K52 is "Yes", the cell would return the value "Additional Items" - otherwise the cell would return blank.

Is this possible?

Thanks
0
Question by:dabug80
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
• 3
• 2
• 2

LVL 11

Expert Comment

ID: 40514254
Hi

Is this what you are looking for:

``````=IF(K46:K51 = "Yes","","Additional Items")
``````

In what cell do you put your formula?
0

LVL 11

Expert Comment

ID: 40514258
Another way could be:
``````=IF(OR(K46:K51 = "Yes"),"","Additional Items")
``````
0

LVL 23

Accepted Solution

Michael74 earned 500 total points
ID: 40514262
``````=IFERROR(IF(MATCH("Yes", K46:K52, 0) > 0, "Additional Items"),"")
``````
0

LVL 1

Author Comment

ID: 40514266
I've tried both solutions, and they each return the #value error. The formula works when the range is just K46 - but when I increase the range, I get the #value error.
0

LVL 23

Expert Comment

ID: 40514268
@dabug80

Try my formula. It looks for a match within the range and when it is found it displays "Additional Items". The IFERROR function handles the case when the Match fails and displays an empty string
0

LVL 23

Expert Comment

ID: 40514269
Could also simplify this a bit
``````=IFERROR(IF(MATCH("Yes", K46:K52, 0), "Additional Items"),"")
``````
0

LVL 1

Author Closing Comment

ID: 40514270
Great. Thanks for your help Michael. Works perfectly.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month2 days, left to enroll

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

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