excel vba training - if or function
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel vba training - IF / OR function

excel vba training - IF / OR function

The UK's most regular instructor-led training courses.
Training information: excel vba training · Excel training courses · Microsoft Excel Training London
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version Standard

IF / OR function

Nick has attended:
Access Introduction course

by - delegate Nick bronze contributer[28 posts] (2007 Mar 20 Tue, 15:29) replyReply


I want a formula to return a certain response if any one of several questions is answered "YES" - can you please help ?

i.e. if cellA = "Yes", or if cellB = "Yes", or if cellC = "Yes" ....... return Y


I have searched microsoft help and can't find a solution

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 9 Tue Bloomsbury 2 book now £215 £215
2002/XP 2008 Sep 9 Tue Tooting 0 FULL    
2003 2008 Sep 11 Thu Southwark 4 book now £207 £215
2002/XP 2008 Sep 16 Tue Tooting 0 FULL    
2003 2008 Sep 16 Tue Bayswater 4 book now £195 £205
2003 2008 Sep 18 Thu Bloomsbury 2 book now £215 £215
Full Schedule: See all 137 Excel Intermediate course dates.
Bookings currently available until 25th November 2009.

RE: IF / OR function

by - trainer Rich platinum contributer[713 posts] (2007 Mar 23 Fri, 09:18) replyReply

Hi Nick,

Yep, it works in the similar way to the AND() function I told you about in your previous post.

Simply swap the AND() for OR(), like this:

=IF(OR(B2="yes", C2="yes", D2="yes"), "y", "n")

The OR() will return your 'if true' value (in this case "y") if ANY of the conditions listed in OR() are true. Otherwise the IF() statement will return your 'if false' value (in this case "n").

Hope this answers your question.

Regards, Rich


Related articles

· Excel Course Tips and Tricks to Liven Up Your Excel Spreadsheets
· Customized Financial Excel Courses in London
· Take the Anxiety out of Domestic Finances with Microsoft Excel
· Microsoft Excel Courses Teach Advanced Macro Techniques
· Microsoft Excel Training: Essential for Today's Employees

Excel tip:

Number format shortcut

Ctrl+Shift+! applies the Number format, with two decimal places

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Microsoft Certified Partner
microsoft office
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz