if statements

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

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

IF statements

resolvedResolved · Low Priority · Version 2010

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.

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

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Hide columns in an Excel 2010 Worksheet

If you don’t want part of the Excel worksheet to be visible or when you don’t want certain data to appear in print outs, then a simple solution is to temporarily hide a column or multiple columns.

Hiding a single column:

1)Right click on the column header of the column you want to hide (this is the grey bar along the top edge of the worksheet)
2)Choose Hide from the menu
3)This column will now be hidden from view

Hide more than one column:

1)In the column header drag select to highlight the columns you want hidden
2)Right click and choose Hide from the menu

View all Excel hints and tips


Server loaded in 0.09 secs.