+ All Categories
Home > Documents > IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost...

IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost...

Date post: 15-Nov-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
11
1 Lesson 07- Practical IF Function Contin….. Question 1 A. Write an AND formula to determine if A2>A3 and A2<A4 is a true or false statement. B. Write an OR formula to determine if A2>A3 or A2<A4 is a true or false statement. C. Write a formula that expresses that A2+A3=24 is a false statement. Question 2
Transcript
Page 1: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

1

Lesson 07- Practical

IF Function Contin…..

Question 1

A. Write an AND formula to determine if A2>A3 and A2<A4 is a true or false statement.

B. Write an OR formula to determine if A2>A3 or A2<A4 is a true or false statement.

C. Write a formula that expresses that A2+A3=24 is a false statement.

Question 2

Page 2: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

2

A. Write an IF statement so that if the number in Cell A2 is less than 100 the formula

displays the text “Within budget”, otherwise the formula displays the text

“Over budget”.

B. Write an IF statement so that if the number in Cell A2 is 100 then the formula sums

the range B5:B15. Otherwise, the formula returns a blank (empty text).

Question 3

A. Write an IF statement to assign a letter grade to the score in Cell A2.

B. Write an IF statement to assign a letter grade to the score in Cell A3.

C. Write an IF statement to assign a letter grade to the score in Cell A4.

Page 3: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

3

Question 4

A. Write a formula to find the cost of 483 gallons.

B. Write a formula to find the cost of 500 gallons.

C. Write a formula to find the cost of 1,600 gallons.

Page 4: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

4

Question 5

In a particular test we have decided that a result of .75 or above is a positive, less than that is negative. We will create a spreadsheet that will evaluate numerical scores and tell us whether the test for that sample was positive or negative. 1. Open a new spreadsheet and enter the table shown below. Start in row 4 so that there is room above

the table to enter our cutoff value .

Sample number Value Pos/Neg

1 .77

2 .60

3 .66

4 .80

5 .9

2. In cell A1 enter the label “Cutoff value”.

3. In cell B1 enter the value .75.

4. In cell C1 type the word “Positive”.

5. In cell D1 type the word “Negative”.

6. In the “Pos/Neg column for sample 1, activate the “Function Wizard”

7. From the "Function category" logical, choose the IF function.

8. Click on the colored square on the right of the "Logical_test" line and then click on cell containing the value for sample 1. (You may have to move the dialog box out of the way, or collapse it to click on the appropriate cells.) Next type the greater than symbol (>). Now click on cell B1 to complete the formula. (If you collapsed the dialog, expand it again before going to the next step.

9. Click in the Value_IF_true line and then in cell C1 to enter its reference.

10. Click in the Value_IF_false line and then in cell D1 to enter its reference.

11. Before clicking “OK” take a look at the cell references in the dialog box and decide which should be made absolute! (Click on the reference and hit the <F4> key to toggle the correct state.)

12. Now copy the functiondown the column. Remember how to copy by dragging a "handle"?)

13. Test the spreadsheet by entering different values in cell "B1" and see how the test results change.

Page 5: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

5

Question 6

A salesman is paid a commission on sales. He receives 5% if his sales on sales less than 1000 and 10% if his sales on sales 1000 or more. Use IF function to calculate the amount of commission he receives:

A B

1 Sales Commission

2 1500 =IF(A2<1000;A2*0.05;A2*0.1)

3 2000

4 900

5 1200

6 950

Condition: Sales<1000 True Path Sales*0.05 False Path Sales*0.10

Question 7

Students are awarded a PASS if they obtain 60 or more marks in a test. Use function IF to enter the correct result.

A B C

1 Student Marks Result

2 Ahmed 80 =IF(B2<60;”FAIL”;”PASS”) 3 Samir 40

4 Naji 50

5 Hamad 35

Condition: Marks<60 True Path “FAIL” (Text must be enclosed within double quotes) False Path “PASS” (Text again enclosed within double quotes)

Question 8

A B C D E

1 Name District Sales Emp. Yrs Job Level

2 Linda East 20000 2

3 Joe West 42302 9

4 Bill East 53001 3

5 Mary South 12000 12

Page 6: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

6

6 Mark South 2050 6

7 John North 9000 0

8 Ted East 40000 4

1. Prepare the excel worksheet as the above. Save as YourName_1.xls 2. In cell E2, find out the Job Level for each employee.

If the Emp.Yrs is more than or equal to 5 years, then the Job Level is Senior.

Else if it is less than 5 years, then Job Level is Junior.

Question 9

Prepare the excel worksheet as shown below

Page 7: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

7

1. Insert the following columns after columns C.

Cost/Car

5400

6600

7200

10500

2. Total cost = QTY* Cost/Car. 3. Tax (column F) is calculate as 0.15 of Total cost 4. Use Nested if to calculate profit as follow

IF Car Code is 1 then profit is 33% of Total Cost - Tax

Else IF Car Code is 2 then profit is 35% of Total Cost- Tax

Else IF Car Code is 3 then profit is 38% of Total Cost-Tax

Else Profit is 40% of Total Cost- Tax

5. Format Columns E, F, and G as Currency $ with 1000 Comma separator, and one decimal place. 6. Merge and center cells A to G in row 1, add yellow color shade. 7. Add Thick Borders around the merged cells A1:G1. 8. Change the width of columns D to 14. 9. Using the appropriate function: calculate the Totals in cells D8,E8, and G8 10. Calculate in cells E10, E11, and E12.

How many Car types Produced

Highest Total

Lowest Profit

11. Add Thick borders to cells A3:G7. 12. For row 3 fill cells with light blue color. 13. Insert the current date that change automatically in cell A2. 14. Prepare your worksheet for printing with the following requirements.

Orientation: Landscape

Scaling: Fit to one page.

Center page vertically and horizontally.

Page 8: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

8

Add Header: File Name on the left section, your name on the center section and current date on the right section. Change the font size of your name to 14 and Bold.

Footer: Page number on the center section

15. Rename sheet 1 as Car. 16. Make a copy of sheet car andrename it as final_sheet. 17. Save your work as CarMan.XLS

Question 9 (Compound IF functions) – AND

1. Prepare the excel workbook as below. Save as YourName_2.xls

The problem:

A person is categorized under 50-60 if his/her age is more than 55 and less and equal to 60.

Display the result as Yes in C4 if he/she is within the category and display No if he/she is not under the category.

Retirement Schedule

Name Age 50-60 61-65 Over 66

Ali 50

Ahmad 58

Mariam 60

Sayed 63

Aisha 67

Noor 70

Page 9: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

9

Question 10 (Compound IF functions) – OR

Prepare the following work sheet

The problem

1. A person is given 10% commission if

His age > 35 or Years worked >=15

5% commission if

His Age > 30 or years worked > 5

Otherwise his commission is Zero

2. Calculate in column commission the commission for each person.

Question 11 - Vlookup

Prepare your worksheet sheet 1 as shown below:

Total Sales < $50,000 in cell A1 and in cell B1 3%

Total Sales ≥ $50,000 in cell A2 and in cell B2 4%

Page 10: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

10

1. Center "ABC" across columns A through F. Change its font size to 16, Bold and font color to Dark

Blue. Change background color of the cell to Yellow.

2. Adjust the column widths when necessary. Perform the following:

a. Use IF function to calculate the commission in cell D4. The commission is based upon the

salesperson's sales.

If Total Sales less than $50,000, Commission = Total Sales * 3%

If Total Sales more than or equal to $50,000, Commission = Total Sales * 4%.

Copy the formula to D5 through D10.

b. Using the formula below, calculate the Total Salary in column D.

Total Salary = Salary + Commission.

c. Use Nested if to fill in evaluation criteria in Evaluation column according to evaluation table.

Page 11: IF Function }v ]vYXX - HNDIT · 2016. 6. 14. · 3 Question 4 A. Write a formula to find the cost of 483 gallons. B. Write a formula to find the cost of 500 gallons. C. Write a formula

11

d. Use Vlookup to fill in evaluation criteria in Evaluation column according to evaluation table.

e. Use the appropriate function to calculate the following:

i. Average Salary in cell E14

ii. Highest Total Salary in cell E15

iii. Lowest Total Salary in cell E16

iv. Number of Salesperson in cell E17

v. Number of person whose Total Salary is more than $100,000 in cell E18.

f. Format all numeric values to currency with 0 decimal places. (E.g. 12.0 formatted as

$12).

g. Insert a row between row 9 and 10. Type in your name as the salesperson in this new row.

Enter 92000 for the total sales and 50000 for base salary. Copy the appropriate formulas

into Commission, Total Salary and Salesperson's Evaluation.

h. Save your file and close the program.


Recommended