Setting up a Gradesheet
The following steps will guide you through the process of
creating a spreadsheet that will calculate grades. To help you
review the process, use the following table to help you quickly
find what you need.
First, we will enter some labels
As
you enter these labels, do not worry if they appear not to fit in
a cell. We will make the necessary adjustments
later!
entering the column labels
- click in cell A1
- enter Current Gradesheet for GSC120, press
<RETURN> / <ENTER>
- now click in A2
- enter the label Name, press <TAB> or
the Right Arrow
- enter the label Test 1, press <TAB>
or the Right Arrow
- enter the label Test 2, press <TAB>
or the Right Arrow
- enter the label Test 3, press <TAB>
or the Right Arrow
- enter the label Total Points, press
<TAB> or the Right Arrow
- enter the label % Score, press <TAB>
or the Right Arrow
- enter the label Grade, press <RETURN> /
<ENTER>
entering the row labels
- click in cell A8
- enter the label Total Possible, press
<RETURN> / <ENTER>
- enter the label Class Average, press
<RETURN> / <ENTER>
|
your spreadsheet should now look something like
this: |
 |
Next we will adjust text alignment
|
Text
used as labels should always be aligned appropriately,
that is, based upon the type of data that is being
labeled. For example, since text is normally left
aligned, a label over a column of text is normally left
aligned but may be centered in some circumstances.
Numeric data, on the other hand, is always right aligned.
Thus a label over a column of numeric data is normally
right aligned but may be centered in some circumstances
as noted below.
|
Centering a Label Across Multiple Columns
The title of the gradesheet should be centered across all of
the columns of the gradesheet. To do this:
- select the cell range A1 through G1
- click on the [Merge and Center] button on the
Formatting Toolbar


- the selected cells are now treated as if they were one
large cell and the text is now centered within that merged
cell
Aligning Text to the Right
The data in columns B through F is numeric.
Consequently:
- select the cell range B1 through F1
- click the [Align Right] button on the
Formatting Toolbar


- these labels, which head columns of numbers, are now
right aligned in each of the cells
-
when
we later discuss how data is
displayed, we will point out situations where it is
appropriate to have labels over numeric data centered
The labels in A8 and A9 have nothing to do with
the data in column A but instead refer to data in rows
7 and 8. Consequently:
- select the cells A8 and A9
- click the [Align Right] button on the
Formatting Toolbar


- these labels, which refer to the data to the right, are
now visually tied to those cells
Centering Text in a Column
Column G will contain only a single letter representing
a grade. To help visually separate this data from the columns to
the left and to make it easy to read we will center this data:
- select the cells G2 and G9
- click the [Align Center] button on the
Formatting Toolbar


Align Text to the Left
We did not use the [Align Left] button for this
spreadsheet. However, it works in the same manner as the
[Align Center] and [Align Right] buttons described
above.
Your gradesheet should now look something like this:
|

|
Now We Will Wrap Text within a Cell
There
is one other thing that you can do with text in a cell. You can
wrap it, that is, you can display multiple lines of
text with a single cell. This is very useful if one or more column
labels are much wider than the data in the columns (consider, for
example, the Total Points column in the gradesheet).
There are two methods to do this:
Manual Method
- Click in the cell in which you wish to wrap the text
- Select FORMAT
Cells
- Select the Alignment tab
- check the <Wrap Text> box
- Click <OK>
- If necessary, now manually adjust the width of the column
until the text is wrapped without splitting any words as
described below
Keyboard Shortcut
- Click in the formula bar where you want the split to occur
(usually you also delete the space between words)
- Press <Cmd-Option-Return> (Macintosh) or
<Alt-Enter> (Windows)
- Press <RETURN> / <ENTER>
- If necessary, now manually adjust the height of the row so that all
text is displayed. This is done in a manner similar to adjusting column
width as
described below
Wrap the text in cells E2 and F2 by whichever
method you prefer.
Your spreadsheet should now look something like this:
|

|
Next We Will Adjust Column Width
|
A
column should be adjusted to be just a little bit larger
than the width needed to accommodate the widest item
possible in the column. A row should be adjusted to be
just a little bit taller than the height needed to
accommodate the tallest item possible for that row. This
ensures that you will have enough white space
separating columns and rows to improve readability.
Before you adjust width/height, consider the
widest/tallest data that may possibly be placed in that
column/row for the spreadsheet you are creating. Enter
that dummy data, adjust, then delete the
dummy data.
|
column A
- ask yourself these questions:
- what is the longest name that you might have?
- will names be entered first name last name or
last name, first name?
- now enter a representative name into one of the cells in
column A
- then increase the width of column A as needed using
either of these two methods
- manual method
- move the cursor to the vertical line separating the
column headers A and B


- drag to the right with the mouse button
depressed
- power method
- move the cursor to the vertical line separating two
columns
- when the cursor changes, double-click
- Excel automatically adjusts the width, increasing or
decreasing the width as necessary, to accommodate the
longest item and allowing for a little extra space
- delete the dummy data name used to determine
width
- and note that the labels in A8 and A9 are now
visible
column B
- ask your self these questions:
- what is the largest test score that a student can
earn?
- will the test scores be entered as whole numbers only or
with decimal points?
- if decimal points will be used, how many decimal
points?
- be sure to also consider the size of the numbers that
will appear in rows 7 (Total Possible) and
8 (Class Average)
- enter 888 (or 888.8 or 888.88)
for a sample score, then increase or decrease the width of
column B as needed (why did we enter
888???)
- delete the sample score
columns C and D
column E
- enter 888 (or 888.8 or 888.88)
for a sample score, then increase or decrease the width of
column E as needed (again, why did we enter
888???)
column F
- ask yourself these questions:
- will you display the % score with or without decimal
points?
- if with, how many?
- enter 888% (or 888.8% or 888.88%) into one cell and then
increase or decrease the width of this column as necessary
- the % symbol may not be displayed when you enter this
sample number, or more or fewer decimal places may be displayed
then you entered
-
whenever
you enter the % symbol, Excel automatically converts the
number to the percent format (see how numbers are displayed
below) and sets the number to a
default percent format style
- delete the sample number you entered
column G
- the label Grade is wider than any letter
grade
- increase or decrease the width of this column to be just
wider than this label
Now Let's Consider How data is displayed
|
It
is important to note that this format dialog box ONLY
affects how data is displayed. Calculations are based
upon the actual numbers to the limit of the computer's
memory and the capabilities of the program.
|
Cell Range B3:E9
- select the cell range B3 through E9 (all
cells in this range are numeric and will be displayed alike)
- choose Format
Cells
then click the Number
tab
- click on [Number] under <Category>
- select the number of decimal places
- other choices (these do apply to this gradesheet but are
important)
- select whether or not to use a comma separator
- select how negative numbers are to be displayed
- note the message Number is used for general display
of numbers. Currency and Accounting offer specialized
formatting for monetary value.
- if you do not find a number format to your liking,
select Custom
- click <OK>
- select the cell range F3 through F7 (the
percent scores)
- choose Format
Cells
then click the Number tab
- click on [Percentage] under
<Category>
- select the number of decimal places
- if you do not find a percentage format to your liking,
select Custom
- click <OK>
You may wish to explore the other tabs in this dialog box!
|

|
You really should check out the Custom options.
Click here
now! Just do it!!
|
Now It is Time to Enter Formulas &
Functions
|
The
FILL commands result in a multiple copy/paste operation.
The program will copy the contents and any formatting of
the first cell in the range selected and then paste that
information into each of the other cells selected.
|
The Total Points Column
click in cell E3
- what does this cell represent?
- the sum of the three cells to the left in the same
row
- that is, Total Points equals the sum of
Test 1 + Test 2 +
Test 3
- what we want, then, is a function to perform that
summation
- choose Insert
Function
or click the Paste Function
button on the Standard Toolbar 
- the Paste Function Dialog Box appears
- the scrollable list on the left, Function
Category, lists the groupings or categories of
functions (Excel contains over 200 functions!); note the
category Most Recently Used
- the scrollable list on the right, Function
Name, lists the functions contained within the
category selected
- below these boxes is a message area showing the
format of the selected function with an explanation of
what that function does
- find the SUM function
- click once on it
- then click
<OK>
- the function wizard dialog box opens as
shown on the right
there
is no need to use this, it is a little bit of overkill
and if you do, the argument of the function may
not be expressed as a proper
range
which can
be a problem if you insert new column(s)!
- click <OK> in the function
wizard dialog box
Excel
may not like this, you may get an error message
- if so, disregard it, click <OK>
- an incomplete SUM function will now appear
in the formula bar
- note the cursor is flashing between the parentheses
as Excel is waiting for you to complete the argument of
the function
- drag over the cells B3, C3, and
D3; note how the argument is updated
We
have employed the drag
method to build a formula/function
- the correct function will read
=SUM(B3:D3)
- press <RETURN> / <ENTER> to enter the
function, or click on the green check mark
|
 |

The Function Wizard dialog box. |
|

The incomplete SUM funtion in the formula bar. |
|
You may also use the AUTOSUM button  on
the Standard Toolbar to enter the
SUM function. |
- cells E4 through E8
- what do these cells represent?
- the same as E3, that is the sum of the three
cells to the left in the same row
- select the cell range E3 through E8
- choose Edit
Fill
Down (or press Ctrl + D in Windows, Cmd +
D in Macintosh Excel 98 or earlier) or use the Fill
Handle (use the Back button in your browser to return to
this point)
- all cells now have the correct formula
The Average Row
- click in cell B9
- what does this cell represent?
- the class average score for Test 1, that is,
the average of B3 through B7
- choose Insert
Function
or click the Paste Function
button on the Standard Toolbar

- the Paste Function Dialog Box appears
- find the AVERAGE function, click once on it,
then click <OK>
- follow the same procedure as described above for the
SUM function to bypass the function wizard
dialog box
- use the drag
method to build a function, again as
described above
- the correct function should read
=AVERAGE(B3:B7)
- press RETURN> / <ENTER> to enter the
function, or click on the green check mark
|
Once
you enter the correct AVERAGE function,
you will get an error message. Depending upon the
width of your column, you will see either
###### or #DIV/0!. What do these
error messages mean?
- Whenever the width of a column is too narrow to
display numeric data, Excel displays
###### as a signal that numeric data is
present but your column is too narrow. Adjust the
width of your column as needed.
- The second error message, #DIV/0!,
is the division by zero error message. In this
situation, this is an error message that is to be
expected since no data is in the cells. To further
explain, you need to understand how the
AVERAGE function operates. In reality, the
AVERAGE function is the
SUM function divided by the COUNT
function. As you already know, SUM
adds the numbers it finds in a range of cells. The
COUNT function counts the numbers it
finds in a range of cells. The operative phrase in
both cases is the numbers it finds.
SUM, COUNT, and AVERAGE
only calculate numbers in a selected range, cells
without numbers are excluded. Since no numbers are
found in this case, nothing plus nothing is being
divided by zero.
|
- select cells B9 through E9
- all of these cells represent class test averages
- choose Edit
Fill
Right (or press Ctrl + R in Windows, Cmd +
R in Macintosh Excel 98 or earlier) or use the Fill
Handle (use the Back button in your browser to return to
this point)
- #DIV/0! will appear where no data has been entered
yet
|
If
you know the function name and how its arguments are
structured, you can bypass the Paste Function command and
the Wizard, and enter the function in the
formula bar manually. In fact, the only reason to use the
Paste Function command is to look up the name of a
function when you are not sure how the function name is
spelled. For example, you want to compute the average of
a column of numbers. Is the function name MEAN,
AVERAGE, AVE, or AVG? All are
commonly accepted as meaning average but which is the
function name used by Excel? When you are unsure, look it
up using the Paste Function command. When you already
know, just enter the function directly.
|
The % Score Column
- click in cell F3
- what does this cell represent?
- the result of dividing the total points earned (one
cell to the left) by the total points possible
(E8)
- enter an equals sign ( = ), then click in cell
E3, enter a division symbol (the forward slash or
/ ), then click in E8
Note:
this procedure of clicking in cells to build a formula or
function is referred to as the
point-and-click
method
- press <RETURN> / <ENTER>
- select the cell range F3 through F7
- choose Edit
Fill
Down (or press Ctrl + D in Windows, Cmd +
D in Macintosh Excel 98 or earlier) or use the Fill
Handle (use the Back button in your browser to return to
this point)
- #DIV/0! will appear in the cell since no data
has been entered yet
- do all cells have the correct formula?
Relative v. Absolute Referencing
By default, spreadsheets utilize
Relative Referencing in
formulas and functions. A Relative
Reference expresses the location of a cell relative to the
location of the current cell. For example, consider the function
currently in E3
- =SUM(B3:D3)
This calculation is actually interpreted as
- go 3 cells to the left in row 3 and get the
number
- then 2 cells to the left and get the number
- then 1 cell to the left and get the number
- then add the 3 numbers
- and put the result in E3
When you copy and paste, or Fill, Microsoft Excel will change
the references to reflect the relative position from the new
source cell. Thus, Relative
Referencing will not work for the Fill Down operation
for the % Score calculation because the divisor must
always be the data in E8. For this formula, you need to
tell the spreadsheet to employ Absolute
Referencing. In other words, take the data one cell to
the left (Total Points) and always divide by E8
(Total Possible). An Absolute
Reference stays the same when you copy and paste, or Fill.
To enter an Absolute Reference, type
a dollar sign ($) before each part of the cell reference.
Specifically in this case, change the formula in F3 to
read
- =E3/$E$8
This formula is interpreted by Microsoft Excel
- as go one cell to the left
and always divide by E8.
The Grade Column — Using the
IF Statement
- click in cell G3
- what does this cell represent?
- the grade the student has earned based upon the
grading scale
- the best way to assign the grades is to use
the IF function
- the format of this function is =IF(test,
action if true, action if false) where
- test represents a test or condition that
you establish that can only be answered as true
(yes) or false (no)
- action if true is what the computer will
do if the result of the test is true
(yes)
- action if false is what the computer will
do if the result of the test is false
(no)
-
- given a grading scale of 90-80-70-60, then the function
for G3 is:
- =IF(F3>=0.8995,"A",IF(F3>=0.7995,"B",IF(F3>=0.6995,"C",IF(F3>=0.5995,"D","F"))))
explaining the IF function
- consider a simple Pass/Fail grading scale where
70 or better is Pass, less than 70 is Fail
- the IF statement for this would be
-
- =IF(F3>=0.6995, "Pass", "Fail")
-
- if the student achieved 70% or better, the result of
the IF test would be True and the action
if true would be to assign the grade of
Pass
- if the student achieved anything less than 70%, the
result of the IF test would be False and
the action if false would be to assign the grade
of Fail
- why is the IF test F3>=0.6995?
-
- consider a more complicated grading scale, A/B/C (90-80-70)
where 90 or better is A, 80 or better but less than 90
is B, and anything less than 80 is C
- the IF statement here would be
-
=IF(F3>=0.8995, "A",
IF(F3>=0.7995, "B", "C"))
- if the student achieved 90% or better, the result of
the IF test would be True and the action
if true would be to assign the grade of
A
- if the result of the IF test is False,
does the computer know if the student should
get a B or a C
?
- the answer is NO!
- so the action if false is to pose another
test, i.e., ask the question is F3>=0.7995?
- if the student achieved 80% or better, the
result of the second IF test would be
True and the action if true would be
to assign the grade of B
- if the student achieved less than 80% then the
result of the second IF test would be
False and the action if false would
be to assign the grade of C
-
- now can you interpret the IF statement for this cell?
Entering the IF Statement
- enter the IF statement as given above in G3
- select the cell range G3 through G7 and
Fill Down as described above or use the Fill
Handle (use the Back button in your browser to return to
this point)
Why are Quotation Marks Used in the IF Statement?
You should have noted the use of quotation marks in
constructing the IF statements described above. In each
example, the grade was enclosed in quotation marks such as
"Pass", "Fail",
"A", "B", "C". However,
quotation marks are not always used to enclose the action-if-true
and action-if-false portions of the statement. So when do you used
quotation marks and when to you not? The answer is whether the
action is a number or it is text.
When
is a number a number and not text? The easiest way to
tell the difference is to ask yourself if it would make
sense to add or subtract numbers within the spreadsheet.
If addition/subtraction (or any other mathematical
operation!) makes sense, then it is a number; if not,
then it is text. This is very important when you
construct IF statements. Reexamine the example IF
statements above. In the IF statements involving grades,
the words Pass, Fail, A,
B, C, D and F are all
enclosed in quotes. These items are nonnumeric, math
operations do not make sense. In fact, whenever any
character is enclosed in quotation marks, the computer
treats that character(s) as nonnumeric. On the other
hand, if the action of the IF statement is to place a
number in a cell, and that number is to be mathematically
manipulated, then you must never enclose that number in
quotation marks! |
The Final Touches, Borders and
Fills
Now It is Time to Test the spreadsheet
test 1
- enter 100 in B8 for the total possible for
Test
1
- enter test scores for the first test
- I would suggest entering 90,
80,
70, 60, and
59
- does the spreadsheet assign the correct grades, is the
class average correct?
- the students should have received grades of A,
B, C,
D, F
- make any necessary corrections
the other tests
- enter 100 for the total possible for Test 2 then
enter some scores
- are the calculations correct?
- enter 100 for the total possible for Test 3 then
enter some scores
- again are the calculations correct?
Make any necessary corrections
|
It
is imperative that you test any spreadsheet BEFORE you
begin to use it with actual data. When performing such
tests, use data that you can calculate in your head so
you know what the results should be! Try entering data
that is at the break points. That is why, for
example, it was suggested that you enter 90,
80, 70, 60, and 59 in
the above test. If the gradesheet correctly assigns a
C to a student with 60, then it should
assign as C to a student with 60-something and
so forth.
|
Now Let's Enter Actual Data
Click here to
review the example completed
spreadsheet
Clear any test dataEnter names and data for the three tests
-
when
you enter names, should you enter them first/last
name or last/first name? If you want to
sort by names, you should do the latter
-
if
this were an actual spreadsheet and you wanted to have it
keep track of the grades during the semester, you would
enter the total possible for a given test only when you were
about to enter the scores for that test. Otherwise, every
student would have an F until you entered the last
test.
-
Saving the Worksheet
If you wish to keep this worksheet for later reference, choose
File
Save and give it the filename
GRADES.XLS. See also the discussion on templates
(be sure to press the Back button in your browser to return to
this point).
Now Let's Sort the Data
A single-key sort considers
only one item when sorting. For example, you may sort a list of
students alphabetically without regard to grade. A
multiple-key sort considers
first one item, then a second, etc. For example, you may sort a
list of students based upon grade, then sort the data
alphabetically. The result will be that all students that earned
an A would be sorted alphabetically, then all of the
B students, etc. Another example of a multiple-key sort
is a list of references in a bibliography. The first key
is the author's last name, the second is the author's first
name, etc.
Using the Sort Buttons
sorting your gradesheet by name (alphabetic sort)
- click on cell A3 to make it the active cell
- select the rows 3 through 7 by dragging over
the row labels
- click on the Sort Ascending button


on
the Standard Toolbar
sorting your gradesheet by grade (numeric sort)
- select rows 3 through 7 by dragging over the
row labels
- <TAB> until F3 is the active cell (rows
3 through 7 should still be selected)
- click on the Sort Descending button


on
the Standard Toolbar
|
The
Sort buttons on the Standard Toolbar permit single-key
sorts, while multiple key sorts require the Sort
command. When using the Sort buttons, the sort key
is determined by the active cell. Thus, to sort by name,
the active cell must be in column A; to sort by grade,
the active cell must be in column F (or column G).
|
Using the Sort Dialog Box
This dialog box permits you to perform multiple key sorts as
well as utilize other sorting options not available by using the
sort buttons. You must select the range
of data to be sorted first before opening this dialog
box.
- select the range A2:G7
- yes, you are selecting the column labels as well as the
data to be sorted!
- choose Data
Sort
- make sure that the <Header row> button is selected in
the section [My list has] as shown
- this tells Excel that the first row you selected
contains labels not data
- note that the dropdown lists for [Sort by],
[Then by], [Then by] use the names of the
columns, not the letters A, B, etc.
- choose Total Points as shown for [Sort by]
and click <Descending> (highest score first)
- the [Sort by] box is the primary key for the
sort
- select a secondary key if you wish in the first [Then
by] box
- select a tertiary key if you wish in the second [Then
by] box
- click <OK> to initiate the sort
Copyright
©
2003
last updated
August 12, 2003