search
HomeTopicsexcelExcel case sharing: batch generation of hyperlinked directories and automatic updates

This article will introduce you to the GET.WORKBOOK function and share a case to see how to use this function to batch generate hyperlinked directories in Excel and automatically update them. Come and learn how to create worksheet directories in Excel!

Excel case sharing: batch generation of hyperlinked directories and automatic updates

At work, you may encounter an excel workbook with many worksheets, just like a book with many pages. At this time, if you can create A worksheet directory can not only display all worksheet names, but also click on the worksheet name to quickly jump to the specified worksheet page, which will greatly improve our work efficiency.

So, some cousins ​​started to do it. They manually used Excel to create directory links pointing to each worksheet. Finally, dozens of minutes later, they completed the creation...

This At this time, if the worksheet changes or is added, all the previous work will be in vain, and you will have to create and modify it again, which is time-consuming and labor-intensive.

Today I will share with you a very smart method on how to batch create directories with hyperlinks in Excel. No matter how the worksheet changes or is added, it can be automatically extracted and created, saving time and effort.

As shown below, there are 8 worksheets in the workbook. In order to quickly jump to the specified worksheet, we create a worksheet directory for it.

Excel case sharing: batch generation of hyperlinked directories and automatic updates

First create a new worksheet named "Table of Contents"

Excel case sharing: batch generation of hyperlinked directories and automatic updates

Select the "Formulas" tab and click " Define name".

Excel case sharing: batch generation of hyperlinked directories and automatic updates

A new name dialog box pops up, enter "Worksheet" for the name, and enter the formula for the reference position:

=GET.WORKBOOK(1)

<strong>GET.WORKBOOK</strong> function is a macro table function that can extract all worksheet names in the current workbook. Macro table functions cannot be directly used in cells. To use, you need to define a name before it can be used.

Excel case sharing: batch generation of hyperlinked directories and automatic updates

There is a defined name called "Worksheet" in the "Formula" tab-Name Manager.

Excel case sharing: batch generation of hyperlinked directories and automatic updates

At this time, enter the formula in cell A2: =INDEX(worksheet,ROW(A2))Drag down to fill in the formula and you can extract it Output the worksheet name.

Formula description: Use the INDEX function to reference all worksheet names in the definition name "worksheet". The second parameter uses ROW (A2) to indicate that extraction starts from the second worksheet name, because the first worksheet The table name is "Directory", which is a worksheet name we don't need.

Excel case sharing: batch generation of hyperlinked directories and automatic updates

You can see that the worksheet name extracted using the INDEX function has the workbook name, so we also need to improve the formula and replace the workbook name. Keep the worksheet name.

Improve the formula in cell A2 to:

=REPLACE(INDEX(worksheet,ROW(A2)),1,FIND("]",INDEX(worksheet, ROW(A2))),"")

Formula description: Use the REPLACE function to replace the workbook name with nothing. The replaced character position is the first one. Use the FIND function to find the number of replacements. ]" character position, and then replace it with nothing.

Excel case sharing: batch generation of hyperlinked directories and automatic updates

Finally enter the formula in cell B2:

=HYPERLINK("#"&A2&"!A1",A2) Drag down to fill in the formula.

Formula description: HYPERLINK is a function that can create shortcuts or hyperlinks. "#" indicates that the referenced worksheet name is in the current workbook, and "!A1" indicates that it is linked to the A1 unit of the corresponding worksheet. format, the second parameter A2 of HYPERLINK indicates that the hyperlink is named after the worksheet name.

Excel case sharing: batch generation of hyperlinked directories and automatic updates

The worksheet directory is now complete! If a worksheet is added or changed in the workbook later, we only need to drag down to fill in the formula to automatically extract the worksheet name and automatically create a hyperlink.

Because we use the macro table function, it cannot be saved in an ordinary table. You need to select "Excel macro-enabled workbook" in Save As, with the suffix name xlsm or save it as "Excel 97-2003 Workbook".

Excel case sharing: batch generation of hyperlinked directories and automatic updates

That’s it for today’s tutorial. After finishing it, do you feel that you have taken many detours in making forms? The countless nights we worked overtime were actually unnecessary~

Related learning recommendations: excel tutorial

The above is the detailed content of Excel case sharing: batch generation of hyperlinked directories and automatic updates. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment