Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
62 views10 pages

If CLASS Assignment

The document contains data on the revenues, costs and profits of four regions. It uses IF functions to evaluate whether each region had a profit or loss. The second document discusses using IF functions to evaluate the sales performance of each region and provide commentary. It gives an English example of an IF function with multiple conditions. The third document is about using nested IF functions to evaluate home and away scores in a football match and return outcomes of home win, draw or away win.

Uploaded by

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

If CLASS Assignment

The document contains data on the revenues, costs and profits of four regions. It uses IF functions to evaluate whether each region had a profit or loss. The second document discusses using IF functions to evaluate the sales performance of each region and provide commentary. It gives an English example of an IF function with multiple conditions. The third document is about using nested IF functions to evaluate home and away scores in a football match and return outcomes of home win, draw or away win.

Uploaded by

Satish
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLS, PDF, TXT or read online on Scribd
You are on page 1/ 10

break-even1

Values in Millions

Northern
Southern
Eastern
Western

Revenue Costs
Profit
Profit/loss
87
123
-36
123
98
25
108
79
29
76
98
-22

Cells F6:F9 contain IF functions that test whether the profit is


Zero or greater.
The words "profit" and "no profit" are enclosed in " (quote)
marks.

Page 1

break-even2

Profit
North
South
East
West

Comment

500
1001
56
-676

#The comment uses an IF function to evaluate the sales


performance of the individual regions (apologies for the unrealistic figures! - but you should still
get the idea)

In English we would say: if C5 is greater than 1000, then return the


text string, were quids in!; if c5 is greater than 500, then return the
text string, nice earner; if c5>0 is greater than 0, then return the text
string, not bad -were still making money!; or else (if all the
conditions are not satisfied) return the text string, sack the
salesmen
Note that there are three conditions, each followed by the result if that
condition is true. The sack the salesmen clause is the result if all
the conditions are false.

Page 2

break-even2

but you should still

Page 3

football-1

Home
Home
team
score
Chelsea
Liverpool
Man Utd
Tottenham

2
1
0
7

Away
Away
team
score
Bolton
Blackburn
Hereford
Arsenal

Home Win?
4
1
5
0

In cells H6:H9, enter an IF statement (you will have to use nested IFs) that returns:
1) "home win" if the home score is greater than the away score
and
2)"away win" if the away score is greater than the home score

Page 4

exams2

ISNUMBER() function tests if a


cell is a number or not

See E6 for a solution to the


anomaly where people who
are sick pass the exam. It
uses ISNUMBER()

Name
Mark
Took Exam? Pass/Fail
Avalon
79
1
Byrne
57
1
Curzon
45
1
Davidson
58
1
Inglesfield
59
1
Slater
71
1
Watts
sick
0
Connor
46
1
Armstrong
76
1
Bishop
79
1
Knight
withdrew
0
Murphy
63
1
Patel
65
1
Hsin
59
1
MacDonald
48
1
Walsh
58
1
Mulholland
68
1

If you are really keen, try the more


complex IF function that you put into
exams!E6:E22

Grade

ISNUMBER() is one of many Information functions provided by Excel. Check


Function Wizard to find out about some others ....

Page 5

exams2

y keen, try the more


nction that you put into

Statistics
Highest score
Lowest score
Average score
Number who started course
Number who took exam

Excel. Check

Page 6

football-2

Home team Home score


Chelsea
2
Liverpool
1
Man Utd
0
Tottenham
7

Away team
Bolton
Blackburn
Hereford
Arsenal

Away score
4
1
5
0

Home Win?

In cells H6:H9 enter an IF function that tests whether there was a


home win or not.

There are in fact 3 possiblities you coul


test for:
1) home win
2) draw
3) away win
Go to the football2 sheet and enter a
formula to do this

In cells H6:H9, enter an IF statement (you will have to use nested IFs) that returns:
1) "home win" if the home score is greater than the away score
2) "draw" if the home and away scores are equal;
and 3)"away win" if the away score is greater than the home score

Page 7

football-2

e in fact 3 possiblities you could

win

win

football2 sheet and enter a


o do this

Page 8

case

Follow instructions #1, #2 and #3. (look at row 26 for


instructions #2 and row 45 for instructions #3)
Name
Mark
Avalon
79
Byrne
57
Curzon
45
Davidson
58
Inglesfield sick
Slater
69
Watts
45
Connor
46
Armstrong
63
Bishop
79
Knight
withdrew
Murphy
24
Patel
65
Hsin
59
MacDonald
32
Walsh
58
Mulholland
68

1
Statistics
Highest score
Lowest score
Average score
Number who started course
Number who took exam

2
HOW TO INSERT COLUMNS
Insert two columns to the left of column D
This will make space for the functions you will enter into the spreadsheet.
In column D, enter an If function that returns Pass if the students get greater than or
equal to 45
In column E, enter an If function that returns:
A if the students get greater than or equal to 70,
B if the students get greater than or equal to 60,
C if the students get greater than or equal to 50,
and otherwise "fail" if the students get less than 50.

For the anomaly caused by the two candidates who didn't get a
mark (C11 and C16), choose Format/Sheet/Unhide, then choose
exams2 from the list. But only after you have completed
instructions 1 and 2

Page 9

1) Select column hea


these columns
2) Right-click over th
3) Choose Insert from

case

1
In cells F10:F14, enter the
following functions to
return a statistical
summary of the values in
C6:C22
Max
Min
Average
Counta
Count
Then nest the AVERAGE
function (F12) in a
ROUND function so that it
returns only two decimal
places

1) Select column headings D: and E: to select


these columns
2) Right-click over the selected area
3) Choose Insert from the menu

Page 10

You might also like