How to Create a Table of Contents for Tabs in Excel

Table of Contents

Table of Contents

Managing a workbook with many sheets can become confusing. Scrolling through tabs or searching for the right one takes time and slows down your work. A table of contents (TOC) solves this problem by creating a single sheet with links to all other tabs. This makes navigation much easier and keeps your workbook more organized.

In this guide, youโ€™ll learn step by step how to create a table of contents for tabs in Excel using seven different methods, ranging from basic to advanced.

Key Takeaways

Hereโ€™s how to create a table of contents for tabs in Excel:

โžค Open your dataset in Excel and rename it as Table of Contents.
โžค Click on cell E2 and enter the following formula:
=HYPERLINK(“#’Sales’!A1″,”Go to Sales Sheet”)
โžค Press Enter. You will see a clickable text Go to Sales Sheet in cell E2.
โžค Drag the fill handle down and adjust each formula to match the sheet name in that row. For example:
=HYPERLINK(“#’Inventory’!A1″,”Go to Inventory Sheet”)
=HYPERLINK(“#’Expenses’!A1″,”Go to Expenses Sheet”)
โžค Once done, youโ€™ll have a clickable list of all tabs, making it quick to jump to any sheet in the workbook.

overview image


1

Using the HYPERLINK Function to Create a Table of Contents for Tabs in Excel

In the following workbook, we have several sheet names representing different departments and reports. Column A lists the Sheet Name, Column B shows the Description, Column C contains Owner Name, and Column D shows the Last Update. We will create a table of contents in Column E to navigate to any sheet quickly. Also, we have different sheets named Sales, Inventory, Expenses, etc. Each sheet contains data related to business performance.

Using the HYPERLINK Function to Create a Table of Contents for Tabs in Excel

Weโ€™ll use this example dataset as a reference throughout the article.

The simplest way to create a table of contents is by using the HYPERLINK function. This method lets you manually build clickable links that take you directly to the target sheet.

Hereโ€™s how to do it:

โžค Open your dataset in Excel and rename it as Table of Contents.
โžค Click on cell E2 and enter the following formula:

=HYPERLINK("#'Sales'!A1","Go to Sales Sheet")

โžค Press Enter. You will see a clickable text Go to Sales Sheet in cell E2.

Using the HYPERLINK Function to Create a Table of Contents for Tabs in Excel

โžค Drag the fill handle down and adjust each formula to match the sheet name in that row. For example:

=HYPERLINK("#'Inventory'!A1","Go to Inventory Sheet")

=HYPERLINK("#'Expenses'!A1","Go to Expenses Sheet")

โžค Once done, youโ€™ll have a clickable list of all tabs, making it quick to jump to any sheet in the workbook.

Using the HYPERLINK Function to Create a Table of Contents for Tabs in Excel


2

Using Context Menu to Create Table of Contents for Tabs in Excel

If you need a simple and manual solution, you can use Excelโ€™s built-in context menu to create a quick table of contents. This method is ideal for smaller workbooks or for users who prefer a point-and-click method.

Hereโ€™s how to do it:

โžค Right-click on cell E2 to open the table context menu.
โžค Click on Link.

Using Context Menu to Create Table of Contents for Tabs in Excel

โžค In the dialog box, choose Place in This Document.
โžค Select the target sheet and cell. For example, Sales!A1.
โžค Click OK.

Using Context Menu to Create Table of Contents for Tabs in Excel

โžค Repeat the hyperlink creation for each sheet in the list. You will now have a clean list of all sheets with clickable links, created entirely using Excelโ€™s built-in tools.

Using Context Menu to Create Table of Contents for Tabs in Excel


3

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

If you want the table of contents to update automatically when new sheets are added, using Power Query is a more powerful solution. Instead of creating links manually, you can extract all sheet names dynamically and display them in one place.

Hereโ€™s how to do it:

Step 1: Create a Dynamic List Using Power Query

โžค Go to the Data tab in the ribbon.
โžค Click on Get Data >> From Other Sources >> Blank Query.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

โžค In the Power Query Editor, click Advanced Editor from the Home tab.
โžค Replace the existing code with the following M code:

let
ย ย ย  Source = Excel.CurrentWorkbook(),
ย ย ย  Sheets = Table.SelectColumns(Source, {"Name"}),
ย ย ย  Filtered = Table.SelectRows(Sheets, each [Name] <> "Table of Contents")
in
ย ย ย  Filtered

โžค Click Done.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

โžค Click Close & Load >> Close & Load Toโ€ฆ and choose where to place the data in your Table of Contents sheet.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

โžค Next, check the Existing worksheet and type the cell no such as E1. Click Ok.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

โžค You will now see a blank column labeled Name which is automatically displayed in your TOC sheet.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

Step 2: Adding Hyperlinks to the Dynamic List

Since Power Query only returns text, you can add clickable links with a formula next to the list:

โžค Suppose your sheet names are in column A and they are starting from A2. In cell E2, enter:

=HYPERLINK("#'" & A2 & "'!A1", "Go to " & A2)

โžค Press Enter.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel

โžค Now, drag the formula down. Now each sheet name becomes a clickable link that jumps directly to the corresponding sheet.

Using Power Query to Create Dynamic Table Of Content fo Tabs in Excel


4

Use of Buttons to Create Table of Contents for Tabs

If you want a more interactive and visually appealing way to navigate your workbook, you can use buttons instead of plain text links. Each button can be linked to a different sheet, turning your table of contents into a simple navigation dashboard.

Hereโ€™s how to do it:

โžค In the Table of Content sheet, go to the Developer tab and click Insert >> Button (From Control).

Use of Buttons to Create Table of Contents for Tabs

โžค Draw a button in any empty cell area of your sheet.
โžค Once you release the mouse, the Assign Macro dialog box will appear.
โžค Select the button you created and click New.

Use of Buttons to Create Table of Contents for Tabs

โžค In the Microsoft Visual Basic window type this following code:

Sub Button1_Click()
ThisWorkbook.Sheets("Sales").Activate
End Sub

Use of Buttons to Create Table of Contents for Tabs

โžค Now go back to the sheet, click Developer >> Macro to assign your macro in the button.

Use of Buttons to Create Table of Contents for Tabs

โžค Choose the macro you created such as Button1_Click and click Run.

Use of Buttons to Create Table of Contents for Tabs

โžค Now, whenever you click this button, Excel will instantly run the macro and create or refresh the Table of Contents for all sheets in the workbook.

Use of Buttons to Create Table of Contents for Tabs

โžค Repeat the same steps to create separate buttons for the rest of the sheet names.

Use of Buttons to Create Table of Contents for Tabs


5

Applying Excel VBA Code to Create Table of Contents for Tabs

Using VBA is a powerful way to automatically generate a table of contents. This method is ideal for workbooks with many sheets or when you want a fully automated solution that can be refreshed anytime.

Hereโ€™s how to do it:

โžค Press  Alt  +  F11  to open the VBA editor.
โžค In the editor, go to Insert >> Module. This will create a new blank module.
โžค Copy and paste the following code into the module:

Sub CreateTableOfContents()
ย ย ย  Dim ws As Worksheet
ย ย ย  Dim toc As Worksheet
ย ย ย  Dim i As Integer
ย ย ย  ' Delete existing TOC sheet if exists
ย ย ย  On Error Resume Next
ย ย ย  Set toc = Worksheets("Table of Contents")
ย ย ย  If Not toc Is Nothing Then toc.Delete
ย ย ย  On Error GoTo 0
ย ย ย  ' Add new TOC sheet
ย ย ย  Set toc = Worksheets.Add
ย ย ย  toc.Name = "Table of Contents"
ย ย ย  ' Add headers
ย ย ย  toc.Range("A1").Value = "Sheet Name"
ย ย ย  toc.Range("B1").Value = "Go to Sheet"
ย ย ย  i = 2
ย ย ย  ' Loop through each sheet and create hyperlinks
ย ย ย  For Each ws In ThisWorkbook.Sheets
ย ย ย ย ย ย ย  If ws.Name <> toc.Name Then
ย ย ย ย ย ย ย ย ย ย ย  toc.Cells(i, 1).Value = ws.Name
ย ย ย ย ย ย ย ย ย ย ย  toc.Hyperlinks.Add Anchor:=toc.Cells(i, 2), _
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  Address:="", SubAddress:="'" & ws.Name & "'!A1", _
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  TextToDisplay:="Go to " & ws.Name
ย ย ย ย ย ย ย ย ย ย ย  i = i + 1
ย ย ย ย ย ย ย  End If
ย ย ย  Next ws
ย ย ย  ' Autofit columns
ย ย ย  toc.Columns("A:B").AutoFit
End Sub

Applying Excel VBA Code to Create Table of Contents for Tabs

โžค Close the VBA editor and go back to your Table of content sheet.
โžค Go to the Developer tab and click Macro.

Applying Excel VBA Code to Create Table of Contents for Tabs

โžค A new sheet named CreateTableofContents will be created. Select and Run.

Applying Excel VBA Code to Create Table of Contents for Tabs

โžค A new Table of Content sheet will be created where each sheet name will appear in column A, and column B will contain clickable links to each sheet.

Applying Excel VBA Code to Create Table of Contents for Tabs


Downloadable Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Table of Contents for Tabs.xlsx


Frequently Asked Questions

How do I create a table of contents for tabs in Excel quickly?

The fastest method is to use the HYPERLINK function. List all your sheet names in one sheet and use a formula like =HYPERLINK(“#’Sales’!A1″,”Go to Sales Sheet”) to create clickable links. This method is simple and works in all Excel versions.

Can I make the table of contents update automatically when I add new sheets?

Yes. You can use Power Query or VBA to generate a dynamic list of sheet names. Refreshing the query or recalculating the formula will update the list whenever new sheets are added.

Can I use buttons instead of links in my table of contents?

Yes. buttons can be linked to sheets assigning the Macro code from the Developer tab. This makes your TOC more visual and easier to navigate, especially if youโ€™re building dashboards or interactive reports.


Wrapping Up

Creating a table of contents in Excel makes it easier to navigate workbooks with many sheets. It helps you find the right tab quickly and keeps your data more organized. You can build it with formulas, buttons, Power Query, or VBA depending on how much control and automation you need.

Once you set it up, your workbook becomes easier to use, and moving between sheets takes only a single click.

Facebook
X
LinkedIn
WhatsApp
Picture of Sazeda Rahman

Sazeda Rahman

Sazeda Rahman Setu holds a BSc and MSc in Mathematics from National University, providing a strong foundation in analytical and logical thinking for spreadsheet work. Since May 2025, she has gained hands-on experience with Excel and Google Sheets, focusing on formulas, functions, troubleshooting, and step-by-step tutorials. She enjoys creating example datasets and clear guides to help beginners solve spreadsheet problems.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo