MSBA-171 · Lesson 2 of 12 · 22 min
Managing worksheets and workbooks
▶ Video coming soon A video version of this lesson is on the way.
The second Tuesday began with a workbook Rosalind called "the attic". It was the vendor file: eleven worksheets named Sheet1 to Sheet11, three of them hidden, a page-setup that printed one column per page, and comments from 2023 that nobody had resolved. "By the end of today," Dagny said, "this will be something we could send to a venue manager without blushing." The tasks they worked through cover a large part of the first MO-210 domain: arranging worksheets, finding your way around, setting up pages, and preparing a workbook to share.
Working with worksheets
Every worksheet has a sheet tab at the bottom of the window. Right-clicking a tab opens a menu with most of the commands you need; the same commands are also on the Home tab under Cells > Format and Cells > Insert or Delete.
| Task | Quickest method |
|---|---|
| Insert a worksheet | Select the plus button after the last tab, or Shift+F11 |
| Rename | Double-click the tab and type; names can be up to 31 characters and cannot contain / \ ? * : [ ] |
| Move or copy | Drag the tab; hold Ctrl while dragging to copy; or right-click > Move or Copy for another workbook |
| Tab color | Right-click > Tab Color |
| Hide and unhide | Right-click > Hide; right-click any tab > Unhide and pick the sheet |
| Delete | Right-click > Delete (this cannot be undone) |
Teo renamed the sheets Vendors, Venues, Caterers, Florists, Rentals and Contracts, colored the supplier sheets green and the contract sheet gold, and moved Contracts to the end. Three hidden sheets turned out to hold an old price list, a vendor survey and a sheet of lookup lists used by drop-downs. Dagny unhid the lists sheet, renamed it Lists, and then hid it again: hiding is a perfectly good way to keep helper data out of the way, as long as people know it exists.
The Move or Copy dialog is worth knowing for the exam because it can do two things the mouse cannot. Its To book list moves or copies a sheet into another open workbook, or into a new one. Its Create a copy check box makes a copy instead of moving. A copy of a sheet called Vendors becomes Vendors (2), which you then rename.
Grouping worksheets
Select several tabs at once and you group them. Ctrl+click picks individual tabs; Shift+click picks a run of tabs; right-click > Select All Sheets picks every one. While sheets are grouped, the title bar shows [Group], and anything you type or format on one sheet happens in the same cells on every grouped sheet. This is the exam's skill "format multiple worksheets by grouping them". Teo grouped the five supplier sheets and, in one pass, set column A to 28 characters wide, bolded row 1 and applied the same header fill to all five.
Grouping is also the easiest way to damage a workbook. If you forget to ungroup and then type a phone number into one sheet, it lands in the same cell of every grouped sheet, overwriting whatever was there. Right-click any tab and choose Ungroup Sheets, or click a tab that is not in the group, as soon as you finish.
Finding your way around
Lesson 1 showed the Name Box and keyboard moves. The exam's "navigate within workbooks" objective adds three more tools.
Find and Replace (Home > Editing > Find & Select, or Ctrl+F and Ctrl+H) searches the sheet or the whole workbook. The Options button reveals the settings that matter: Within (Sheet or Workbook), Search (By Rows or By Columns), Look in (Formulas, Values, Notes or Comments), Match case and Match entire cell contents. Find All lists every match with its sheet and cell, and clicking a result jumps to it. Teo used Replace to change "Harbor" to "Harbor" across the workbook in one go, with Within set to Workbook.
Go To (F5 or Ctrl+G) lists named ranges and lets you type any address, including one on another sheet such as Venues!B12. Its Special button opens Go To Special, which selects cells by type: blanks, constants, formulas, comments, conditional formats, data validation, visible cells only, and more. Selecting blanks in the Phone column showed Dagny at once which vendors had no number on file. Selecting Formulas showed which cells were calculated, a quick audit for typed-over values.
Hyperlinks link a cell to a web page, a file, an email address or a place in the workbook. Select a cell and use Insert > Link (Ctrl+K). The Insert Hyperlink dialog has four choices on the left: Existing File or Web Page, Place in This Document (a sheet and cell reference, or a defined name), Create New Document and E-mail Address. Text to display sets what the cell shows and ScreenTip sets the pop-up text. To remove a link, right-click the cell and choose Remove Hyperlink; the text stays, the link goes. Teo added a contents sheet at the front of the vendor workbook with one link per supplier sheet, each pointing to cell A1 of that sheet.
Worked problem
A link to a place in the workbook
An exam task says: "On the Contents worksheet, in cell B4, insert a hyperlink to cell A1 of the Florists worksheet. Display the text Florists." How do you complete it?
Show solution
- Select Contents!B4 and press Ctrl+K.
- Choose Place in This Document.
- Type A1 in Type the cell reference, and select Florists under Cell Reference.
- Type Florists in Text to display and select OK.
Answer: Place in This Document is the right choice for a location inside the workbook; the display text is set in the same dialog.
Rows and columns
The exam asks you to adjust row height and column width. Drag the boundary between column letters or row numbers; double-click the boundary to AutoFit to the longest entry. For an exact size, select the columns and use Home > Cells > Format > Column Width (measured in characters of the default font) or Row Height (measured in points). The same menu has AutoFit Column Width, AutoFit Row Height and Default Width. Selecting several columns first applies the size to all of them.
Hiding rows and columns works the same way as hiding sheets: right-click the headings and choose Hide or Unhide. To unhide column A, which has no column to its left to select across, type A1 in the Name Box, press Enter, and use Format > Hide & Unhide > Unhide Columns.
Page setup
The vendor sheet printed one column per page because it had been set to portrait, with no scaling and a forgotten print area of column A. The Page Layout tab's Page Setup group fixes all of that:
| Command | What it sets |
|---|---|
| Margins | Normal, Wide, Narrow or Custom Margins, including header and footer distance and centering on the page |
| Orientation | Portrait or Landscape |
| Size | Letter, Legal, A4 and others |
| Print Area | Set Print Area, Clear Print Area, Add to Print Area |
| Breaks | Insert or remove manual page breaks at the active cell |
| Background | A picture behind the sheet on screen (it does not print) |
| Print Titles | Rows to repeat at top and columns to repeat at left on every page |
Beside it, the Scale to Fit group sets Width and Height to a number of pages or a Scale percentage. Setting Width to 1 page and Height to Automatic is the usual fix for a wide list: every column fits across one page and the rows run onto as many pages as they need. The Sheet Options group has separate View and Print check boxes for Gridlines and Headings. The dialog box launcher on Page Setup opens the full Page Setup dialog with four tabs: Page, Margins, Header/Footer and Sheet. The Sheet tab holds the print area, print titles, gridlines, black and white, draft quality, row and column headings, comments and notes printing, error printing and page order.
Print titles solved the vendor list's other problem: page two had no column headings. In Page Setup > Sheet, Dagny set Rows to repeat at top to row 1 (Excel writes it as a reference to rows 1 through 1), and every printed page then started with the headings. Print titles are not the same as Freeze Panes; one affects printing, the other the screen.
Setting a print area
A print area is a range that Excel prints instead of the whole used range. Select the range and choose Page Layout > Print Area > Set Print Area. Excel stores it as a defined name, Print_Area, scoped to that sheet, which you can see in the Name Manager. Add to Print Area adds another range, which prints on its own page. Clear Print Area removes it. Teo cleared the old print area on column A and set a new one on A1:H58, the active vendors, leaving out the archived rows below.
Headers and footers
Excel headers and footers print in the top and bottom margins of every page. The quickest way to edit them is Insert > Header & Footer, which switches the sheet to Page Layout view and puts the insertion point in the center header box. The header and footer each have three sections, left, center and right, and a contextual Header & Footer tab appears with buttons that insert codes rather than fixed text:
| Button | Code inserted | Prints as |
|---|---|---|
| Page Number | &[Page] | The current page number |
| Number of Pages | &[Pages] | The total page count |
| Current Date | &[Date] | Today's date when printed |
| File Name | &[File] | The workbook name |
| Sheet Name | &[Tab] | The worksheet name |
| Picture | &[Picture] | An inserted image such as a logo |
You can type text around the codes: Page &[Page] of &[Pages] prints as "Page 2 of 5". The same tab has built-in headers and footers in drop-down lists and options for Different First Page, Different Odd & Even Pages, Scale with Document and Align with Page Margins. You can also edit headers and footers in the Page Setup dialog's Header/Footer tab, which is often faster on the exam because it does not change the view. Teo put the sheet name on the left of the header, Maple & Pine Events in the center, and Page &[Page] of &[Pages] in the center footer.
Print settings
File > Print (Ctrl+P) shows a preview and the settings that override page setup for this print: printer, what to print (Print Active Sheets, Print Entire Workbook, Print Selection), pages, one-sided or both sides, collated, orientation, paper size, margins and scaling. Two of the scaling choices are common exam tasks: Fit Sheet on One Page and Fit All Columns on One Page. Ignore Print Area is also available here. Changes made in this view are saved with the sheet's page setup.
Saving in other formats
The exam objective "save and export workbooks in alternative file formats" is about File > Save As (or Save a Copy for files in OneDrive) and File > Export. The main formats:
| Format | Extension | Use |
|---|---|---|
| Excel Workbook | .xlsx | The default; no macros |
| Excel Macro-Enabled Workbook | .xlsm | Workbooks containing VBA macros |
| Excel 97-2003 Workbook | .xls | Old versions of Excel |
| Excel Template | .xltx | A starting point for new workbooks |
| CSV UTF-8 (Comma delimited) | .csv | Plain text for other systems; saves only the active sheet, values only |
| Text (Tab delimited) | .txt | Plain text with tabs between columns |
| A fixed layout for sharing or printing | ||
| OpenDocument Spreadsheet | .ods | Other spreadsheet programs |
CSV catches people out. It keeps only the active sheet and only values, not formulas or formatting, and Excel warns you about both. Dagny exported the Vendors sheet as CSV UTF-8 for the event-management system and saved the formatted workbook as PDF for venue managers. In the Save As dialog for PDF, Options lets you choose the active sheet, the entire workbook or a selection, and whether to ignore print areas. Export > Create PDF/XPS Document does the same job.
Inspecting a workbook before sharing
File > Info > Check for Issues has three tools, and the exam names them collectively as "inspect workbooks for issues":
| Tool | What it finds |
|---|---|
| Inspect Document | Comments, notes, document properties and personal information, hidden rows, columns and worksheets, headers and footers, invisible content, data model and other hidden data |
| Check Accessibility | Missing alternative text, unclear sheet names, merged cells, tables without header rows, low contrast, default names such as Sheet1 |
| Check Compatibility | Features that older versions of Excel cannot show, such as newer functions |
The Document Inspector lists what it finds and offers a Remove All button for each category. Removing is permanent, so save a copy first. When Teo inspected the vendor file it reported comments, document properties, two hidden rows and the hidden Lists sheet. He removed the comments and personal information but not the hidden sheet, because the drop-downs depended on it. The Accessibility Checker opens a pane with errors, warnings and tips, each with a recommended fix; it flagged the missing alt text on a logo and the generic name of a chart.
Comments and notes
Excel has two kinds of annotation, and the exam expects you to manage both:
| Comments | Notes | |
|---|---|---|
| Purpose | Threaded conversations: reply, mention people, resolve | Simple sticky notes attached to a cell |
| Insert | Review > New Comment, or Ctrl+Alt+M | Review > Notes > New Note, or Shift+F2 |
| Indicator | A purple corner marker | A red corner triangle |
| Manage | Show Comments pane; Previous and Next; Resolve thread; Delete | Edit Note, Show/Hide Note, Show All Notes, Convert to Comments |
In a comment you can type @ and a name to mention a colleague, who is notified by email when the file is in OneDrive or SharePoint. Resolve thread marks a conversation as finished and grays it out; Reopen brings it back. Notes have no replies; they are what Excel called comments before 2018. Review > Notes > Convert to Comments turns old notes into threaded comments. Teo resolved the 2023 comments that had been answered, deleted the rest, and converted two useful notes about vendor insurance into comments mentioning Rosalind.
Common mistakes
MistakeTyping data while several sheets are still grouped.
InsteadUngroup as soon as the shared formatting is done; [Group] in the title bar is the warning.
MistakeUsing Freeze Panes to make headings appear on every printed page.
InsteadUse Print Titles > Rows to repeat at top.
MistakeSaving a multi-sheet workbook as CSV and expecting every sheet to be saved.
InsteadCSV saves the active sheet, values only.
MistakeTyping a fixed page number into a footer.
InsteadInsert the &[Page] code with the Page Number button.
MistakeRemoving hidden worksheets in the Document Inspector without checking what uses them.
InsteadInspect first, then remove only what is safe; save a copy before removing anything.
Summary and key terms
- Right-click a sheet tab to rename, color, move, copy, hide or delete; grouping applies changes to several sheets at once.
- Find and Replace, Go To and Go To Special, and hyperlinks are the navigation tools on the exam.
- Page Layout sets margins, orientation, size, print area, print titles and scaling; headers and footers use codes such as &[Page].
- Save As and Export create other formats; CSV keeps only the active sheet's values.
- Check for Issues inspects, checks accessibility and checks compatibility; comments are threaded, notes are not.
- Group (worksheets)
- Two or more selected sheet tabs that receive the same edits and formatting.
- Print area
- A range set to print instead of the whole sheet, stored as the name Print_Area.
- Print titles
- Rows or columns set to repeat on every printed page.
- Document Inspector
- The File > Info tool that finds and removes hidden and personal information.
- Comment
- A threaded, resolvable conversation attached to a cell.
- Note
- A simple annotation attached to a cell, without replies.
- Go To Special
- A dialog that selects cells by type, such as blanks or formulas.
Practice problems
Work each problem on paper first, then reveal the answer to check.
How do you copy a worksheet into another open workbook?
Show answer
Right-click the tab > Move or Copy, choose the workbook in To book, and check Create a copy.
Which header code prints the worksheet name?
Show answer
&[Tab], inserted with the Sheet Name button.
Where do you make row 1 print on every page?
Show answer
Page Layout > Print Titles > Rows to repeat at top.
How do you select every blank cell in a range?
Show answer
Select the range, then Go To Special > Blanks.
What is the difference between Resolve thread and Delete for a comment?
Show answer
Resolve keeps the thread but marks it finished; Delete removes it.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.