Excel 2007
Knowledge for Physics
OpenOffice, a free alternative to Excel can be downloaded by click here or going to .
Objectives
- Learn how to use Microsoft Excel
- Learn how to insert data into a spreadsheet
- Learn how to format data and cells in Excel
- Learn how to sort data in Excel
- Learn how to do calculations in Excel
- Learn the difference between absolute and relative cell
references
- Learn how to add rows and columns in Excel
- Learn how to insert text boxes in Excel
- Learn Learn how to create graphs in Excel
- Learn how to add and format trendlines in Excel
What is Microsoft Excel?
Microsoft Excel is a spreadsheet program which allows one to enter
numerical values or data into the rows or columns of a spreadsheet, and
to use these numerical entries for such things as calculations, graphs,
and statistical analysis. Excel and other spreadsheet programs are used
throughout the world in jobs, ranging from
Accounting to Actuaries, from Insurance Agencies to Manufacturing
industries, and in Academia and Science related fields like biology and
physics.
Vocabulary
- Absolute
Reference – Absolute ranges
have a $ character before the column portion of the reference and/or
the row portion of the reference. The $ character indicates
to Excel that it should not increment the column and/or row reference
as you fill a range with a formula or as you copy a range. If you enter
=A1 in a cell and then fill that cell down a column, the '1' in the
reference will increment in each row. Thus, the formula in row 50 would
be =A50. However, if you enter =$A$1 in a cell and fill down, the range
reference will remain $A$1 -- it will not increment as you fill or copy
down a column.
- Automatic
Cell Filling – The ability to fill out some
cells with values that belong to a common series.
- Cell – the small boxes where data exists
in a spreadsheet
- Column
– Cells that are in a vertical line of each other
- Function – just like in math, an
operation
performed on variables or constants
- Rows
– Cells that are in a horizontal line of each other
The Assignment
Your assignment is to complete all of the steps below and submit to
your course instructor all of the pages that you are asked to print in
the document below. These pages should be submitted in the order they
appear, and should be stapled together.
Formatting
- Select boxes A6 through E6
- Right click on the selected boxes and choose Format Cells.
- Chose the alignment tab
- Under Text Alignment choose Horizontal: Center.
- Under Text control choose wrap text.
- Choose the font tab
- Under Font Style chose bold
- Choose the boarder tab
- Select a lower boarder only
- At this point you should notice that the distance,
acceleration, and force cells need to be resized.
- Click at the top of the column window between B and C you
can changed the width of the column so that Distance is on the first
line and (m) is on the second.
- Adjust the column with for acceleration too
- For Force cell put to extra spaces after the word Force.
- Click on cell A1
- Select bold and underline from the home menu
- At this point, realizing adjusting column A would make it
out of proportion with the table so we will need to move the data from
column B to the right and merge certain cells.
- Now select B2, B3, and B4
- Use the cut function
- Click on C2 and paste the data
- Select A2 and B2
- Right click on the selected cells
- Choose format cells
- Click on the Alignment Tab
- Under Text Controls click Merge cells.
- Press OK
- Select A3 and B3
- Right click on the selected cells
- Choose format cells
- Click on the Alignment Tab
- Under Text Controls click Merge cells.
- Press OK
- Select A4 and B4
- Right click on the selected cells
- Choose format cells
- Click on the Alignment Tab
- Under Text Controls click Merge cells.
- Press OK
- Realizing at this point that we have never accounted for
the initial position, we need to add the data below the mass line.
- Right click on the "5" of row 5
- Select insert
- Merge cell A5 and B5
- In A5 type "Initial Velocity (m/s) -"
- Expand column B to make everything in the step above fit
into A5 and B5
- In C5 enter "0"
- For acceleration and force we need to make the 2's an
exponent.
- Click on D7
- In the formula bar select the "2"
- In this menu, under effects, choose Superscript.
- Repeat this process to superscript the 2 in cell E7,
- There is also a need to standardize the decimal value
of the cells associated with these calculations.
- Chose cells B8 through E17.
- Right click in the selected cells.
- Choose format
- Select the number tab.
- Under "Category" choose "Number"
- In the middle of this widow make sure the decimal places
are marked "2"
- Click OK
Calculations
- We are going to calculate the acceleration using the
equation a=(2d-vo*t)/(t2)
- Click in box D8
- Type "="
- Type "("
- Type "2"
- Type "*"
- Click on cell B8
- Type "-"
- Click on cell C5
- Type "*":
- Click on cell C8
- Type ")"
- Type "/"
- Type "("
- Click on cell C8
- Type "^"
- Type "2"
- Type ")"
- Type enter
- Now we are going to calculate force (F=m*a) in cell E8.
- Click on E8
- Type "=" (Note: every formula starts with an
equals sign)
- Click on Cell C4 (Note: Here you are calling the value from
cell D8)
- Type "*"
- Click on cell D8
- Type enter
- select D8 and E8 and perform an automatic cell fill
down to row 17 by clicking in the lower right hand corner of the
selected window and dragging selection box down.
- At this point you should notice there are some errors.
These errors are caused because when we auto fill, it adjust the cell
values in the formula to match the reference location for each row. For
example what was called B8 in row 8 would be called B9 in row 9 or B10
in row 10. This is good because it uses the data on the left to
calculate the values on the right. But this becomes bad when you have a
parked piece of data like the mass and the initial velocity. You have 2
options here. The first is to make another column and repeat the same
mass in each row. This looks messy and shouldn't be done for
professional work. Option 2 is to make an absolute reference
which will make the called value not increment when you auto fill.
There are 3 reference styles which are listed below.
$A$1 |
Both
the column and row reference are fixed. Neither will be incremented or
changed during a copy or fill operation.
|
$A1 |
Only the column reference is fixed.
It will not change during a fill or copy, but the row will change.
|
A$1 |
Only the row reference is fixed. It
will not change during a fill or copy, but the column will change. |
The way we are going to do this is as follows
- Click on cell D8
- In the formula bar change C5 to $C$5
- Press Enter
- Now auto fill the acceleration calculations again.
- Note: The force values changed when you changes the
Acceleration column
- Click on cell E8
- Make C4 Absolute by changing it to $C$4
- Press Enter
- Auto fill the Force calculations.
Now you want to calculate the average of a row and also calculate
percent error. This will allow us to see how to call some built in
functions of the program.
- Enter into cell A18 "Average="
- You may need to adjust the width of column A slightly to
make it fit
- In B18 type "="
- To the left of the formula bar a drop down menu will now
appear.
- Select Average in this menu.
- A box should now appear.
- In this box there are 2 cells listed next to "Number1."
These cells probably B8:B17. This is read B8 to B17. The average
function will then take the average of the numbers between these 2 cells.
Note: if you want to change this range you may type in the cell range
or you may click and drag across the cells you want to use to select
the cells.
- Make sure you are taking the average of B8:B17 and then
press "OK"
- Now auto fill B18 to the right getting the average of Time,
Acceleration and Force.
- Select Cells A18 through E18
- Format the cells using the properties, boarder tab
and adding a top boarder only.
- Select cells A8 to E18
- Press the center function in the alignment box of the home
tab
- Click on cell A18 and bold face the text in this box.
- Select cells B18 through E18
- Right click and select format cell
- Click on the the Number tab
- Under categories make sure "number" is selected
- Change the decimal places to 1. We need to do this because
when we look back at our original distance data, there were some
measurements only read to the tenth spot. We need to accurately portray
the averages with the correct number of significant figures.
- Select cells C2 through C5 and left justify them with the
function button in the alignment box of the home tab.
- In cell A20 type "Theoretical Acceleration="
- In cell A21 type "Experimental Acceleration="
- In cell A22 type "Percent Error="
- Select Cells A20 through C20
- Right click and choose format cell
- In the Alignment tab select merge cells
- Also in the Alignment tab, under text alignment, choose
Horizontal Right (Indent)
- Select Cells A21 through C21
- Right click and choose format cell
- In the Text alignment tab select merge cells
- Also in the Alignment tab, under text alignment, choose
horizontal right (indent)
- Select Cells A22 through C22
- Right click and choose format cell
- In the Alignment tab select merge cells
- Also in the Alignment tab, under text alignment, choose
horizontal right (indent)
- Type in D20 "9.8" and press enter
- In D21 Type "=" then select D18 and press enter
- Now we are going to calculate the percent error which is equal to |(theoretical-experimental)/theoretical)|*100%
- In D22 type "="
- Then from the function drop down bar next to the formula
bar select "More Functions..."
- In this more function widow you can see that excel has a
wide variety of functions ranging from taking the squre root, to suming
a set of data, trignotetic functions. The function we want to use now
is the absolute value function.
- Choose all from the catagory window
- Then select ABS and press ok
- You could have also searched for the function.
- In the function window that now appears type the following "("
- Now click D20
- Type "-"
- Click D21
- Type ")"
- Type "/"
- Click D20
- Your fomula should look like the box below.
The
reason we multiply this by 100% is because we want to convert it from a
decimal percent into an actual percentage. We don't need to do this in
excel because under the format window, we can convert it. - Right click on D22
- Select Format Cell
- Click on the Number tab
- Under catagory choose percentage
- For the decimal places again choose 1
- Click ok
- Choose A20 through A22
- Select Bold from the font box of the home bar.
- In E20 type m/s2
- In E21 type m/s2
- Format E20 and E21 super script the 2 to make it look lik m/s2
Sort- Click on the Data tab
- In cell B25 type "Unsorted"
- In cell D25 type "Sorted"
- In cell E25 type "Number"
- Bold and Underline the the words in cell B25, D25, and E25
- Enter the data found in the image below
- Select B25 through E34
- Center information
- Select cells D26 through D34
- Select the Data Tab
- In the Sort & Filter Box select Sort A to Z
- Expand the selection to include E26 through E34
- Click Sort
Note
the data in the sorted column is now in order, while the data in the
number column still matches up with the value it was next to in the
unsorted chart.
|