10 2tree Inventory Directions
10 2tree Inventory Directions
10 2tree Inventory Directions
1. Open the data file Tree_Inventory located on Canvas an save the workbook as
YourName_Tree_Inventory
View the labels related to the types of trees in inventory and the related data. The six labels include:
Quantity in Stock, Item #/Category, Tree Name, Retail Price, Light, and Landscape Use. This data can be
sorted and filtered a number of ways. However, a problem exists. The current layout does not allow the
data to be sorted by Category name because the category is connected with the Item # in the same cell.
The resolve this, two columns will be inserted to allow for greater functionality by using the Flash Fill
feature.
RECALL as an example: a cell range such as A1:G1 means to select the first cell i.e., A1 and select
through ( : ) the last cell reference G1. When done correctly, cells A1, B1, C1, D1, E1, F1, G1 will be
selected. The concept is true for selecting columns.
FLASH FILL
2. Select column headings C:D by putting mouse on column C heading, click, hold and drag across
to column D, right click on any area of the selected columns and select Insert.
Note: Two blank columns are inserted on the right of Column B.
3. Click cell C11 type 13129, click the Enter button on the Formula Bar to remain in C11.
4. While in cell C11, click Fill button in Editing Group, click Flash Fill.
Note: The range is populated with the first part of the content in Column B and the Flash Fill
Options button appears on the lower right corner of cell C11; click the Flash Fill Options button
to view the options that exist.
5. Click cell in D11, type Oak, click the Enter button on the formula bar.
6. While in D11, press Ctrl +E (shortcut for Flash Fill). If you are a Mac user, this may not work. You
can use the Flash Fill button.
Note: Flash Fill extracts the text from the Item#/Category column and inserts Category as a
label for the column. Item # and Category content are in two separate columns and now the
data can be sorted and filtered by both Item # and Category.
7. Column B is no longer needed. Select Column B, by putting mouse on Column B heading, right
click and click Delete.
Another way to delete a column: click in a cell of the column you want to
delete, click on the down arrow and select Delete Sheet Columns located
in the Cells group under the Home tab.
And still there is another way: Click on the column heading, click on the Delete button (not the
arrows) and the column will be deleted.
Excel identifies what is selected and provides options based on what is selected.
Excel Tree Inventory Status Report
MOVE A COLUMN
8. In cell B10 type Item # as a label and press Enter
9. Select Column C, click Cut in the Clipboard group OR use the shortcut Ctrl + X. Click cell H1. Click
the top part of the Paste button OR use the shortcut Ctrl + V to paste. The labels should be on
the same row.
10. Column C is now empty and is no longer needed. Select Column C, right click and select Delete
11. Select Columns A:G, click Format in the Cells group and click on AutoFit Column Width.
Another way to AutoFit Column Widths: Select columns, move pointer to the right of a selected
column heading border to display the double headed arrow as shown below and double click
12. Select range A1:H1, apply Merge & Center then apply Title cell style.
13. Select range A2:H2, apply Merge & Center then apply Heading 1 cell style.
14. Edit cell A2 by adding a comma and the current year after December 31. The label in A2 should
read December 31, current year (not the words CURRENT YEAR, but the current year we are
living in)
2|P a g e
Excel Tree Inventory Status Report
In the next step, you will move a range of cells. There are two ways to do this: 1: Select and use the
drag and drop feature 2: Select and us the cut and paste buttons in the Clipboard group. Either one is
fine to use.
23. Select range A4:B8. Point to the right edge to display a 4 headed arrow pointer; click, hold and
drag and drop the cell range to D4:E8.
The hashtags ###### mean the column is too narrow and does not accommodate the data that
is in the cell.
24. Select Columns D:E, double click the right boundary of Column E to AutoFit the columns to
accommodate the widest entry.
25. Select range D4:E8, apply 20%-Accent 1 Cell Style
ROTATE TEXT
26. In cell C6 type Tree Statistics and press Enter
27. Select range C4:C8 right click over selection, click Format Cells click Alignment tab. Under Text
control check Merge cells, under Orientation click in the Degrees box and type 30. Click OK.
When done correctly, it will look like the figure below.
In the next steps, you will insert multiple rows. There are a few ways to do this. The F4 key is the
repeat key that repeats the last action. This may be helpful in the event you did not select the
3|P a g e
Excel Tree Inventory Status Report
correct number of rows or if you find it easier to push a button to perform the task. If you do not
have the F4 key functionality, you will need to use one of the long ways to insert rows.
29. Right click on Row Heading 9, click Insert to insert a blank row
30. Press the F4 key two times to repeat the last action and insert two additional blank rows.
A total of 4 blank rows should exist
Another way: select row headings 9:11, right click, click Insert (this inserts 3 blanks rows versus
one at a time)
Any time you insert a row adjacent to a row that is formatted, the format is automatically applied to the
new inserted rows. No Worries. Use the CLEAR ALL or CLEAR FORMAT feature to fix this. Use the
feature that is best for the task at hand when you are in the workplace.
31. Select Row Headings 9:11, in the Editing group, click Clear button then select Clear Formats to
remove the blue shade formatting
Observe the SUM function in cell E4. The range was adjusted and refers to the appropriate cell
range A14:A42. This is the benefit when moving a range of cells. This is NOT the case when
copying a range of cells.
COUNTIF FUNCTION
The COUNTIF function counts the number of items in a range that meets a specific criteria. The
COUNTIF function has 2 arguments. 1: the Range of cells to assess and 2: the Criteria or what to look
for to include in the count. The COUNTIF function may be typed directly in the cell or the fx button can
be used which opens the function dialog box to guide you step by step.
32. In cell A10 type Oak Trees and press Tab to go to cell B10
33. In cell B10 click on the fx button, type COUNTIF in the Search for a function box and click on GO
OR if the function is listed in the Select a function box, click on it and click OK
34. In the Range box, type G14:G42 OR use the collapse box to select the range as shown below.
This may be the better choice if you are not a good typist and make many typing errors. When
using the collapse box to select the range there is nothing to type, instead you visually select the
desired range.
35. Click in the Criteria box type Oak, Press the tab key. Notice the Quotation marks are placed
around the word Oak which is vital. When typing the function, these need to be typed in order
for the function to work. Click OK.
When done correctly, the result in cell B10 will be 13
Another way: Type =COUNTIF, when it appears in the formula menu, press the TAB key, select
the range G14:G42, type a comma, type “Oak”. Explore and try it without the quotes and see
the result 0
4|P a g e
Excel Tree Inventory Status Report
36. While in B10, click the Align Left button in the Alignment group
IF FUNCTION
The IF function will perform a calculation, return a value, number or text based on a logical test. Logical
Tests use logical operators i.e., > >=, <, <=, < >. There are 3 arguments: 1. Logical Test, 2. Value If True,
3. Value if False. The syntax is as follows:
This can be typed directly in the cell or the fx function dialog box may be used
In this section you will create an IF function to show the word ORDER if the Quantity in Stock is less than
75. This may be helpful to know when to place an order to avoid running out of inventory or to alert of
a specific status. Businesses can then take the appropriate action to be proactive versus reactive. The IF
function will return the word OK if the Quantity in Stock is 75 or greater.
click on cell A14, type <75, click the collapse button on the far right to reopen
40. Press Tab or click in the Value_if_true box, type Order, Press the Tab key. This applies the
needed quotation marks and moves the cursor to the next box.
41. In the Value_if_false box, type OK. Press the Tab key. Click OK
Another way: The entire formula can be typed in cell H14. =IF(A14<75,”Order”,”OK”)
42. While in H14, use the fill handle to copy the function down through cell H42.
The Fill Options Button appears. Click on it to see the options that exist.
Another way: while in H14, put mouse on fill handle and double click. This populates the
remaining cells without having to drag down. This is an excellent short cut in the event you have
200 or 1000 entries!
As with EVERY function you perform, either here or in the workplace, you should always check your
work. Look at the OK result in cell H18. Recall your criteria was less than 75 and not equal to 75. In
the workplace, be mindful of what you want i.e. less than < or less than or equal to <=
5|P a g e
Excel Tree Inventory Status Report
CONDITIONAL FORMATTING
Conditional Formatting is special formatting that uses font, font color, background fill, and other
options that may be applied if cell values meet specific criteria which uses Logical Operators.
In this section you will apply a Conditional Formatting to a range of cells. The format applied can
be one of the pre-set formats that is available as shown in the figure below, or you can create your
own by selecting Custom Format. You will create a Custom Format.
47. If needed, click the Font tab, under Font Style: click Bold Italic.
48. Under Color: click on the down arrow click Red. Click OK and OK again
When done correctly, only the word Order will be bold, italic with font color Red.
To test this, change A14 to 1 and observe how the result in H14 changes from OK to Order. Click
Undo button on the Quick Access Toolbar as shown in the figure below or press Ctrl + Z to return the
value back to 78
In the next steps you will apply a different type of Conditional Formatting: Data Bars.
6|P a g e
Excel Tree Inventory Status Report
50. Point to Data Bars, under Gradient Fill, click Red Data Bar
51. Select range F14:F42. In the Home Tab, under the Editing group click Find & Select, in the drop
menu click on Replace
52. Type Erosion in the Find what box.
53. Press Tab or click in the Replace with: box and type Erosion Control
54. Click Replace All, (13 replacements are made) Click OK, then click Close. Click in any cell to
deselect the selection
FREEZE PANES
Freeze Panes will freeze rows or columns based on the current location of the active cell. The rows
above the active cell are frozen and the columns on the left of the active cell are frozen. If you only
want rows frozen, then put the active cell in Column A. There is nothing to the left of Column A so only
rows will be frozen. This is very helpful when you have a large worksheet and need access to labels for
data entry or analysis.
7|P a g e
Excel Tree Inventory Status Report
When you convert a range into a table or in other words, when you apply the Format as Table feature to
a range of cells you will be able to do the following: 1. Add and delete records which the format
automatically adjusts accordingly 2. Change values in the fields 3. Sort and filter data 4. Determine
subtotals for numeric fields 5. Display records that meet comparison criteria 6. Analyze data using
database function.
62. Click in cell A13 (where the labels are located); click the Insert tab, click Table in the Tables
group.
63. Make sure My table has headers is checked. Click OK.
The default table format is Blue, Table Style Medium 2. A new tab appears: TABLE DESIGN
Click in any cell in the table to deselect the selection
Notice the drop-down arrows that appear next to each label to provide various sorts and filters
based on your needs. These are called filter buttons.
64. Click the Retail Price arrow. Click Sort Smallest to Largest. After you apply this, look at the filter
button. It changes as shown below
65. Click the Category arrow then click Sort Z to A. Notice the sort from Retail Price is gone and
now the Category column is sorted. The filter button changes as shown below.
Each time you sort, the data is rearranged to provide the sort you want for that one column. Using the
sort in this way allows you to sort only one column at a time.
8|P a g e
Excel Tree Inventory Status Report
The advanced sort button allows you to sort multiple columns. You are welcome to explore this on your
own. Click on Data tab and click on the Sort button in the Sort and Filter group and observe the options
that are available.
symbol with a down arrow which means this is filtered (not sorted). Multiple columns
can be filtered.
68. Click any cell in the table. In the Table Design tab, check Total Row in the Table Style Options
group.
When done correctly, the word Total appears in A43 AND the value 6 appears in H43. This
means 6 values meet this criteria for this filter.
69. Click in cell A43. Notice a down arrow appears. Click on the down arrow and click Sum. The
Quantity in Stock for these 6 items is 571
70. In cell A11 type Maple Trees, press Tab.
71. In cell B11 type 6 (571 total items in stock) and press Enter
72. Select row 13 and apply Center alignment
9|P a g e
Excel Tree Inventory Status Report
79. While in the Page Setup dialog box, click the Header/Footer tab, click Custom Footer. Click in the
Left section, click the Insert File Name element as shown in the figure below.
80. Click in the Right section: and type your first and last name. Click OK twice.
81. Apply Landscape Orientation: Page Layout Tab, click Orientation button in the Page Setup group,
click Landscape
82. To Preview your worksheet, press Ctrl + F2 OR click on File then Print. In should be on 1 page as
shown below
83. Click Save and submit on Canvas
10 | P a g e