


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!
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.
First create a new worksheet named "Table of Contents"
Select the "Formulas" tab and click " Define name".
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.
There is a defined name called "Worksheet" in the "Formula" tab-Name Manager.
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.
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.
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.
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".
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!

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折叠表格的相关问题,就是分类汇总的功能,这样查看数据会非常的方便,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于AGGREGATE函数的相关内容,该函数用法与SUBTOTAL函数类似,但在功能上比SUBTOTAL函数更加强大,下面一起来看一下,希望对大家有帮助。

在之前的文章《实用Excel技巧分享:利用 数据透视表 来汇总业绩》中,我们学习了下Excel数据透视表,了解了利用数据透视表来汇总业绩的方法。而今天我们来聊聊怎么计算时间差(年数差、月数差、周数差),希望对大家有所帮助!

在之前的文章《实用Word技巧分享:聊聊你没用过的“行号”功能》中,我们了解了Word中你肯定没用过的"行号”功能。今天继续实用Word技巧分享,看看Excel表格怎么借用Word进行分栏打印,快来收藏使用吧!

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于zenmm制作倒计时牌的相关内容,使用Excel中的日期函数结合按指定时间刷新的VBA代码,即可制作出倒计时牌,下面一起来看一下,希望对大家有帮助。

在之前的文章《实用Excel技巧分享:原来“定位功能”这么有用!》中,我们了解了定位功能的妙用。而今天我们聊聊合并后的单元格如何实现筛选功能,分享一种复制粘贴和方法解决这个问题,另外还会给大家分享一种合并单元格的不错的替代方式。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于如何使用函数寻找总和为某个值的组合的问题,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Excel的相关知识,其中主要介绍了关于XLOOKUP函数的相关知识,包括了常规查询、逆向查询、返回多列、自动除错以及近似查找等内容,下面一起来看一下,希望对大家有帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.