0% found this document useful (0 votes)
12 views

Excel 2

vamo2

Uploaded by

rafo_peru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
12 views

Excel 2

vamo2

Uploaded by

rafo_peru
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
Each statement above has a logical test, then a value_if_true, then a value_if false. The step by step instructions, using the FUNCTION ARGUMENT dialog box and the scenario about a student's grades as an example are: 1. Ensure your cursor is in Cell E6. Call up the IF FUNCTION ARGUMENT dialog box. 2. Putin the first logical test (point and click on Cell C6 then type <=7) and the Value_if_true result (the student would get an “E” if true) Logical test [eS ———}]}— 1. Filin the a first two abe ff] <= |__ dialogue boxes 2. Then click in the Yl fee ta ane Lape eo SE aed Nalue false” dialogue box lepentitincin ces 3. Make sure your cursor is in the "Value_if_false dialog box, Now click on the IF function in the name box to bring up a brand new FUNCTION ARGUMENTS dialog box. T = o |e tha Ffurction fo eslcuate the ans are quia 3 Click on the IF function to create a new FUNCTIONS ARGUMENT dialog box 4, Inthe new FUNCTION ARGUMENTS dialog box, type in the next argument, and the Value_if_true result (see if the student has a mark of 10 or less, and if so give them a" Function Arguments Logeal tea [accie mr fe a v vate? SCT il Je anh PSE | ean utc cot ‘isninisvatvellfomation Teehrology Customer Sevices Managemenfaucabon and Training TeaniGurent Trang Page Modulos\Advanced ExcaiAavanced Excel formulas and funetone oe 5. Repeat Step 3 6 Repeat Step 4 but this time the logical test is to see if the student has a mark of 13 orless. Ifitis TRUE, they will get a ems ogical teat [= SSCS~S~S a a eS wi ‘Secs whether a cnaton swe, andreturs ane vave TALE aretha ef Walue fale’ the vl that ctured Loge test bale Wout, FALSE 6 tures ebanstingin crai_| 7. Repeat Step 3 to bring up a final FUNCTION ARGUMENTS dialog box. This is the only tricky part, knowing when to stop asking for more new arguments. Here the final logical test is entered (C6<=16). Notice that the result of this argument is TRUE. The Value_if_true is a mark of B. The value_if_ false must therefore be someone who has more than 16 marks and gets an F Lopicatest cei | vale Hwuef——SS~S~S | his vouesttase[] SSS argument is Fase [i] TRUE =e hess wheter a cnctonse, endure vue TRUE end orthe vaio F Yaluef fas the vo that i enurod Leal tet EraLSe. Fonz, FASEic Bee aan . ttlesnnetincin (a) crest | 8. Click on OK to finish the function. If filling several cells with this formula, use the FILL HANDLE to drag down to the other cells. (see Page 14 to read more about the FILL HANDLE) If you were to manually type the above formula it would look like: =IF(C6<=7,"E",IF(C6<=10,"D",IF(C6<=13,"C",IF(C6<=16,"B","A")))) ‘As you can see it looks a little complex, just remember that you must have the right amount of parenthesis in the right order, and commas separating the arguments. Usually this sort of formula is easier to create using the FUNCTION ARGUMENTS dialog boxes. ‘dministratvellnormation Technology Customer Sences ManagemenEducaton and Training Teamiurent Trang Page 4 Modulos\Advanced ExcaiAavanced Excel formulas and funetone oe AND, OR AND NOT FUNCTIONS The AND, OR and NOT functions, like the IF function, are found under the LOGICAL category of functions available in Excel. Although they can be used in their own right, these functions are most often found being used to increase the logical comparisons you can make within an IF function. The AND and OR Functions Both of these functions can have up to 30 arguments. The difference between them is that: ‘© with an AND function, all arguments MUST be TRUE, to retum a TRUE result, Only ‘one comparison needs to be false to make the result FALSE. ‘+ With an OR function, only one of the comparisons needs to be TRUE to return an answer of TRUE. Example 1 (Using the AND function) - Using a Sales Commission example, an employee gets a 10% bonus commission when his sales meets a target ($1,500) AND he has worked for the company for 2 or more years (2 comparisons). If these comparisons are true he gets the 10% bonus, if he doesn't meet these conditions he gets a 5% bonus as long as he has sales of $500 or more (another IF function). If sales are less than $500, the commission is zero. If we do an OR function using the same example, we would get a different result, What we would be saying is an employee gets @ 10% bonus if he reaches the $1500 target OR he has worked for the company for 2 or more years. Therefore in this case he would get his 10% bonus commission if he only has sales of $1,000. ‘Syntax: ND (logicalt ,logical2,.........dogical30) =OR(logicalt logical2,..........logical30) logical# —_the comparisons you make, (each to be separated with a comma) up to 30 are allowed as long as does not exceed 1,024 characters in total. A working example of the above can be found in the Advanced Excel Exercises workbook, on the AND, OR, NOT worksheet. Creating the AND function within an IF statement 1. Ensure your cursor is in Cell D8. Bring up the IF FUNCTION ARGUMENT dialog box. 2. Inanormal IF Function we would be using only one conditional test here. However we have two tests to make so we use the AND function. You have a choice of either manually typing the AND function in the Logical_test dialog box, or using the AND FUNCTION ARGUMENTS dialog box. If using the latter, make sure the ‘S\Aministatvellnformation TechnologyiCustomer Sevces Managementeducston and Training TeariGurent Trang Page 42 Modulos\Advanced ExcaiAavanced Excel formulas and funetone oe

You might also like