introduction excel training - if statement
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 » introduction excel training - If statement

introduction excel training - If statement

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

resolvedResolved · Low Priority · Version Standard

If statement

Nick has attended:
Access Introduction course

by - delegate Nick bronze contributer[28 posts] (2007 Mar 19 Mon, 11:09) replyReply

HI

Is it possible to build TWO criteria into an IF Statement? - i.e. if cellA = Yes, and if cellB = Yes, return Y, otherwise returnZ)

Cheers
NICK

Excel VBA 2 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2003 2008 Sep 8 Mon + 9 Tue Bayswater 2 book now £495 £495
2003 2008 Sep 18 Thu + 19 Fri Bloomsbury 2 book now £495 £495
2003 2008 Sep 25 Thu + 26 Fri Southwark 5 book now £450 £485
2003 2008 Oct 6 Mon + 7 Tue Bayswater 4 book now £475 £485
2007 2008 Oct 13 Mon + 14 Tue Bayswater 6 book now £450 £485
2003 2008 Oct 23 Thu + 24 Fri Southwark 5 book now £450 £485
Full Schedule: See all 44 Excel VBA course dates.
Bookings currently available until 26th November 2009.

Multiple IF statements in Microsoft Excel

by - trainer Rich platinum contributer[711 posts] (2007 Mar 19 Mon, 12:34) replyReply

Hi Nick,

Yes it is possible, by using Excel's logical AND() function. Like this:
IF (AND(cellA="Yes", cellB="Yes"), "Y", "Z")

Syntax is:
=if(logical_test,value_if_true,value_if_false)

Hope this answers your excel question.

Regards, Rich

RE: If statement

by - delegate Caroline [3 posts] (2007 Mar 19 Mon, 12:37) replyReply

Hi Nick,

Yes this is possible. In the expression below I am looking to see if cell A1 contains the value "a" AND cell B1 contains the value "b". If they are both true then it will give back yes, but if it is not true for one or the other it will come back and say no.

=if(A1="a",if(B1="b","Yes","No"),"No")

Alternatively in this case you could use and AND function:

=(if(AND(A1="a",B1="b"),"Yes","No")

An If statement can have up to 7 Ifs contained in it. Just make sure that you know how many brackets and commas you're putting in!!

I hope this has answered your question.

Regards,

Caroline


Related articles

· Creating Smarter, Customized Invoices for your Small Business with Microsoft Excel
· Excel Course Tips and Tricks to Liven Up Your Excel Spreadsheets
· Compare Different MS Excel Training Methods
· Microsoft Excel Cheat Sheet: Tips and Shortcuts
· Microsoft Excel's Best Kept Secret

Excel tip:

Creating custom lists

In Excel if you type in January in a cell, you can then copy this cell to replicate Febraury, MArch, April etc.

This list has come from Tools- options and Custom lists.

Therefore to save time and create your own list you can click on New (in Tools and custom list tab) and type out the lsit that you want copied quickly.

All you have to do is then type in the 1st word and you will be able to copy the rest of the list quickly.

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