Excel 2016: Linking Worksheets
Excel 2016: Linking Worksheets
Linking Worksheets
[email protected]
Microsoft Excel 2016: Linking Worksheets
1.5 hour
In this workshop we will insert, delete and rename worksheets; change data and formatting on
multiple sheets at the same time; link worksheets to create a Totals page; move sheets into
different workbook (file); and change the view to see multiple books and sheets at the same
time. This intermediate workshop assumes prior experience with Microsoft Excel.
Number of Worksheets....................................................................................................... 1
Inserting Worksheets .......................................................................................................... 1
Deleting Worksheets........................................................................................................... 2
Renaming Worksheets ........................................................................................................ 2
Color Coding Worksheets ................................................................................................... 2
Moving and Copying Worksheets ....................................................................................... 3
Hiding Worksheets .............................................................................................................. 3
Unhiding Worksheets ................................................................................................... 3
Selecting Multiple Worksheets ........................................................................................... 4
Range of Worksheets .................................................................................................... 4
Selecting Specific Worksheets ...................................................................................... 4
Selecting All the worksheets ......................................................................................... 4
Unselecting Worksheets ............................................................................................... 4
Linking Cells ......................................................................................................................... 5
Create a Link.................................................................................................................. 5
Remove a Link ............................................................................................................... 5
Absolute vs. Relative Links ............................................................................................ 5
Linking Workbooks.............................................................................................................. 6
Opening Linked Files ..................................................................................................... 6
Handling Broken Links......................................................................................................... 7
Removing all links ......................................................................................................... 7
Edit Link Window .......................................................................................................... 7
Working with Multiple Files/Windows ............................................................................... 8
Ungrouping Taskbar Buttons ........................................................................................ 8
Moving Between Windows ........................................................................................... 8
View Different Sheets of the Same Book ...................................................................... 8
Class Exercise ...................................................................................................................... 9
Updated: 02/15/2019
Number of Worksheets
An Excel workbook used to have a limit of 255 worksheets, but the 2016 version is limited only by the
available memory. By default, new workbooks begin with one worksheet.
You can change the default setting from the Excel Options. The Options button is at the bottom of the
File menu. In the General group of the Excel Options, you can set the number of sheets to be opened in
a new workbook.
You can set new books to start between 1 and 255 sheets. Changing this setting will not modify the
current workbook, only future new workbooks.
Inserting Worksheets
You can insert a worksheet by doing one of the following:
Click on the Insert Sheet button located at the bottom of the window. The new sheet will be
inserted after the selected worksheet.
or from the Home tab, the Cells group, Insert, Insert Sheet.
or Right-click on the name of any sheet and choosing Insert… Excel will then
ask what you want to insert. Choose Worksheet and click OK.
To insert multiple sheets at once, select the number of worksheets you would like to insert and follow
the steps above. If three sheets are selected when you insert a worksheet, then three new sheets will be
inserted. See Selecting Multiple Worksheets later in this handout.
Page 1
Deleting Worksheets
You can delete a worksheet by doing one of the following:
If the worksheet is empty it will be deleted, otherwise Excel will ask you to confirm the deletion.
Note that the message says, "To permanently delete…" Once you confirm this deletion there is No
Undo. The sheet and all the data are gone.
To delete multiple sheets at once, select the worksheets and follow the steps above. See Selecting
Multiple Worksheets later in this handout.
Renaming Worksheets
You can rename a worksheet by doing one of the following:
Type the new name and press Enter on the keyboard to accept it.
Press Esc on the keyboard to cancel renaming the sheet.
Page 2
Moving and Copying Worksheets
A worksheet can be moved by dragging it to a new location. Click on the worksheet name, don't let go,
and drag the worksheet left or right to the new location. When you are holding onto a worksheet, your
mouse cursor will show a sheet of paper and a little black arrow will appear above the sheets, this black
arrow will show you where the new worksheet will be when you let go of the mouse.
If you hold down the control (Ctrl) key while moving the worksheet, you can create a duplicate, a copy
of the worksheet. This copies everything, all the contents and formatting. (Remember to let go of the
mouse before letting go of the keyboard.)
By default, this window will move the worksheet; click the check
box at the bottom of this window if you would prefer to create a
copy.
Hiding Worksheets
For some templates and lookup files you may wish to hide a
worksheet.
Unhiding Worksheets
Unhide a worksheet:
Page 3
Selecting Multiple Worksheets
The Shift and Ctrl keys on the keyboard allow you to work with multiple selections. You can use them to
select multiple shapes, multiple cells, and multiple worksheets.
Range of Worksheets
To select a range of worksheets, use the Shift key.
If we click on 1st Qtr and Shift-click on 3rd Qtr, we will have all three sheets selected.
If we click on 1st Qtr and Ctrl-click on 3rd Qtr, we will have only those two sheets selected.
Unselecting Worksheets
To drop the selection, click on a worksheet that is not part of the current selection. Or right-click on any
worksheet name and choose Ungroup Sheets.
Page 4
Linking Cells
Linking cells is one of the operations in Excel that is so simple, it's hard to believe. When you create the
Link, Excel will enter the path and keep track of the moments of the original cell.
Create a Link
Click inside the cell where we want the answer, press the Equal ( = ) key on the keyboard, as if we were
going to build an equation, and then click on the cell we want to link to, putting Excel into a "Point"
mode. Click on any cell on the worksheet, on another worksheet, and even in another workbook.
Link to cell A1
Press the equal button on the keyboard. Click in cell A1. Press Enter on the keyboard.
Remove a Link
To break the link, delete the contents of the cell. To keep the values, copy and Paste values. To remove
all the links and keep the values, see the Edit Link Window section of this handout.
You can type in or remove the dollar signs to change between the two options. F4 is the keyboard
shortcut to toggle between the absolute/relative options.
Excel will follow the address of the original data whether we are set to Relative or Absolute. However, if
we are using different workbooks, Excel can only follow the data while the other book is still open. If
data moves in another book, and the linked file is not open, the cell links will not follow.
The Absolute and Relative settings will matter when you try to copy or fill the link. With the Absolute ($),
the copy/fill will contain the same cell addresses (i.e. $A$1-$A$1-$A$1…); with the Relative (no $), the
copy/fill will contain the series (i.e. A1-A2-A3…)
Page 5
Linking Workbooks
As stated on the previous page linking workbooks is as simple as linking worksheets, with the added step
of choosing the file first. Click in the cell where you want the result to be, press the equal sign (=) on the
keyboard and then use your mouse to select the workbook, click on the worksheet, click on the cell you
want to link to and press Enter to accept.
The formula bar will show the full path of the linked cell. If the file is open you will see just the file name,
worksheet name and cell address.
If the linked file is not open, you will see the location of the file as well:
If you ignore the message you can continue to work in Excel with the 'old' data.
If you click Enable Content Excel will update the links, if it can find the original file.
If you click Don't Update you can continue to work in Excel with the 'old' data.
If you click Update Excel will update the links, if it can find the original file.
Page 6
Handling Broken Links
Excel does a wonderful job updating the links, IF it can find the cell you are referring to in your dataset.
If the filename or sheet name has changed while the linked file is open, the links will be able to follow
along, however, if they are changed while the linked file is closed Excel will lose its way.
When you ask Excel to update the link, if it has a problem it will prompt you:
If you click Edit Links… you be able to modify where the source file is located.
Click on the Change Source… button to find the original file. If the
worksheet names have changed, the Status error will read "Error:
Worksheet not found". For missing worksheets, it will prompt to find the
sheet name.
Page 7
Working with Multiple Files/Windows
Ungrouping Taskbar Buttons
Your copy of Windows may try to lump all of the files into the same icon across the task bar at the
bottom of the window.
But you may prefer to see them split out into individual buttons.
These can be tedious if there are a lot of files open. To see a list of all the open Excel files, turn to the
View tab. In the Windows group you will find a list of the open files under Switch Windows.
Excel 2016 no longer allows you to open multiple files in the same instance of Excel, each Excel window
will open with its own ribbon. Excel's Arrange All button should work with all the open Excel windows,
but you can right-click in the Windows Taskbar to find window arranging options.
Page 8
Class Exercise
Review
- Open Excel
- File->Options
o Default # of sheets
Rename Sheets
- Double-click on Sheet1
Keyboard Shortcut:
o Rename to 1st Qtr Shift-F11 = New Sheet
o Press enter to accept
- Insert three more sheets and Rename
Page 9
Enter data on multiple sheets
- Click on 1st Qtr sheet
- Right-click on the sheet name and choose Select All Sheets
o Check title bar for [Group]
- Type:
o A1: Big City Store
o A2: Quarterly Sales Report
- View each sheet
- Select All Sheets again
- Create the table show here:
Adjusting formatting
- On the 1st Qtr sheet:
o Type in Cell C5: 987
o Notice the Column is too Narrow ########
- Select all sheets
- Expand Column D
- Type in Cell C6: 654
- Turn to 2nd Qtr sheet
Page 10
Create a Total's Page
- Insert a worksheet
- Move it to Beginning
o Drag Sheet5 to the beginning of
the worksheets
- Name it Totals
- Increase the Zoom to 150%
- Type data in cells –
o In Cell D1 type: Totals
o In Cell B2 type: 1st Qtr
Drag fill handle to B5
This creates 2nd, 3rd & 4th Qtr
Test Links
- Turn to 2nd Qtr sheet
o In Cell C5 type: 951
o In Cell C6 type: 624
o In Cell C7 type: 357
- View Totals sheet
Page 11
Move Totals Sheet to another book
- Right-click Totals sheet
- Choose Move or Copy Sheet…
- From Book menu choose (new book)
- View Links in the Totals sheet
o View formulas (Ctrl-~)
o View Answers (Ctrl-~)
Save Files
- Save file with the quarter sheets as Quarters (on the desktop) Keyboard Shortcut:
- Save file with the total sheet as Totals (on the desktop) F12 = Save As
- View Links in Totals
o ='[Quarters.xlsx]1st Qtr'!D8
Test Links
- In Quarters, turn to 3rd Qtr sheet
o In Cell C5 type: 967
o In Cell C6 type: 688
o In Cell C7 type: 384
- View Totals for result
Page 12
Close files
- Close and Save Quarters
- View Links in Totals (your path will be different for your computer)
o ='C:\Users\prcowart\Desktop\[Quarters.xlsx]1st Qtr'!D8
o Drive, folder, folder,…, file, sheet, cell
- Save and Exit Microsoft Excel
Page 13
Link Between books
- Recreate the link
o Press Equals (=)
o Click in the Quarters window
o Click in the Quarterly Total cell (D8)
o Press Enter
Pasting Link
- Delete link again from C5
- Recreate again using paste link
o Leave Cell C5 in Totals empty
o Click on cell D8 in Quarters (4th Qtr)
o Copy the cell
o Click in Cell C5 in Totals
o Right-click in Cell C5
o Choose Paste Link
Page 14
Modify FY 17-18 file
- Open FY 17-18
- If needed, turn to 4th Qtr sheet
o In Cell C5 type: 975
o In Cell C6 type: 684
o In Cell C7 type: 359
- Save and Exit
Page 15
Printing Multiple Sheets
- Open Print Preview (ctrl-P or File->Print)
- From the Print Preview menu, change the Setting Print Active Sheets, to Print Entire Workbook
- You should have four pages
Multiple sheets
To see two worksheets from the same book at the same time, choose "New Window" from the
View tab. Arrange the windows.
Right-click on a worksheet name to SELECT ALL SHEETS and to UNGROUP SHEETS.
Shift-Click to select a range of sheets.
Ctrl-Click to select a group of individual sheets.
Printing
You can print the worksheet name by building a custom header and footer in the Page Setup.
The Print Preview menu has an option to Print Active Sheets and Print Entire Workbook.
You can make a selection of sheets with your Shift and Ctrl keys, and then print them at the
same time with the Print Active Sheets.
Cautions
When you are working with multiple sheets, watch for the word GROUP in the title bar.
If other files are linked to the one you are working with, be careful in rearranging and renaming
the contents. If you keep both files open, Excel will follow your movements.
You can always separate the linked files by breaking all the link, see Page 7.
Page 16