if statements
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » IF statements

IF statements

resolvedResolved · Low Priority · Version 2010

replyReply Fri 25 Nov 2011, 15:27Delegate Andrew said...

Andrew has attended:
Excel Advanced course

IF statements

Can you please detail the layout of how a formula should be written, i.e. what cell should be referneced where, what written text should be inserted where, use of comas etc.

For upcoming training course dates see: Pricing & availability

replyReply Sat 26 Nov 2011, 19:41Trainer Rodney said...

RE: IF statements

Hello Andrew,

Hope you enjoyed your Microsoft Excel Advanced course with Best STL.

Thank you for your question regarding IF statements.

Unfortunately, the IF function can be used in thousands of different ways depending on what the logical test is.

The Syntax of the IF statement begins with IF( then the 'Logical Test' is entered followed by a comma. After the first comma you would insert a value which is applied to the cell where the formula is written only if the logical test is TRUE.

After this value add a second comma. After the second comma you would insert a value which is applied to the cell where the formula is written only if the logical test is FALSE.

Add a closing bracket and the formula is complete.

Here is an example: -

=IF(A1>10,"Over 10","10 or less") returns "Over 10" if A1 is greater than 10, and "10 or less" if A1 is less than or equal to 10

The Syntax is as follows: -

IF(logical_test, [value_if_true], [value_if_false])

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

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

 

Please browse our web site to find out more about
application development excel and other Microsoft training courses.

Excel tip:

Use the SUBTOTAL function in Excel

You can create subtotals in your spreadsheet using the SUBTOTAL function, which looks like this:

=SUBTOTAL(9,cell:cell)

9 represents the function being used (SUM), followed by the range of cells the function is operating on.

The neat thing about using the Subtotal function is that if you have used it several times in the same column or row, clicking on the AutoSum button at the end of the column or row will make Excel add only the results of cells containing the Subtotal function in that column or row.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard