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

if statements

ResolvedVersion 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

Excel tip:

Line breaks in a cell

You can control the line breaks for multiple-line headings or labels in your Microsoft Excel worksheet, just like you do in Microsoft Word. Here's how to do it.

Click the cell where you want the label or heading to appear.
Type the first line of information.
Press ALT+ENTER.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.