Holiday Gift Tax
Spreadsheet
In the classroom portion of this lesson, a fictitious
anonymous benefactor gave you $5000 to spend on gifts for your
family and friends. You could purchase no more than 3 items for
yourself and at least 10 items for other people. Your goal was to
spend as much of the money as possible. In the computer lab, you
will now create a spreadsheet that will calculate sales taxes and
totals. An IF statement will be used to calculate sales tax based
on the 8% tax charged in Lewisville, or 8.25% tax charged in
Dallas. You will also create a formula which calculates the
amount of spending money that you have spent after each purchase.
You will then create a formula that checks whether your answers
are correct.
- Start Microsoft Excel.
Points to Remember about
Spreadsheets
Formulas - math problems written in a way that
the spreadsheet understands.
- Formulas begin with =
- Use cell names (E3)
instead of values ($47.52)
in formulas.
- DO create formulas like this =D2+F2
- DON'T create formulas like this =132.36+8.93
Functions -
special programming words that make the spreadsheet perform a
desired math operation.
- When using functions like SUM, the range
has a starting cell name and an ending cell name.
Ex. =SUM(B2:B36) where B2 is the
starting cell and B36 is the ending cell.
- An IF function is used to tell the
computer how to make decisions, so
you don't have to. To calculate the sales
tax on a gift purchased in Lewisville or Dallas, the
computer would make the following decision and
calculations. Was the gift purchased in Lewisville? If
true multiply the price by
8%, if false multiply the
price by 8.25%. Here is what the spreadsheet formula
would look like:
=IF(E2="L",D2*.08,D2*.0825)
where E2="L"
is the comparison/decision, D2*.08
is the calculation for true, and D2*.0825
is the calculation for false.
Making Columns Wider
- If #### is displayed in a column, then
the column is too narrow to display the data. So...
- To adjust the widths of columns,
- Click on the column label for the column to
adjust.
- Move your mouse pointer to the vertical line
between the selected column and the column to the
right. when your mouse pointer is over the
vertical line, the mouse pointer will change to a
two-headed arrow.
- Double-click to make the column as wide as the
widest text in the column OR...
Click and drag left or right to adjust the width
of your column to the desired width.
- Release the mouse button when the column is the
correct width.
Copy and Pasting
- To copy and paste, highlight the cell(s) to copy, click
on the copy button, highlight the cell(s) to paste to and
click on the paste button.
Independent Practice
- On the menu bar, click on File|Save As
- In YOUR folder on the NETWORK drive, save the file as Teachername-GIFTTAX-lastnamef
Adding Your Name Header
- On the Menu Bar, click on View|Header and
Footers...
- In the Page Setup dialog, click on Custom
Header... button.
- Click in the white space under Center Section.
- Type your full name, your teacher's name, and your class
period. See example below.
Joe Schmoe
Mrs. Gipson
Period 6
- Click on OK.
- Click on OK.
Setting Up Your Spreadsheet Printing Properties
- Click on File|Page Setup...
On the Page tab
- On the Page tab, choose Landscape
orientation.
- Choose Fit To: 1 page(s) wide by 2 tall
scaling.
- Click on the Margins tab.
On the Margins tab
- Set the top margin to 1.5 inch.
- Change the bottom margin to 1 inch.
- Change the left margin to .5 inch.
- Change the right margin to .5 inch.
- Choose Center on Page Horizontally.
- Click on the Header/Footer tab.
On the Header/Footer tab
- Do you recognize what you typed in earlier?
- Click on the Sheet tab.
On the Sheet tab
- Under Print Titles click in the box to the right of Rows
to repeat at top:
- Type 1:1
- Under Print, choose Gridlines.
- Click on OK.
Type your Column Headings
- Type the column headings in the following cells:
A1 - Gift Given To:
B1 - Gift
C1 - Store Name
D1 - Gift Price
E1 - City
F1 - Sales Tax
G1 - Amount Paid
H1 - Total Spent
- Click on the row 1 label on the far left
side. The entire row should be selected.
- Make the column headings bold.
- Adjust the column widths so that all text is displayed in
the header row. If you don't remember how, click here.
Changing the Number Format to Display $ in columns D, F, G, and H
- Click on column label D.
- On the Formatting Toolbar, click on the $ Currency Style tool.
- Repeat for columns F, G and H.
Typing the data.
- Type in your data for Gift Given To:, Gift,
Store Name, Gift Price,
City (L for Lewisville, D for Dallas) for each of the people
in your list.
- TYPE ONLY THE ABOVE ITEMS from your
paper spreadsheet.
Setting up your Sales Tax formula.
When you calculated this
by hand, you did the following comparison and calculation
automatically. You looked at the gift, if
the gift was purchased in Lewisville, you multiplied by a
different tax rate than for gifts purchased in Dallas. Now we
have to tell the computer how to do the same thing.
- Click on cell F2.
On the Formula Bar/Formula dialog
- Click Insert/Function and a dialog box will pop up.
- Select IF from the list and click OK.
- In the box to the right of Logical_test, type E2="L"
- In the box to the right of Value_if_true, type D2*.08
- In the box to the right of Value_if_false, type D2*.0825
- Click on OK.
Setting up your Amount Paid and Total Spent
formula.
- Click on cell G2.
- Type a simple formula to calculate the Amount Paid for the
gift (price + sales tax). If you don't remember how,
click here.
- Click on cell H2.
- Type the Total Spent formula, =G2
Copying and Pasting the Sales
Tax, Amount Paid and Total Spent formulas
to the remaining cells.
Why would you want to retype this stuff? Copying and Pasting is
much better, yes?
- Copy the F2 and G2
formulas and paste to F3 and G3.
If you don't remember how, click here.
- Click on cell H3.
- Type a slightly different Total
Spent formula =H2+G3
Why did we need a different formula? Think about
it.
- Copy the F3, G3, H3 formulas and paste
to the remaining F, G, and H cells.
Creating a Total Gift Price formula for Gift
Price.
- Click on the row number of your last gift row of data and REMEMBER
that number.
- From now on, if you see #, you will
substitute your row number for that variable.
- On the row below the last row of gift data in your
spreadsheet, click on the cell in column D.
On the Formula Bar/Formula dialog
- Click Insert/Function and a dialog box will pop up.
- Select Sum from the list and click OK.
- In the box to the right of Number_1, type D2:D# where # is the row number of your last gift data
row.
- Click on OK.
Creating a Total Sales Tax formula for Sales
Tax.
- On the row below the last row of gift data in your
spreadsheet, click on the cell in column F.
On the Formula Bar/Formula dialog
- Click Insert/Function and a dialog box will pop up.
- Select Sum from the list and click OK.
- In the box to the right of Number_1, type F2:F# where # is the row number of your last gift data
row.
- Click on OK.
Creating a Total Amount Paid formula for Amount
Paid.
- On the row below the last row of gift data in your
spreadsheet, click on the cell in column G.
- Set up a formula to calculate the Total
Amount Paid using what you have learned above.
Creating a Check My
Work Formula
- On the row below your last row of gift data in your
spreadsheet, click on the cell in column I.
On the Formula Bar/Formula dialog
- Click Insert/Function and a dialog box will pop up.
- Select IF from the list and click OK.
- In the box to the right of Logical_test, click on the Total
Amount Paid cell (bottom of column G), type =, and then click
on the last Total Spent cell in your list (bottom of column H.)
Yours should be similar to the
following example: G43=H42
- In the box to the right of Value_if_true, type Congratulations!
SPELLING IS
IMPORTANT
- In the box to the right of Value_if_false, type Check
Your Work! SPELLING
IS IMPORTANT
- Click on OK.
Setting up Conditional Formatting
- Click on your Check My Work
formula cell.
- Click on Format|Conditional Formatting...
- Under Condition 1, click on the middle box down
arrow and choose not equal to...
- In the box on the right, type Congratulations! SPELLING IS IMPORTANT
- Click on the Format button.
- Beneath the word Color:, choose red.
- Click on OK
- Click on Add>>
- Under Condition 2, click on the middle box down
arrow and choose equal to...
- In the box on the right, type Congratulations! SPELLING IS IMPORTANT
- Click on the Format button.
- Beneath the word Color:, choose green.
- Click on OK
- Click on OK
Setting your Print Area
- Highlight ALL of your data.
- Click on File|Print Area...|Set Print Area
- Check spelling and your numbers, do a reality check to
make sure your calculations are correct.
- Observe your Check My Work formula cell. Is the
value displayed in green?
If not, there are things to fix.
- You may now change the fonts and styles to suit you. The
only requirement is that the data must be
readable and approved by your
math teacher who will be grading this
assignment.
Call a teacher to check your work
before you print... Congratulations on completing this project.
For more information about this lesson, please
contact Jeff
Skelton, Computer Literacy Teacher,
Lewisville ISD