Solved

Excel If/Or Statement

Posted on 2014-12-22
7
126 Views
Last Modified: 2014-12-22
Hello,

I have the following Excel formula:

=IF(OR(K46:K52)="Yes","Additional Items","")

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
Comment
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
7 Comments
 
LVL 11

Expert Comment

by:Wilder1626
ID: 40514254
Hi

Is this what you are looking for:

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

Open in new window


In what cell do you put your formula?
0
 
LVL 11

Expert Comment

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

Open in new window

0
 
LVL 23

Accepted Solution

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

Open in new window

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:dabug80
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

by:Michael Fowler
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

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

Open in new window

0
 
LVL 1

Author Closing Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

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

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

Join & Ask a Question