Skip Menu

Return to Skip Menu

Main Content

Excel

Using Excel to Manage Grades | Tips & Shortcuts

 

EXCEL 2007 SHORTCUTS

(UNLESS OTHERWISE NOTED YOU ARE WITHIN A WORKSHEET OF A WORKBOOK.)

 

 

1. To change from a Relative to an Absolute Reference (or vice versa) within a formatted cell(s) highlight the formula in the formula bar then use the F4 key as a toggle. 

   To type an Absolute reference preface the column and the cell address with a dollar sign, e.g., =C14/$A$10 .  If this formula is copied to other cells the C14 will change but the A10 will be constant.

 

2. Realigning, changing the number of decimals, etc. only changes how the number is displayed and printed, it DOES NOT change the number itself.  The number '60' may appear in a cell but the typed-in value may be '59.9998723.  If the cell is highlighted this number can be found at the top of the screen in the formula bar (unless this displays a formula).  To change number of decimals highlight the column or cell(s), right click, select Format Cells -> Number, then change the number of decimals. Click OK.

 

3. To center a title over multiple columns highlight all the columns you need (cells must be blank) then either:

Right click, select Format Cells -> Alignment and put a check in Merge Cells and click OK, or, Click on the Home tab, then click the Merge&Center button on the Toolbar.

To unmerge the cells click Format Cells -> Alignment -> uncheck the Merge Cells box -> OK.  (The area you want to unmerge must be highlighted.)  Or, on the keyboard Ctrl + z to undo if this was the last change you made.

 

4. To print your spreadsheet with gridlines click the Page Layout tab -> Gridlines, put a checkmark in Print.  Printing gridlines is not the default in Excel 2007.

 

5. You can create a histogram from a column (or row) of scores. 

   First, check to see if you have a Data Analysis group under the Data tab.  If you don't find this group you will need to "Add-in" the Analysis ToolPak.  (Earlier versions of Excel did not require this.)

   Under the main Office menu (top left corner) click on the Excel Options button.  In the left-hand column click Add-Ins.  Click OK.  You should now see the Data Analysis group.

   You will need to make a column of "break points" for your histogram. If you have room just use the same worksheet, if not, you can put it on another one.  See the example below.

Click on Data tab -> in the Analysis group, click on Data Analysis -> Histogram -> OK. Type in the location of the Scores in the Input array:  A2:A9 Type in the location of the "Break Points" (Bin array):  B2:B7 Place a check mark in the Chart output box (to get a bar chart of the data). If you want you can place the histogram on the same page as the data, just change the radio button from "New Worksheet" to "Output Range".  Write the location in the space to the right:  D2  (You just need the cell address of the upper-left corner.) Do not check "Labels" if you have not included the column headers within your arrays. Click OK.

You can resize the histogram chart by clicking within the chart to bring up the sizing boxes, then just click and drag the boxes to make the chart any size you want.

 

ScoresBreaksBinFrequency
   

Excel Histogram

 

10

6

6

1

8

7

7

1

8

8

8

3

9

9

9

1

7

10

10

2

10

11

11

0

8

 

More

0

6

   
    

 

6. If you use the MIN or MINA functions to find the minimum value in a range of cells and you have a blank cell within the range the functions will ignore the blank and find the minimum of the values. 

5  3  4  4     3  2  5   =min(a1:h1) would = 2 not 0

 (This is probably NOT what you want to do.  See the "To fill in..." below for replacing blanks with 0s.  You may need to do this if you are dropping a grade.)

MINA can be used if you have cells with blank in them (it will assume that the blanks are 0).

 

5  3  4  4    3  2  5   =mina(a1:h1) would = 0

 

7. To fill in a region of a spreadsheet containing some blank cells with a constant number (0 in the example below) do the following:

Highlight the region containing the blank cells you want to change. Home tab -> in Editing group, Find & Select -> Go To Special -> Blanks -> OK In the active blank cell type in =0 then hold down the CRTL + Enter keys.  (If you just hit Enter it will fill only the active cell.) Note that each of the filled cells has a "=0" in the formula bar.

      If you want to fill blank cells with characters do steps 1-3 above then type in the word with a leading single quote mark, e.g., 'Fall then hit CRTL + Enter.  This is different from instructions for Excel95 version. 

 

8. If you want to drop a score from a series of scores you first need to find the minimum value in the series.  You can use the MIN or MINA function to put that value into a new column.  Then just sum up all the scores in the series (Columns A, B, and C below) and subtract the minimum value (Column D).  Put this formula in Column E Row 1.  It is, in this case, =SUM(A2:C2)-D2 .  This formula can then be copied into the rest of the column.  If you want you can omit creating a new column for the minimum and put the combined function into a cell:  =SUM(A2:C2)-MINA(A2:C2).

 

RowCol ACol BCol CCol DCol E
1ScoresScoresScoresMinumumResult
21067617
3872215
483N/A011
5903012
65 445

 

Note the error in Row 6 because B6 was left blank and not filled with a 0 or N/A before the MINA function was used.  Also, if you use =A2+B2+C2 instead of =SUM(A2:C2) you will get a #VALUE error for Row 6.

An alternate method is to use the function SMALL to find the smallest number in a range.  It can also be used to find the next smallest, etc.  LARGE can be used to find the largest number in a range. 

If one of the values is N/A then the result will be the smallest number other than the N/A. If one of the values is missing then the result will ignore the blank cell and pick the smallest of the remaining values. If you have both a missing value and a N/A within the series of numbers then the result will be the smallest of the remaining values. 

An example of the SMALL function used with Row 6 above is:  =small(a6:c6,1) where "1" is the first smallest number.  The answer is 4.

 

9. If you want to replace the formula in cells with the value produced by the formula do this:

Select the cell or cells. Under Edit, click on Copy. Under Edit, click on Paste Special. In the Paste section, click on Values. Click on OK at the bottom. Click on Escape to get rid of the box around the cells.

You can UNDO this but after you save the changes you can never get the formulas back. 

This may be something you will need to do if you want to use the summing formulas and you have #N/A placed in cells from a formula.  The summing and averaging formulas won't work with #N/A.  However, you can use the SUMIF function to ignore #N/As

 

10. Information about the FREQUENCY function:

(1) If you have any #N/As in the column of numbers (input array) you won't get any results except #N/A in all the results array.  In the example below you want the frequencies for the numbers in Column A.

(2) Blank cells in the column of numbers will be ignored and not counted up.

(3) Type your breaks in an empty column.  Make sure you have enough break points.  Numbers are not "rounded" up or down.  A list of breaks, such as 10, 20, 30 really means to collect the numbers into the following groups: 0-10, 11-20, 21-30, and 31+ (This is what the extra cell is for in the output array.)  The breaks are listed in Column B.

RowCol ACol BCol CCol C After
295#2
3106#0
487#0
588#2
699#2
7510#1
85 #0

 

Here are the steps after you have decided on your input array and have typed in a breaks array.

Highlight cells in a blank column of your worksheet equal to the number of breaks + 1.  (Must be in a column, not a row.)  In the example above it would be the cells in Column C that have a # sign in them.  You can either use the function (on the Menu above it looks like a fx) or you can type the frequency function directly. If you use the function from the Menu it should make a good guess where the input and bin arrays are.  Correct them if necessary.  Hit return.  OR, you can type in the following:  =frequency(a2:a8,b2:b7) in the top highlighted cell but DO NOT HIT Enter.

The a2:a8 refers to the column of input numbers.    (input array)

The b2:b7 refers to the column of break points + 1.  (bin array)

Instead of hitting Enter you need to use the combination keys of CTRL + Shift + Enter.  This is how you hand enter an array into a function, otherwise the cell references will increment when you move from cell to cell in your output array. (a2:a8 will become a3:a9, etc.

You may have a FREQUENCY function window pop up where you can type in the input and bin arrays (or just highlight them).  Don't hit OK or Enter.  You still need to use the CTRL + Shift + Enter keys if you have not highlighted the column where the frequency array will go.  (If you just hit OK the frequencies will be wrong.)

 

11. To eliminate the first 5 columns of a ID# (for posting purposes) use the MOD function.  This function divides a given number and outputs just the remainder.

Example:   904157985 in cell A1

Result:         7985 when using =MOD(A1,10000) in cell A5 

 

12. Use the SUMIF function instead of the SUM function when you have #N/As in some of the cells.  You specify the range of cells you want to sum and the criteria to be used:

      A1      B1     C1     D1      E1

       3    #N/A      5      8      =SUMIF(A1:D1,">0")

This will produce the answer 16 in E1 without having to remove any #N/As from the file.  Make sure to use double quotes to surround the criteria.  The example above will test to make sure that the value in each cell is both numeric and greater than zero.  You can change this if you wish to include negative numbers.  The function SUMIF can contain 3 options:  range, criteria, and sum range but you usually omit the last one.

You can specify a group of cells to add even if they are not in a contiguous range.

=SUM(A1, C1, H2)  This will work even if some of the cell contents are missing.

 

13. Quote marks:  The curly kind (smart quotes) won't work in formulas (if you  copied a formula from WORD).  Use only the straight kind.  You can turn them off in WORD in 2 places.  In the Menu click on Format -> AutoFormat -> Options -> AutoCorrect.

 

14. If you are trying to match numbers (using VLOOKUP, etc.) and it doesn't work it could be that one of the columns was put in as Text instead of Numbers or General.  If so, you need to convert the text-style to numeric.  The way to do this is to first copy the column (A) into another column (say F).  Then use the formula =f2*1 or whatever to convert the character in f2 into a number.  Drag the formula down the column.

 

15. If you want to merge 2 columns, say first name (column A) and last name (column B), use the following formula in column C:

=A1&" "&B1  The " " puts a space between the contents of the two columns.  Drag the lower right corner down to automatically fill the rest of the column with the formula.  You can delete columns A & B if you want.  You won't find directions for this under "merge"; it's under "consolidation".

 

16. If you have a column of "text" numbers** and want "real" numbers do the following: 

(1)  In a blank column (same row as original "text" number) enter this formula:  =VALUE(Cell#)  

     Example:  Cell A2 contains 0288 (text), formula goes in C2: =value(a2)

     (This may not work if the 1st column has text numbers.  You will need to highlight Column B and change the Format to Number first.)

(2)  If you have lots of cells to convert drag the fill handle down to copy the formula into the rest of Column C.

(3)  Now you need to remove the formula from the cells in Column C.  Highlight all the cells in Column C.  Under Edit, click Copy.  Under Edit click Paste Special and select Values.  Click OK.

Now you're left with just numbers in the cells.  If you need to match this number using VLOOKUP then Column C needs to be in the Column A position.  Add a new blank column in front of current Column A and then Copy & Paste the numbers into it (or just make the blank "newA" column first then proceed with the formula).

**You can tell "text" numbers from "real" numbers by the way they look in a cell.  Text numbers are left justified, real numbers are right justified.