MS Excel Lesson 7
MS Excel Lesson 7
SOFTWARE ORIENTATION
Formatting Excel Worksheets
Excel 2016 provides many tools to enhance the look o your worksheets whether viewed
onscreen or in print. o improve how a worksheet displays on a computer monitor or to
prepare a worksheet or printing, you will use commands mainly on the Home tab and the
Page Layout tab, shown in Figure 7-1. Using and applying ormatting options rom the com-
mand groups on these tabs ensures that your worksheets are more use ul, more readable,
and more attractive.
Themes group Page Setup group Scale to Fit group Sheet Options group
Figure 7-1
Home tab and Page Layout tab command groups
97
98 Lesson 7
4. To insert several rows at once, click the row 25 heading, hold down the Ctrl key, and
then click row headings 34 and 43. Right-click any o the selected rows and then select
Insert rom the shortcut menu. Blank rows appear above the selected rows, so that
data or each messenger is separated by a blank row.
5. Click the column D heading to select the entire column. This column contains the
delivery zone.
6. On the Home tab, in the Cells group, click the Delete button arrow and then select
Delete Sheet Columns. The Zone column disappears.
Formatting Worksheets 99
7. Right-click the row 3 heading and select Insert rom the shortcut menu. In cell A3, type
Zone 1.
8. Select A3:I3. On the Home tab, in the Alignment group, click the Merge & Center
button. The “Zone 1” text is centered across the data columns.
9. SAVE the workbook in your Excel Lesson 7 older as 07 Messenger Row-Column
Solution.
Te column heading or row heading is its identi ying letter or number. You select an entire
column or row by clicking its heading. o select multiple adjacent columns or rows, click the rst
column or row heading, hold the Shi t key, and then click the last heading. You can also select
multiple nonadjacent columns or rows. Just click the rst column or row heading, and then hold
down the Ctrl key while clicking other headings.
Figure 7-3
Double-clicking the boundary
line between columns G and H
2. Click anywhere in column H. On the Home tab, in the Cells group, click the Format
button arrow and then select Column Width. In the Column Width dialog box, in the
Column width text box, type 16 and then click OK. All content in column H appears.
3. Click and hold the boundary under the row 3 heading. Drag the line up to decrease the
height o row 3 to 18, as shown in Figure 7-4. Notice that a ScreenTip appears as you
drag the boundary line, showing you the height o the row in points (the frst number)
and pixels.
100 Lesson 7
Figure 7-4
Decreasing a row’s height by
dragging the boundary line
4. Select row 2. On the Home tab, in the Cells group, click the Format button arrow and
then select AutoFit Row Height. With the row still selected, click the Format button
arrow again and then select Row Height. The Row Height dialog box indicates that the
row is 18.75 points in height. Click OK.
5. SAVE the workbook.
Row height, or the top-to-bottom measurement o a row, is measured in points; one point is
equal to 1/72 inch. Te de ault row height is 15 points, but you can speci y a row height o 0 to
409 points. Column width is the le t-to-right measurement o a column. Although you can
speci y a column width o 0 to 255 characters, the de ault column width is 8.43 characters (based
on the de ault ont and ont size). I a column width or row height is set to 0, the corresponding
column or row is hidden.
As you learned in Lesson 2, when the text you enter exceeds the column width, the text over ows
to the next column, or it is truncated when the next cell contains data. Similarly, i the value
entered in a column exceeds the column width, the #### symbols appear, which indicate the
number is larger than the column width.
Take Note o quickly AutoFit the entries in all rows on a worksheet, click the Select All icon in the upper-le t
corner o your worksheet (at the intersection o column and row headings), then double-click one
o the row boundaries.
Depending on the alignment o the data in your columns, worksheet data may appear crowded
or too loose when you use the AutoFit Column Width option because this option adjusts column
width to the exact width o the longest entry in the column. Tere ore, a ter using this option,
you may want to use the mouse to drag the right column boundary or any columns that seem
crowded or have too much white space. White space is the empty area o a document, in which
no content appears.
Take Note You can use the Format Painter to copy the width o one column to other columns. o do so, select
the heading o the rst column, click the Format Painter, and then click the heading o the column
or columns to which you want to apply the column width.
In Excel, you can change the de ault width or all columns on a worksheet or a workbook. o do
so, click Format and then select De ault Width. In the Standard Width dialog box, type a new
de ault column measurement. Note that when changing the de ault column width or row height,
columns and rows that contain data or that have been previously ormatted retain their ormat-
ting.
Formatting Worksheets 101
Figure 7-5
The Date and Time columns
are no longer visible in the
worksheet.
3. Click in any cell. The green line disappears, and the boundary between columns C and
F is a double vertical line (see Figure 7-6), which indicates hidden columns.
4. Select row 3. On the Home tab, in the Cells group, click the Format button arrow, point
to Hide & Unhide, and then select Hide Rows. Row 3 is now hidden.
5. Select rows 2 and 4. Right-click the selection and select Unhide. Row 3 is now visible.
6. SAVE the workbook.
Troubleshooting When you select rows 2 and 4 to unhide the hidden row, you must select them in a way that
includes the hidden rows. Press Shift when you select row 4 or select row 2 and drag to include
row 4. If you select row 2, press Ctrl, and then click row 4, the hidden row will not unhide.
Additionally, selecting only the data in the rows will not release the hidden row.
A worksheet may contain rows or columns o sensitive or extraneous data that you are not using
or do not want to be visible while you are working in other areas o the worksheet. Using the Hide
command simply hides them rom view, but they still exist in the worksheet.
o make hidden rows visible, select the row above and the row below the hidden row or rows and
use the Unhide Rows command. o display hidden columns, select the adjacent columns and
ollow the same steps used or displaying hidden rows.
You can use the Go o eature, introduced in Lesson 1, to nd a hidden row or column and then
make it visible.
Figure 7-7
Transposed data Original data
Transposed data
USING THEMES
A document theme is a prede ned set o colors, onts, and efects that can be applied to
a workbook. You can use document themes to easily ormat an entire document and give it a
resh, pro essional look. Temes are also used in other O ce applications, such as Microso t
Word and Microso t PowerPoint, enabling you to give all your O ce documents a uni orm look
in terms o colors, onts, and efects. Effects, such as shadows or bevels, modi y the appearance
o an object.
Excel has several prede ned document themes. When you apply a theme to a workbook, the col-
ors, onts, and efects contained within that theme replace any styles that were already applied to
cells or ranges.
Figure 7-8
The Themes gallery
104 Lesson 7
6. Click Sheet2. Notice that the ont changed on that sheet as well.
7. Click Sheet1 to return to the main worksheet. Click the Home tab, and then in the
Styles group, click the Cell Styles button arrow to display the Cell Styles gallery. Notice
that the color schemes or the various groups have changed. This is because a new
document theme has been applied, and several built-in cell styles were created using
theme onts and colors.
8. SAVE the workbook as 07 Messenger Theme Solution and then CLOSE the fle.
Te de ault document theme in Excel 2016 is named O ce. Document themes are consistent in
all Microso t O ce 2016 programs.
Applying a new theme changes onts and colors, and the color o shapes and SmartArt, tables,
charts, and other objects.
Remember that cell styles are used to ormat speci c cells or ranges within a worksheet; document
themes are used to apply sets o styles (colors, onts, and ll efects) to an entire document.
Many built-in cell styles use theme-aware ormatting, so applying a new theme determines which
onts and colors are used by styles. Tat’s why you noticed a change in the Cell Styles gallery a ter
applying the new theme in the exercise. However, styles are independent rom themes in that you
can change styles regardless o the theme that’s applied to a document.
Take Note When you apply a heading cell style to text and then increase the ont size o that cell, the ont size
will not change a ter applying a new document theme. I you don’t change the ont size o heading
text, apply a heading cell style, and then apply a new theme, the heading text will display in the
de ault ont size or the new theme.
You can choose to show or hide gridlines in your worksheet. By de ault, gridlines are present when
you open a worksheet. You can also choose whether gridlines are printed. A printed worksheet is
easier to read when gridlines are included.
Figure 7-9
Print Preview showing
gridlines
Gridlines appear
in the preview
7. In the upper-le t corner o the Print window, click the Return to document button to
return to the worksheet.
8. SAVE the workbook as 07 Messenger Appearance Solution and then CLOSE the fle.
Lesson 3 introduced you to Backstage view, Print Preview, and some printing options.
Print Preview is the screen that appears when you click the File tab and then click Print, or i
you click Print Preview in a dialog box that provides the button. In Print Preview, you can see what
your document will look like be ore sending it to the printer.
On the Header & Footer ools Design tab that displays when you insert a header or ooter, the
Header & Footer group contains prede ned headers and ooters that allow you to automatically
add text to the header or ooter, such as the date, page number, number o pages, name o the
sheet, and so on. You also can create a custom header or ooter by manually typing the text you
want to include.
3. Click the center header text box (which displays the “Add header” placeholder text).
Click the Header & Footer Tools Design tab now that it has become active. In the
Header & Footer Elements group, click Sheet Name. The code &[Tab] appears in the
text box (see Figure 7-10).
Figure 7-10
Adding a header in Page
Layout view
Three header text boxes: le t , center, and right Excel inserts a sheet code
7. SAVE the workbook as 07 Messenger Header-Footer Solution and then CLOSE the fle.
You can populate headers and ooters by selecting one or more prede ned elements in Excel, which
inserts codes into the header or ooter. When your workbook is printed, Excel replaces these codes
with the current date, current time, and so on. You can view how the headers and ooters will look
by using Print Preview in Backstage view.
Many o Excel’s prede ned headers and ooters combine one or more elements. In the previous
exercise, you inserted a combined entry by clicking it. You can then customize the appearance o
your header or ooter in Page Layout view. Within this view, once you have the header or ooter
selected, you can modi y the appearance o the text it contains using the Font group on the Home
tab. In this way, you can change options such as the ont type or size, or add special efects to your
text.
Formatting Worksheets 107
Print area text box Rows to repeat at top (also called print titles)
Figure 7-12
The Page Setup dialog box,
Sheet tab
108 Lesson 7
5. Click Print Preview. The Print Preview window appears. Click the right arrow at
the bottom o the screen to advance to the second page. The frst our rows o the
worksheet appear on the second page (see Figure 7-13). Click the left arrow to return to
the preview o page 1.
Navigation arrows
A page break is a divider that breaks a worksheet into separate pages or printing. Excel inserts
automatic vertical page breaks (shown as a broken line) based on paper size, margin settings, scal-
ing options, and the positions o any manual page breaks (shown as a solid line) that you insert.
Excel provides a Page Break Preview window in which you can quickly adjust automatic page
breaks to achieve a more desirable printed document.
Figure 7-14
Page Break Preview showing a
horizontal page break
3. Click and hold the horizontal automatic page break and drag it upward so it is now just
below row 46. The automatic page break is now a manual page break represented by a
solid blue line.
4. On the View tab, in the Workbook Views group, click Normal.
5. SAVE the workbook.
Use manual page breaks to control page break locations. You can drag an automatic page break to
a new location to convert it to a manual page break.
Another way to insert a manual page break is to click a cell in the row where you want a page break
to occur, then click the Page Layout tab. In the Page Setup group, click Breaks and then Insert
Page Break. A horizontal page break appears.
Setting Margins
Margins are an efective way to manage and optimize the white space on a printed work-
sheet. Achieving balance between data and white space adds signi cantly to the readability
and appearance o a worksheet. In Excel, you can choose one o three built-in margin sets,
or you can create custom margins using the Page Setup dialog box.
3. At the bottom o the menu, click Custom Margins. The Page Setup dialog box opens to
the Margins tab, as shown in Figure 7-15.
Figure 7-15
The Page Setup dialog box,
Margin settings
Margins tab
4. Change the le t and right margins to 1.4. This will make the margins wider than normal.
5. Check the Center on page Horizontally check box. The content in your worksheet will
print centered between the le t and right edges o the page.
6. Click Print Preview. The page is centered horizontally, as shown in Figure 7-16.
Figure 7-16
Print Preview shows the page
centered horizontally.
Te Margins menu includes prede ned Normal, Wide, and Narrow settings. Te Normal
margin setting is the de ault or a new workbook. Narrower margins allow more area or
data when you print a workbook, where wider margins will introduce more white space. You
can also set custom margins in Excel.
When you click Custom Margins at the bottom o the Margins menu, the Page Setup dialog box
opens with the settings that have been applied to the active worksheet. You can change any o the
settings to create a custom margin setting. Header and ooter margins automatically adjust when
you change the page margins.
Worksheets that do not ll an entire page can be centered vertically and horizontally, thereby
evenly distributing the page’s white space. Use the Margins tab o the Page Setup dialog box to
set these eatures.
o quickly remove all manual page breaks rom a worksheet, on the Page Layout tab, in the Page
Setup group, click the Breaks button arrow and then select Reset All Page Breaks.
Orientation is the way your workbook or worksheet appears on the printed page. Tere are two
settings: Portrait and Landscape. Portrait is a vertical printing o the workbook, and Landscape
is the horizontal aspect. By de ault, all workbooks and worksheets are printed in Portrait. Use the
Landscape orientation when the width o the area you want to print is greater than the height.
Data is easier to read when all the columns t on one page. Tis can o ten be accomplished by
changing a worksheet’s orientation to Landscape. When you can’t t all o the data on one printed
page by changing the orientation, you can shrink or reduce it using Excel’s scaling options, as
described in the next exercise.
112 Lesson 7
Figure 7-17
Viewing the worksheet a ter
scaling it to ft on one page
CLOSE Excel.
Te most common reason or scaling a worksheet is to shrink it so that you can print it on one
page. You can also enlarge the sheet so that data appears bigger and lls up more o the printed
page. When the Width and Height boxes are set to Automatic, you can click the arrows in the
Scale box to increase or decrease scaling o the printout. Each time you click the arrow, the scaling
changes by 5%.
Take Note Te Width and Height settings must be set to Automatic i you want to speci y a scale, such
as 75%.
Formatting Worksheets 113
Knowledge Assessment
Multiple Choice
Select the best response for the following statements.
1. Which o the ollowing statements describes how to increase or decrease a column’s
width?
a. Right-click anywhere in the column and select Format Cells.
b. Use the Page Setup dialog box.
c. Drag the boundary next to the column heading.
d. Select a Width setting in the Scale to Fit group on the Page Layout tab.
2. Which o the ollowing dialog boxes is used to transpose rows and columns?
a. Page Setup
b. Paste Special
c. Column Width
d. Row Height
3. In which o the ollowing locations are check boxes that you can select to view or print
gridlines?
a. In Print Preview
b. On the Home tab, in the Cells group
c. On the Page Layout tab, in the Sheet Options group
d. On the Page Layout tab, in the Page Setup group
4. Which o the ollowing statements describes how to unhide a hidden row or column?
a. Select a range o cells in the row or column, right-click, and select Unhide.
b. Use the Page Setup dialog box.
c. Remove all page breaks.
d. Select the rows/columns be ore and a ter the hidden rows/columns and then right-
click and select Unhide.
Projects
CLOSE Excel.