1. Computing

Excel IF Function Step by Step Tutorial


5 of 8

Entering the Value If True Argument
Entering the Value If True Argument

Entering the Value If True Argument

© Ted French

Entering the Value_if_true Argument

The Value_if_true argument tells the IF function what to do if the Logical Test is true.

The Value_if_true argument can be a formula, a block of text, a number, a cell reference, or the cell can be left blank.

In this tutorial we are testing to see if the data in cell E6 is less than $30,000. If it is, we want the IF function to use a formula to multiply the employee's annual salary in cell E6 by the deduction rate of 6%, which is located in cell E3.

Relative vs Absolute Cell References

After we complete the IF function in cell F6 we will be copying it to cells F7 to F10 to find out the deduction rate for the other employees in our data sample.

Normally, when a function is copied to other cells the cell references in the function change to reflect the function's new location. These are called relative cell references and they make it easier to use the same function in multiple locations.

Occasional, however, having cell references change when a function is copied will result in errors.

To prevent these errors, the cell references can be made Absolute which stops them from changing when they are copied. Absolute cell references are created by adding dollar signs around a regular cell reference, such as $E$3.

For this tutorial we will enter the deduction rate located in cell E3 as an absolute cell reference into the Value_if_true line of the dialog box.

Adding the dollar signs is easily done by pressing the F4 key on the keyboard after the cell reference has been entered into the dialog box.

Tutorial Steps

  1. Click on the Value_if_true line in the dialog box.

  2. Click on cell E3 in the worksheet to add this cell reference to the Value_if_true line.

  3. Press the F4 key on the keyboard to make E3 an absolute cell reference ( $E$3 ).

  4. Press the asterisk ( * ) key on the keyboard. The asterisk is the multiplication symbol in Excel.

  5. Click on cell E6 to add this cell reference to the Value_if_true line.

  6. Note: We will not make E6 into an absolute cell reference because we want it to change when the function is copied.

  7. The completed Value_if_true line should read: $E$3 * E6.

©2014 About.com. All rights reserved.