

There are four pieces of information that you will need in order to build the VLOOKUP syntax. You will find the table that defines the scores and the grades in A28:B32. In this case, we need to know what grade each student is getting based on their percentage score. Sometimes it is in another file entirely. Sometimes that table is on a different sheet in your workbook. You need to use a VLOOKUP function to look up information in a table. When you look in the formula bar, you will see the IF calculation: =IF(P5<0.7,”Fail”,”Pass”) (see Figure 3.11).įigure 3.11 IF Function Results VLOOKUP Function

Below that is a link to Help on this function.

In this case, DeShae is passing the class. Notice that as you click in each box, Excel gives you a brief explanation of the contents (in the middle below the boxes.) In the lower left-hand corner, you can see the results of the calculation. While we are here, let’s take a look at the dialog box. Make sure that your dialog box matches Figure 3.10.We need to test whether a student’s score is less than. It has the same layout as Figure 3.10 below. The “Formula Builder” pane will display at the right side of the Excel window. Now you will see the IF Function dialog box, with a place to enter each of the three arguments.
Mac Users should click on the Formulas tab, then click the “Logical” tool list arrow, and choose IF (see Figure 3.9). Mac Users: There is no “Function Library” group for Excel for Mac. On the Formulas tab, in the Function Library group, find the IF function on the Logical pulldown menu (see Figure 3.9).But, if he/she scores less than 70%, he/she is failing. If the student scores 70% or better, he/she will pass the class. In column Q we would like Excel to tell us whether a student is passing – or failing the class. Then, if B7 does not equal 14, nothing will be displayed in this cell. Let’s say that you type the double quotes here. You can enter the same instructions here as you did above. Value_if_false – If the requirements in the logical test are not met – if B7 does not equal 14 – then it is said to be false.Or, if you want Excel to put nothing at all in the cell, type “” (two quotes). For this argument, you can type text – “True”, or “On budget!” Or you could insert a calculation, like B7*2 (If B7 does equal 14, multiply it by 2). Value_if_true – If the requirements in the logical test are met – if B7 is equal to 14 – then it is said to be true.You could use something like “B7=14” or “B7>12” or “B7<6” Logical test – Here, we can test to see if the value in a selected cell is what we expect.If the value in a cell is what you expect (true) – do this. In its simplest form, the IF function says something like: It allows you to make logical comparisons between a value and what you expect. The IF function is one of the most popular functions in Excel. Then, we will use a =VLOOKUP function to determine what grade each student has earned. In this section, we will use an =IF function to determine whether a student is passing or failing the class. In addition to doing arithmetic, Excel can do other kinds of functions based on the data in your spreadsheet.
#Excel for mac if function how to
