if function
Microsoft Office Training McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams add 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 » IF function

IF function

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

resolvedResolved · Low Priority · Version 2007

IF function

Usman has attended:
Excel Advanced course

by - delegate Usman [3 posts] (2008 Apr 4 Fri, 14:04) replyReply

How to formulate in cells

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2009 Jan 12 Mon Bayswater 3 book now £224 £224
2007 2009 Jan 13 Tue Bloomsbury 1 book now £224 £224
2002/XP 2009 Jan 13 Tue Tooting 0 FULL    
2003 2009 Jan 15 Thu Southwark 1 book now £215 £215
2007 2009 Jan 20 Tue Bloomsbury 3 book now £224 £224
2003 2009 Jan 20 Tue Southwark 4 book now £207 £215
Full Schedule: See all 134 Excel Intermediate course dates.
Bookings currently available until 30th March 2010.

RE: IF function

by - trainer Nicole [22 posts] (2008 Apr 5 Sat, 04:54) replyReply

Hi Usman,

I hope you enjoyed your Excel training. Thank you for your question.

The IF function allows Excel to display different answers dependant on certain criteria being met or not met (for example to show whether a student has passed or failed an exam).

To create the formula, you click in the cell where you want the answer to appear and use the Insert Function button (fx) to choose the If function.

In the If function dialogue box you have 3 separate areas – the logical test, the value (or text) you want to return if your criteria is met, and the value (or text) you wish to return if your criteria is not met.

For example to show whether a student has passed or failed an exam you would do the following:

• In the logical test section.
o Click on the cell that you wish Excel to check – in this instance the cell which shows the mark the student achieved.
o If the pass mark is 50%, then you need Excel to check whether the mark achieved by the student is greater than 50%.
o Your logical test is whether the amount in cell A1 (for example) is greater than (>) 50%.
o Your logical test would therefore read A1>50%
• In the value if true section you would type Pass. This means that if the logical test is found to be true (i.e. the mark is greater than 50%), then the cell will show the word Pass.
• In the value if false section you would type Fail. This means that if the logical test is found to be false (the mark is NOT greater than 50%), then the cell will show the word Fail.

I hope this answers your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post.

Have a great day.

Regards,

Nicole.


Related articles

· Microsoft Excel Training - Discover A Hidden Power At Your Fingertips
· Why Should I Learn Visual Basic in Excel?
· MS Excel: Excel At Making The Most Of Your Christmas
· How Excel Training Can Improve Your Company's Sales Process
· Microsoft Excel Training Courses or Consultants: Which Is Better For Your Company?

Please browse our web site to find out more about
excel one day course london and other Microsoft training courses.

Excel tip:

Use RANDBETWEEN to generate random numbers

There may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify.

The function looks like this:

=randbetween(LOW,HIGH)

where LOW is the lowest number you want generated; and HIGH is the highest number you want generated.

This formula will work with both positive and negative LOWs and HIGHs. Also it will only generate integer numbers unless forced to do otherwise by the following:

=randbetween(LOW*10^PRECISION,
HIGH*10^PRECISION)/(10^PRECISION).

where PRECISION represents the levels of decimal precision needed (i.e. if you need numbers with one decimal place, PRECISION would be 1; 2 for two decimal places and so on).

One final note, if the RANDBETWEEN formula does not work in your spreadsheet or returns a "#NAME" error, you need to install the Analysis Toolpak Add-In. You will need to press F2 then Enter following the installation.

View all Excel hints and tips

Rate this page:
3.0/5 (5 votes cast)
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

Training venues
Client list
FAQ
Pricing and availability
Course details / Syllabus

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London
Microsoft Office training

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
Training Articles

AddThis Social Bookmark Button What's this?
Add to: Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo