0% found this document useful (0 votes)
71 views40 pages

MG1016 Seminar Excel Basic1

Managing information with technology excel workout

Uploaded by

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

MG1016 Seminar Excel Basic1

Managing information with technology excel workout

Uploaded by

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

© S.

Christian Albright, 2011-2023, All Rights Reserved

Reasons for Relative/Absolute Addressing

Absolute and references are indicated in formulas by dollar signs (absolute) or


the lack of dollar signs (relative), and they indicate what happens when you copy
or move a formula. You typically want some parts of the formula to stay fixed
(absolute) and others to change relative to the cell position.

This is an extremely important concept in Excel. There is no better way to be


efficient (and avoid errors) than to set up a spreadsheet for copying. This often
requires some careful planning, but the time spent in planning is more than
made up for by efficient copying. So always be on the lookout for ways to make
copying possible, and then take advantage of relative/absolute addressing in your
formulas to get the correct results.
Here are two important things to remember:

1. The dollar signs are relevant only for the purpose of copying or moving; they
have no inherent effect on the formula itself. For example, the formulas =5*B3
and =5*$B$3 in some cell produce exactly the same result. Their difference is
relevant only if you want to copy the formula to some range.
2. There is never any need to type the dollar signs. You can do it with the F4 key.
This is explained in more detail below.

Creating Relative/Absolute Addresses


To make a cell reference absolute or mixed absolute/relative using the F4 key:

Enter a cell reference such as =B3 in a formula. Then press the F4 key.

In fact, if you press the F4 key repeatedly, you cycle through the possibilities: B3
(neither row nor column fixed), then $B$3 (both column B and row 3 fixed), then
B$3 (only row 3 fixed), then $B3 (only column B fixed), and back again to B3.

Try it! Enter the appropriate formula in cell L35 and copy across to O35. (Scroll to
the right to see the answer.)
Try it again! Enter one formula with appropriate absolute/relative addressing in cell
M41 that can be copied to M41:P45. (Scroll to the right to see the answer.)
Fixed cost $50
Variable cost $2

Month Jan Feb Mar Apr


Units produced 224 194 228 258
Total cost

Table of revenues for various unit prices and units sold

Units sold
50 100 150 200
Unit price $3.25
$3.50
$3.75
$4.00
$4.25
Fixed cost $50
Variable cost $2

Month Jan Feb Mar Apr


Units produced 224 194 228 258
Total cost $498 $438 $506 $566

Units sold
50 100 150 200
Unit price $3.25 $162.50 $325.00 $487.50 $650.00
$3.50 $175.00 $350.00 $525.00 $700.00
$3.75 $187.50 $375.00 $562.50 $750.00
$4.00 $200.00 $400.00 $600.00 $800.00
$4.25 $212.50 $425.00 $637.50 $850.00
© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sheet

Using AutoSum to Create Row and/or Column Sums

The SUM function is used so often to sum across rows or columns that a button
(the S button) is available to automate the procedure. This button is on the Home
ribbon and the Formulas ribbon, as shown to the right.

To illustrate its use, suppose you have a table of numbers in some rectangular
range. You want row sums to appear to the right of the range, and you want
column sums to appear below the range. This is easy.

To produce row and column sums with the AutoSum button:

Select the range(s) where you want the sums to appear and click the AutoSum
button.

Note that if you select multiple cells, you get the sums automatically. If you select
a single cell, such as when you have a single column of numbers to sum, you are
shown the sum formula “for your approval,” and you have to press Enter to
actually enter it.

Try it! Use the AutoSum button to fill in the row and column sums in the gray cells
to the right, including the darker gray cell which should show the sum of all the
data.

Other Uses of the AutoSum Dropdown


Note that there is a dropdown arrow next to the AutoSum button. If you want a sum,
you can click the S button directly. However, you can click the dropdown arrow for
other options, including Average, Count Numbers, Max, and Min, as shown to the right.
st of Topics sheet

AutoSum button on Home ribbon

AutoSum button on Formulas ribbon

51 94 15 7
37 6 2 41
13 83 29 88
73 64 46 32
38 11 3 80

Other "AutoSum" options


© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sheet

SUM function (Math & Trig Category)

The SUM function is probably the most used Excel function of all. It sums all
values in one or more ranges.

To use the SUM function:

Enter the formula =SUM(range), where range is any range. This sums the
numeric values in the range. If there are any nonnumeric or blank cells in this
range, they are ignored.

Actually, it is possible to include more than one range in a SUM formula,


separated by commas. (This can also be done with the COUNT, COUNTA,
AVERAGE, PROLDUCT, MAX, and MIN functions, among others.) For example,
=SUM(B5,C10:D12,Revenues) is allowable, where Revenues is a range name. The
result is the sum of the numeric values in all of these ranges combined. Again, if
any cells in any of these ranges are nonnumeric or blank, they are ignored.

Here is a shortcut, which works for any function that takes multiple ranges,
separated by commas. Hold the Ctrl key and then drag the ranges, one after the
other. The commas will be entered for you automatically.

Try it! Use the SUM function in the above gray cell to calculate the total of all
costs. (Scroll to the right for the answer.)

AVERAGE function (Statistical Category)

The AVERAGE function averages all of the numeric cells in a range.

To use the AVERAGE function:

Enter the formula =AVERAGE(range) where range is any range. This produces the
average of the numeric values in the range.

Note that the AVERAGE function ignores labels and blank cells. So, for example, if
the range C3:C50 includes scores for students on an exam, but cells C6 and C32 are
blank because these students haven’t yet taken the exam, then =AVERAGE(C3:C50)
averages only the scores for the students who took the exam. (It does not
automatically average in 0s for the two who didn’t take the exam.)

Try it! Use the AVERAGE function in the two gray cells to the right to calculate the
averages indicated. (For the formula in the lower gray cell, replicate the exam
scores in column M and make some changes. Scroll to the right for the answers.)
Try it! Use the AVERAGE function in the two gray cells to the right to calculate the
averages indicated. (For the formula in the lower gray cell, replicate the exam
scores in column M and make some changes. Scroll to the right for the answers.)

PRODUCT function (Math & Trig Category)

You certainly know the SUM function for summing, but you might not be aware that
there is a PRODUCT function for multiplying. It works exactly like the SUM function,
that is, all of its arguments are multiplied together. Any blank or text cells are ignored
in the product. Specifically, they are not treated as 0s.

Try it! Find the product of the first six exam scores to the right, including the Absent
value. Then delete the Absent value, that is, make its cell blank. Does this change the
product?
st of Topics sheet

Table of costs for units produced in one month (along side)


for use in another month (along top)

Feb Mar Apr May


Jan $5,800 $3,600 $5,400 $5,700
Feb $4,000 $3,500 $6,100
Mar $3,000 $6,100
Apr $4,300

Total cost

Student ID Exam score Average (only for students who took the exam)
1533 68
8031 74
9859 80 Average (giving 0s to students who were absent)
9106 63
3535 72
8192 Absent
6102 85
6774 70
7558 64
314 72
9082 81
2397 75
2517 80
2432 73
6016 63
5269 80
4847 88
6537 71
9922 73
4525 71
1491 71
7897 68 Product
4088 82
166 76
7925 75
6405 81
802 76
2931 83
7625 67
2628 67
5417 92
7804 72
3994 69
394 85
8847 78
7855 81
8668 Absent
3738 77
5534 70
6965 71
8863 69
8762 73
6466 60
6100 76
1878 74
5970 67
9691 62
8666 77
4865 91
6198 81
8554 87
6753 76
9574 77
3891 81
8186 Absent
1306 73
6835 83
3136 59
4938 74
4807 74
4421 78
Total cost $47,500

Student ID Exam score With 0s Average (only for students who took the exa
1533 68 68 74.75862069
8031 74 74
9859 80 80 Average (giving 0s to students who were abs
9106 63 63 71.08196721
3535 72 72
8192 Absent 0
6102 85 85
6774 70 70
7558 64 64
314 72 72
9082 81 81
2397 75 75
2517 80 80
2432 73 73
6016 63 63
5269 80 80
4847 88 88
6537 71 71
9922 73 73
4525 71 71
1491 71 71
7897 68 68 Product
4088 82 82 1826012160
166 76 76
7925 75 75
6405 81 81
802 76 76
2931 83 83
7625 67 67
2628 67 67
5417 92 92
7804 72 72
3994 69 69
394 85 85
8847 78 78
7855 81 81
8668 Absent 0
3738 77 77
5534 70 70
6965 71 71
8863 69 69
8762 73 73
6466 60 60
6100 76 76
1878 74 74
5970 67 67
9691 62 62
8666 77 77
4865 91 91
6198 81 81
8554 87 87
6753 76 76
9574 77 77
3891 81 81
8186 Absent 0
1306 73 73
6835 83 83
3136 59 59
4938 74 74
4807 74 74
4421 78 78
nts who took the exam)

tudents who were absent)


© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sheet

Basic IF Function (Logical Category)

IF functions are very useful for performing logic, and they vary from simple to
complex. A few typical examples are illustrated here.

To enter a basic IF function:

Enter the formula =IF(condition,expression1,expression2), where condition is any


condition that is either true or false, expression1 is the value of the formula if the
condition is true, and expression2 is the value of the formula if the condition is
false.

A simple example is =IF(A1<5,10,“NA”). Note that if either of the expressions is text,


as opposed to a numeric value, it should be enclosed in double quotes.

Try it! Enter appropriate IF formulas in columns M and N. (Scroll to the right for
answers.)

Nested IF Functions

Sometimes IF functions are nested. For example, there might be three possibilities,
depending on whether the value in cell A1 is negative, zero, or positive. A nested IF
formula can then be used as follows.

To use nested IF functions:


Enter the formula
=IF(condition1,expression1,IF(condition2,expression2,expression3)). If condition1
is true, the relevant value is expression1. Otherwise, condition2 is checked. If it is
true, the relevant value is expression2. Otherwise, the relevant value is
expression3.

An example is =IF(A1<0,10,IF(A1=0,20,30)). Suppose this formula is entered in cell


B2. Then if A1 contains a negative number, B2 contains 10. Otherwise, if A1
contains 0, B2 contains 20. Otherwise, meaning that A1 must contain a positive
value, B2 contains 30.
Try it! Use a nested IF function to get the grades in column M. (Scroll to the right
for answers.)

IF Functions with Logical AND or OR Conditions

Sometimes more complex AND or OR conditions are required in IF functions.


IF Functions with Logical AND or OR Conditions

Sometimes more complex AND or OR conditions are required in IF functions.


They are not difficult once you know the syntax.

To use an AND condition in an IF function:


Enter the formula =IF(AND(condition1,condition2),expression1,expression2).
This results in expression1 if both condition1 and condition2 are true. Otherwise,
it results in expression2.

Note the syntax. The keyword AND is followed by the conditions, separated by a
comma and enclosed within parentheses. Also, note that any number of
conditions, not just two, can be included in the AND, all separated by commas.

Try it! Use an IF function with an AND condition to fill in the gray range for selling
to the right. Make sure you use double quotes for text. (Scroll to the right for
answers.)

To use an OR condition in an IF function:


Enter the formula =IF(OR(condition1,condition2),expression1,expression2). This
results in expression1 if either condition1 or condition2 is true (or if both are
true). Otherwise, it results in expression2.

Again, any number of conditions, not just two, can be included in the OR.

Try it! Use an IF function with an OR condition to fill in the bonuses in column P.
(Scroll to the right for answers.)

You can even have AND and OR conditions in the same formula. A typical
example is =IF(OR(AND(B3>=10,C3>=15),D3<50),1000,2000). For example, if
cells B3, C3, and D3 have values 12, 10, and 40, this returns 1000 because the
second condition (D3<50) is true, even though the AND condition is false.

The key to writing (and reading) such complex formulas is to pay careful
attention to the parentheses. Fortunately, Excel helps you by color-coding pairs
of parentheses. From now on, pay close attention to this color coding. You will
come to depend on it!
st of Topics sheet

For each product, if the end inventory is less than or equal to 50 units,
enough units are ordered to bring stock back up to 200; otherwise, no
units of that product are ordered

Product End inventory Order placed (yes or no)? # of units ordered


1 100
2 40
3 20
4 70

Each student gets an A (if score is 90 or above), S for satisfactory (if score
is 60 or above but less than 90) or U for unsatisfactory if score is below 60

Student Score Grade


1 70
2 95
3 55
4 80
5 60
6 90
Investor sells stock only if its price has gone up three consecutive days
(including the current day)

Day Price change Sell (yes or no)?


1 Up
2 Down
3 Up
4 Up
5 Up
6 Down

Any student who scores at least 95 on any of the exams gets a bonus
which is 1% of their total score.

Student Exam 1 Exam 2 Exam 3 Exam 4 Bonus


1 87 83 83 80
2 77 72 74 97
3 80 95 79 75
4 82 87 96 88
5 78 94 81 79
6 75 83 80 72
Order placed? # ordered
no 0
yes 160
yes 180
no 0

Grade
S
A
U
S
S
A
Sell?

No
No
Yes
No

Bonus
0
3.2
3.29
3.53
0
0
© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sheet

COUNT, COUNTA, COUNTBLANK Functions (Statistical Category)

The COUNT function counts all of the cells in a range with numeric values. The
COUNTA function counts all nonblank cells in a range. For example, if cells A1,
A2, and A3 contain Month, 1, and 2, respectively, then =COUNT(A1:A3) returns
2, whereas =COUNTA(A1:A3) returns 3.

To use the COUNT function:

Enter the formula =COUNT(range), where range is any range. This returns the
number of numeric values in the range.

To use the COUNTA function:

Enter the formula =COUNTA(range), where range is any range. This returns the
number of nonblank cells in the range.

The COUNTBLANK function counts all blank cells in a range.

To use the COUNTBLANK function:

Enter the formula =COUNTBLANK(range), where range is any range. This returns
the number of blank cells in the range.

Try it! Use the COUNT, COUNTA, and COUNTBLANK functions to fill in the gray
cells to the right. (Scroll to the right for the answers.)

Note: Excel uses somewhat different terms on the status bar. If you select a
range and right-click the status bar, you will see the two options "Count" and
"Numerical Count." The first corresponds to the COUNTA function, and the
second corresponds to the COUNT function.
st of Topics sheet

Student Exam score Number enrolled


1 62
2 73
3 74 Number who took exam
4
5 77
6 57 Number who were absent
7 67
8 90
9 77
10 83
11 71
12 75
13 72
14 82
15 68
16 86
17 77
18 68
19 86
20
21 80
22 81
23 84
24 71
25 76
26 81
27 99
28 72
29 78
30 67
31 89
32 70
33 77
34
35 83
36 74
37 87
38 75
39 86
40 77
41 73
42 74
43 79
44 80
45 77
46 72
47 77
48 71
49 70
50 68
51 79
52 75
53 80
54 73
55 61
56 62
57 68
58 92
59 85
60 77
61 79
62 86
63 83
64 83
65 76
66 89
67 72
68 69
69 66
70 71
71 80
72 61
Number enrolled
72 or 72

Number who took exam


69 or 69

Number who were absent


3
© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sheet

Background on ...IF Functions

There are several Excel functions that allow you to count values, or sum or average
values, subject to conditions. Until Excel 2007, this was possible only for a single
condition, such as all people younger than 35 years old, and there were only two
functions available, COUNTIF and SUMIF. In response to customer demand, Microsoft
added four new functions in Excel 2007: AVERAGEIF (for a single condition), and
COUNTIFS, SUMIFS, and AVERAGEIFS (for multiple conditions). These are all handy
functions, and you should learn how to use them.

COUNTIF Function (Statistical Category)

The COUNTIF function counts all values in a specified range that satisfy a certain
condition.

To use the COUNTIF function:

Enter the formula =COUNTIF(criterion_range,criterion) in any cell, where


criterion is any expression that evaluates to TRUE or FALSE. This counts all values
in criterion_range that satisfy the condition.

The criterion can be tricky to specify. If you want a specific value, such as Male,
you can specify it as "Male" (double quotes required), or you can use a cell
reference such as Q8. Also, if you want a specific inequality, such as younger than
20, you can specify it literally as "<20" (again, double quotes required). But if you
want it to be younger than the value in cell Q9, you need to piece it together as a
literal part, "<", and a variable part, whatever is in cell Q9. The correct syntax is
"<"&Q9. The ampersand (&) symbol concatenates (pieces together) the two
parts. For example, if you want to count the number of students who are older
than then the value in cell Q9, the correct formula is
=COUNTIF(M9:M80,">"&Q9).

Try it! Use COUNTIF in the top gray cell to the right to find the number of
students who scored at least as high as the value in cell Q10. (Scroll to the right
for the answer.)

SUMIF Function (Math & Trig Category)

The SUMIF function sums values in one range where a condition in a corresponding
range is satisfied. Usually, the setup is like the example to the right, where you want
to sum or average scores in one column (N), but only for rows that satisfy a
condition in another column (L or M).

To use the SUMIF function:


SUMIF Function (Math & Trig Category)

The SUMIF function sums values in one range where a condition in a corresponding
range is satisfied. Usually, the setup is like the example to the right, where you want
to sum or average scores in one column (N), but only for rows that satisfy a
condition in another column (L or M).

To use the SUMIF function:

Enter the formula =SUMIF(criterion_range,criterion,sum_range). This sums all


values in sum_range where the corresponding value in criterion_range satisfies the
criterion. Note that the range for the condition is listed first, and the range to be
summed is listed last.

Try it! Calculate the sums indicated in rows 14-16 to the right. (Scroll to the right for
the answers.)

AVERAGEIF Function (Statistical Category)

The AVERAGEIF function works just like the SUMIF function, except that it averages the
values in the last argument range, the average_range.

Try it! Calculate the averages indicated in rows 18-20 to the right. (Scroll to the right for
the answers.)
st of Topics sheet

Student Gender Age Exam score


1 Male 18 62
2 Female 21 73
3 Female 18 74
4 Female 18
5 Male 18 77
6 Female 20 57
7 Female 18 67
8 Male 19 90
9 Male 19 77
10 Male 22 83
11 Female 20 71
12 Female 20 75
13 Female 20 72
14 Female 24 82
15 Female 18 68
16 Male 18 86
17 Female 24 77
18 Male 21 68
19 Male 20 86
20 Female 21
21 Male 20 80
22 Female 18 81
23 Male 20 84
24 Female 19 71
25 Female 18 76
26 Male 21 81
27 Female 18 99
28 Male 20 72
29 Female 18 78
30 Female 21 67
31 Female 21 89
32 Female 19 70
33 Female 19 77
34 Female 18
35 Male 22 83
36 Female 19 74
37 Male 19 87
38 Male 18 75
39 Male 20 86
40 Male 21 77
41 Male 20 73
42 Male 20 74
43 Female 20 79
44 Male 18 80
45 Male 20 77
46 Female 21 72
47 Male 19 77
48 Male 19 71
49 Female 23 70
50 Female 19 68
51 Female 24 79
52 Male 19 75
53 Male 18 80
54 Female 19 73
55 Female 21 61
56 Female 21 62
57 Male 19 68
58 Male 19 92
59 Female 20 85
60 Male 22 77
61 Female 19 79
62 Male 20 86
63 Female 19 83
64 Male 19 83
65 Male 18 76
66 Female 24 89
67 Female 18 72
68 Female 21 69
69 Male 23 66
70 Male 24 71
71 Male 20 80
72 Female 18 61
Gender condition Male
Age cutoff 20
Exam score cutoff 87

# of "high" scores

Sum of scores for males


Sum of scores for "young" people
Sum of scores for "old" people

Average of scores for males


Average of scores for "young" people
Average of scores for "old" people
# of "high" scores 6

Sum of scores for males 2660


Sum of scores for "young" people 2527
Sum of scores for "old" people 2733

Average of scores for males 78.235


Average of scores for "young" people 76.576
Average of scores for "old" people 75.917
© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sh

Background on ...IFS Functions

The "plural" functions discussed here, COUNTIFS, SUMIFS, and AVERAGEIFS, were added in Excel 2007.
They allow you to impose multiple conditions, such as male and younger than some value. Their
arguments, described in more detail below, include any number of pairs of criterion ranges and
criteria, such as L9:L80,"Male".

COUNTIFS Functions (Statistical Category)

The COUNTIFS function counts the number of rows that satisfy all of the conditions.

To use the COUNTIFS function:

Enter the function =COUNTIFS(criterion_range1,criterion1,criterion_range2,criterion2,...), where


each criterion_range,criterion pair imposes a condition on a particular range, usually a column. The
"..." means that any number of criteria can be imposed.

Try it! In the top gray cell to the right, find the number of students with the gender in cell Q8 and
age younger than the age cutoff in cell Q9 who scored less than or equal to the score cutoff in cell
Q10. (Scroll to the right for the answer.)

SUMIFS Function (Math & Trig Category)

The SUMIFS function is similar in concept to SUMIF, but its syntax is different. (Microsoft chose
this syntax instead of the original SUMIF syntax for logical reasons, but they didn't want to change
the SUMIF syntax because it would have broken too many existing spreadsheets.) Now the range
to sum comes first, and the criteria ranges and criteria come last.

To use the SUMIFS function:

Enter the formula

=SUMIFS(sum_range,criterion_range1,criterion1,criterion_range2,criterion2,...)

Again, the setup is typically like the example to the right. There is a column such as exam score to
sum. The criteria impose conditions on other columns, or even the same column. Only those rows
that meet all of the conditions are part of the sum.

Try it! In the middle gray cell to the right, calculate the total of all scores made by the gender in
cell Q8 and ages younger than the age cutoff in cell Q9. (Scroll to the right for the answer.)
cell Q8 and ages younger than the age cutoff in cell Q9. (Scroll to the right for the answer.)

AVERAGEIFS Function (Statistical Category)

The AVERAGEIFS function works just like the SUMIFS function, except that it averages the values in the
the average_range argument.

Try it! Calculate the average in the bottom gray cell to the right, using the same criteria as in the
SUMIFS exercise above. (Scroll to the right for the answer.)
eturn to List of Topics sheet

el 2007.
ir
d

Student Gender Age Exam score Gender condition


1 Male 18 62 Age cutoff
2 Female 21 73 Exam score cutoff
3 Female 18 1
4 Female 18 65 COUNTIFS question
5 Male 18 77
6 Female 20 57 SUMIFS question
7 Female 18 67 AVERAGEIFS question
8 Male 19 90
here 9 Male 19 77
n. The 10 Male 22 83
11 Female 20 71
and 12 Female 20 75
cell 13 Female 20 72
14 Female 24 82
15 Female 18 68
16 Male 18 86
17 Female 24 77
18 Male 21 68
19 Male 20 86
20 Female 21 89
21 Male 20 80
22 Female 18 81
se
hange 23 Male 20 84
ange 24 Female 19 71
25 Female 18 76
26 Male 21 81
27 Female 18 99
28 Male 20 72
29 Female 18 78
30 Female 21 67
re to 31 Female 21 89
rows
32 Female 19 70
33 Female 19 77
in
34 Female 18 79
35 Male 22 83
36 Female 19 74
37 Male 19 87
38 Male 18 75
39 Male 20 86
40 Male 21 77
41 Male 20 73
42 Male 20 74
43 Female 20 79
44 Male 18 80
es in the 45 Male 20 77
46 Female 21 72
e 47 Male 19 77
48 Male 19 71
49 Female 23 70
50 Female 19 68
51 Female 24 79
52 Male 19 75
53 Male 18 80
54 Female 19 73
55 Female 21 61
56 Female 21 62
57 Male 19 68
58 Male 19 92
59 Female 20 85
60 Male 22 77
61 Female 19 79
62 Male 20 86
63 Female 19 83
64 Male 19 83
65 Male 18 76
66 Female 24 89
67 Female 18 72
68 Female 21 69
69 Male 23 66
70 Male 24 71
71 Male 20 80
72 Female 18 61
Female
20
87
COUNTIFS question 18

SUMIFS question 1342


AVERAGEIFS question 70.632
© S. Christian Albright, 2011-2023, All Rights Reserved Return to List of Topics sheet

SUMPRODUCT Function (Math & Trig Category)

There are many times when you need to sum products of values in two (or
possibly more than two) same-size ranges. Fortunately, there is a SUMPRODUCT
function that sums products quickly.

To use the SUMPRODUCT function:


Enter the formula =SUMPRODUCT(range1,range2), where range1 and range2
are exactly the same size. For example, they might be two column ranges with 10
cells each, or they might be two ranges with 4 rows and 10 columns each. The
formula sums the products of the corresponding values from the two ranges.

There can actually be more than two ranges in the SUMPRODUCT formula,
separated by commas, as long as all of them have exactly the same size. This is
not as common as having only two ranges, but it is sometimes useful.

Try it! Sum the products of the two ranges in the example to the right to find the
total shipping cost in the gray cell. (Scroll to the right for the answer.)
By the way, if you are tempted to write the formula without the SUMPRODUCT
function as the sum of nine products, as many beginning users tend to do,
imagine how long your formula would be if there were 10 plants and 50 cities!
The SUMPRODUCT function is extremely efficient, so get used to using it.
st of Topics sheet

Unit shipping costs City1 City2 City3


Plant1 1.25 1.35 1.55
Plant2 1.15 1.45 1.25
Plant3 1.35 1.45 1.15

Units shipped City1 City2 City3


Plant1 155 180 0
Plant2 250 130 185
Plant3 0 210 140

Total cost
Total cost 1609.5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy