![]() |
Nested If Function
In the function above, first Excel compares the value in cell B6 (the age of the first person) to the value in cell B13 (25). If the value in B6 is greater than or equal to the value in B13, the value in cell C13 (the $50 dues) is placed in the cell and that's it. No further action is taken. However, if the value in cell B6 is NOT greater than or equal to the value in B13, then Excel looks to the False branch which is another complete If function. So then Excel compares B6 to B14 (21). If the value in B6 is greater than or equal to the value in B14, the value in cell C14 ($25 dues) is placed in the cell. If the value in B6 is NOT greater than or equal to the value in cell B14, then the value in cell C15 ($20 dues) is placed in the cell. To practice this, download the following files. To download a file, simply click on the name of the file below. You will be given a dialog box asking where you'd like to save the file. Browse to the directory where you store all your Excel files, then click OK. Once you've downloaded the file, open it in Excel. Then create the If formula in the appropriate cell and copy the formula down the column. When you have finished, return to this page and check your work by clicking on the answer links below. After viewing the answer, click the Back button on your browser to return here. Download Grades2. After you complete the worksheet, click here to check your work: Answer to Grades2. Download Commission. After you complete the worksheet, click here to check your work: Answer to Commission. Now, try this one. It has 5 possible answers, so how many nested If's will you need? Download Grades3. After you complete the worksheet, click here to check your work: Answer to Grades3. There's really an easier way to do this when you
have more than three possible answers. You can use a lookup
function. You'll learn the lookup function in the next tutorial.
|