Use GET.WORKBOOK to List Worksheet Names without VBA

Excel Insights
29 Sept 202309:54

Summary

TLDRIn this tutorial, the presenter explores Excel 4.0 functions, focusing on listing worksheet names without using Visual Basic. They introduce the 'GET.WORKBOOK' function, specifically using the number '1' to retrieve worksheet names. The process involves using the Name Manager to create a named formula 'list sheet names'. For Excel 2019 or earlier, an array formula approach is demonstrated. The video also covers how to transpose the list from horizontal to vertical and remove the workbook name from the list using the 'MID' and 'LEN' functions. The presenter encourages viewers to engage with the content and provides a formula for easy reference.

Takeaways

  • 📊 **Excel 4.0 Functions**: The video discusses using Excel 4.0 functions to perform tasks that modern Excel functionalities handle with VBA.
  • 💾 **Old vs Modern**: Excel 4.0 functions were essential in older versions due to less powerful computers and less intuitive interfaces.
  • 🔍 **Get.Workbook Function**: The specific function 'Get.Workbook' is highlighted for listing worksheet names without VBA.
  • 📚 **Manual Reference**: A 683-page manual exists detailing Excel 4.0 functions, indicating their complexity and variety.
  • 🔢 **Parameter '1'**: The number '1' is used as a parameter with 'Get.Workbook' to retrieve worksheet names.
  • 🛠️ **Name Manager**: The Name Manager in Excel is used to create a named reference for the 'Get.Workbook' function for easier use.
  • 📝 **Formula Creation**: The process of creating a formula that uses the named reference 'list sheet names' is demonstrated.
  • 🔄 **Refreshing Formulas**: It's noted that in older Excel versions, formulas don't automatically update when sheet order changes, requiring manual refresh.
  • 📋 **Array Formulas**: For pre-Excel 2019 versions, array formulas are used by entering them in multiple cells and confirming with Ctrl+Shift+Enter.
  • {🔀 **Transposing Data**: The video shows how to use the TRANSPOSE function to change data orientation from horizontal to vertical.
  • ✂️ **Removing Unwanted Text**: The script explains using the MID and LEN functions to remove the workbook name from the list of worksheet names.

Q & A

  • What are Excel 4.0 functions?

    -Excel 4.0 functions are old macro functions that were used in earlier versions of Excel before more modern functionalities like Visual Basic were introduced. Despite being outdated, they can still be used if you know how.

  • What is the purpose of the 'get.workbook' function in Excel 4.0?

    -The 'get.workbook' function retrieves specific information about the workbook. In this case, using 'get.workbook(1)' lists the names of all the worksheets in the workbook.

  • How do you create a named function in Excel using Excel 4.0 functions?

    -To create a named function using Excel 4.0 functions, go to the Formulas tab, open the Name Manager, create a new name, and then define the function (e.g., 'get.workbook(1)'). This creates a custom function that you can reference later.

  • What do you need to do to use the Excel 4.0 function 'get.workbook' to list sheet names?

    -You need to create a named function that refers to 'get.workbook(1)' and then use that named function (e.g., 'listSheetNames') in the worksheet to list the sheet names.

  • What is the difference between using Excel 4.0 functions in older versions of Excel versus modern versions?

    -In older versions of Excel, you need to use an array formula to handle multiple values, whereas in modern Excel, it automatically spills results across multiple cells without needing an array formula.

  • How can you list worksheet names in a vertical orientation?

    -To list worksheet names vertically instead of horizontally, you can use the modern 'transpose' function in Excel, which changes the orientation of the data from horizontal to vertical.

  • How do you remove the workbook name from the list of sheet names?

    -You can remove the workbook name by using the 'mid' function combined with 'len' to find the correct starting point of the sheet names after the curly bracket, and then adjust the formula accordingly.

  • How does the array formula work in older versions of Excel?

    -In older versions of Excel, you need to highlight the exact number of cells where the result will appear, type the formula, and then press 'Ctrl + Shift + Enter' to create an array formula.

  • What modern Excel function can be used to handle the horizontal-to-vertical conversion?

    -The 'transpose' function is used in modern Excel to change the orientation of data from horizontal to vertical or vice versa.

  • What steps should you take if you need to delete array formula results in Excel?

    -In older versions of Excel, you must highlight the entire range of cells that the array formula populates and delete them all at once. You can't delete just one cell from an array formula.

Outlines

00:00

📊 Discovering Excel 4.0 Functions for Listing Worksheets

In this segment, the focus is on utilizing Excel 4.0 functions to list down the names of worksheets without resorting to Visual Basic. Excel 4.0 functions are older macro functions that have been largely replaced by modern Visual Basic and Excel functionalities. Despite their age, these functions are still accessible in Excel and can be used effectively. The video demonstrates how to use the 'GET.WORKBOOK' function with the number '1' to retrieve a list of worksheet names. This is done by accessing the 'Name Manager' under the 'Formulas' tab to create a named reference. The video also shows how to apply the function to a sample workbook with multiple worksheets, highlighting the need to manually refresh the formula to update the list of worksheet names.

05:00

🔄 Transposing and Refining Worksheet Names in Excel

This part of the video script explains how to manipulate the list of worksheet names obtained from the 'GET.WORKBOOK' function. It covers the process of transposing the list from a horizontal to a vertical orientation using the 'TRANSPOSE' function available in modern Excel versions. Additionally, the script addresses the issue of the workbook name appearing in the list and demonstrates how to remove it using the 'MID' function. The 'MID' function is used to extract the worksheet name by finding the position of the closing curly bracket and adjusting one character to the right, then extracting the length of the worksheet name using the 'LEN' function. The video concludes with a reminder to copy the formula and offers assistance for any questions or requests related to Excel.

Mindmap

Keywords

💡Excel 4.0 functions

Excel 4.0 functions refer to an older set of macro functions that were once integral to Excel but have since been superseded by more modern functionalities and Visual Basic for Applications (VBA). In the video, these functions are highlighted as a way to perform tasks that once required significant computational power, illustrating the evolution of Excel and its capabilities. The script specifically mentions that these functions can still be used in modern Excel, showcasing their enduring utility.

💡Visual Basic

Visual Basic, or VBA, is a programming language that is used to create macros and automate tasks in Excel. The video contrasts Excel 4.0 functions with VBA, indicating a shift from older macro functions to a more powerful and flexible programming environment. VBA allows for more complex automation and customization, which is why it has replaced many of the older Excel 4.0 functions.

💡Worksheet names

In the context of the video, 'worksheet names' refers to the titles of the different sheets within an Excel workbook. The video's main objective is to demonstrate how to list these names without using VBA, which is typically used for such tasks. The script outlines a method using Excel 4.0 functions to extract and display worksheet names, highlighting a practical application of these older functions.

💡GET.WORKBOOK function

The GET.WORKBOOK function is an Excel 4.0 function that is used to retrieve information from a workbook. In the video, it is specifically used with the argument '1' to list down the names of the worksheets. This function is part of the old macro functions that the video aims to demonstrate, showing viewers how to use it to achieve a task that would typically require VBA or newer Excel features.

💡Name Manager

The Name Manager is a feature in Excel that allows users to create, edit, and delete named ranges or formulas. In the video, it is used to define a named formula 'list sheet names' that utilizes the GET.WORKBOOK function. This tool is essential for the video's tutorial, as it enables the creation of a custom function that can be easily referenced and used throughout the workbook.

💡Array formula

An array formula in Excel is a formula that performs operations on an array of values and returns a result for each element. The video explains how to use an array formula when working with older versions of Excel, where the user must highlight the cells they expect to be populated, enter the formula, and then press Ctrl+Shift+Enter to execute it. This is contrasted with newer versions where formulas can automatically fill adjacent cells.

💡Transpose function

The Transpose function in Excel is used to change the orientation of data, typically converting rows into columns or vice versa. In the video, it is used to rearrange the list of worksheet names from a horizontal to a vertical list. This function is part of the modern Excel functionalities that provide more straightforward methods for data manipulation compared to the older Excel 4.0 functions.

💡LEN function

The LEN function in Excel returns the number of characters in a text string. In the video, it is used in conjunction with the MID function to extract the names of the worksheets without including the workbook name. This demonstrates a method for string manipulation that is essential for cleaning and formatting data within Excel.

💡MID function

The MID function in Excel is used to return a specific number of characters from a text string, starting at a specified position. In the video, it is used to extract the worksheet names from a string that includes the workbook name. This function is crucial for the video's goal of listing worksheet names without the extra text, showcasing a technique for text manipulation within Excel.

💡Formulas Tab

The Formulas Tab in Excel is a section of the Ribbon interface that provides access to various functions and tools related to formulas and calculations. In the video, it is where the Name Manager is accessed, which is essential for creating the custom named formula used to list worksheet names. This tab is a central location for formula-related tasks in Excel.

Highlights

Introduction to continuing the journey in discovering Excel 4.0 functions.

Excel 4.0 functions are old macro functions replaced by modern Visual Basic and Excel functionalities.

Older computers relied on functions to perform tasks due to less powerful hardware and less smooth interfaces.

Excel 4.0 functions can still be used in Excel if known how to use them.

The 'GET.WORKBOOK' function can list down the names of the worksheets without using Visual Basic.

The number '1' in 'GET.WORKBOOK(1)' signifies getting the list of worksheet names.

A 683-page manual exists detailing Excel 4.0 functions, available online.

To use Excel 4.0 functions, go to the Formulas tab and use the Name Manager.

Create a named reference 'list sheet names' that refers to the 'GET.WORKBOOK(1)' formula.

After setting up the function, use it by typing '=list sheet names' in a cell.

The function lists worksheet names horizontally based on their arrangement in the workbook.

Refreshing the formula is required when the order of worksheets changes.

In older Excel versions, use an array formula by highlighting cells and pressing Ctrl+Shift+Enter.

Transposing the list from horizontal to vertical is possible using the TRANSPOSE function in modern Excel versions.

To remove the workbook name from the list, use the MID and LEN functions to extract just the worksheet names.

The final formula provided in the video removes the workbook name and lists worksheet names vertically.

The video concludes with an invitation for questions and requests for future Excel tutorial topics.

Transcripts

play00:01

hi everyone in today's video we're going

play00:05

to continue our journey in discovering

play00:09

Excel

play00:11

4.0 uh functions so in this uh video we

play00:15

want to list down the names of the

play00:18

worksheet without using Visual Basic now

play00:23

like what was mentioned in the previous

play00:25

video the Excel 4.0 functions are old

play00:30

macro functions that are currently

play00:33

replaced by the more modern Visual Basic

play00:36

and more modern Excel

play00:38

functionalities you have to realize that

play00:41

back in the days our computers are not

play00:43

so powerful the interface is not as

play00:46

smooth of this so Excel has to rely on

play00:49

functions to perform many of the tasks

play00:53

so even if these are old forgotten

play00:57

functions you can actually still use

play00:59

them them in Excel as long as you know

play01:02

how to use them now for this one we want

play01:06

to list down the names of the worksheets

play01:08

and there's actually a macro Excel 4.0

play01:11

function that can do that it's going to

play01:14

be the

play01:16

get a workbook function so it's get.

play01:22

workbook and then open parenthesis and

play01:25

then you have to put a certain number

play01:27

here so the number is represented uh

play01:31

represents different information that

play01:34

you can derive okay uh in the workbook

play01:38

and I don't have all the equivalences

play01:40

here but you can actually find them in

play01:42

their internet somebody made a 683 page

play01:46

uh manual about Excel 4.0 functions now

play01:50

but specifically though the one that

play01:52

will list down the worksheet names is H

play01:57

one so we have to use get that workbook

play02:00

open parenthesis one because that number

play02:03

signifies that you want to get the list

play02:05

of the names of the

play02:07

worksheets so let's do that let me first

play02:10

erase

play02:13

this so now in order to use a Excel 4.0

play02:19

function you have to go to the formulas

play02:23

Tab and then under the formulas tab

play02:26

we're going to use the name manager

play02:29

which allow us to provide named cells or

play02:32

named references or even formulas so

play02:36

from here we're going to click

play02:39

new and we're going to see this small

play02:42

pop up we're going to assign a name for

play02:45

our quote and quote function going to be

play02:49

list sheet

play02:51

names and it's going to refer to a

play02:54

certain formula so for this one I'm

play02:57

going to say equals

play03:00

get. workbook open parenthesis and then

play03:04

comma

play03:05

one then now I'm going to click okay and

play03:09

if your problem has no hiccups it will

play03:11

just proceed as

play03:13

usual and then I'm now going to click

play03:16

close since my function is now ready to

play03:19

go now I prepared here a file that has a

play03:23

worksheet let me swap them around so we

play03:25

have sheet one sheet four sheet three

play03:27

and another random worksheet

play03:30

so I'm now going to extract those names

play03:34

by using the function that I did so

play03:37

equals and then I'm going to say list

play03:40

sheet names and you will see that it's

play03:42

being suggested to me now so I could

play03:45

just Tab and unlike other functions that

play03:49

requires you to do an open parentheses

play03:51

and then arguments since this is a

play03:54

reference I don't have to use that I

play03:56

just have to hit enter at this point and

play03:59

and you will see that I will have a

play04:02

horizontally uh oriented list of

play04:06

worksheets the arrangement of which is

play04:09

based on what we have here so sheet one

play04:12

sheet four sheet three and then March

play04:15

2003 if I swap the worksheets around it

play04:21

will not automatically update you have

play04:23

to refresh the formula by um going back

play04:27

to the first cell and then hit enter

play04:31

now the functionality of excel wherein

play04:34

it appeals to the other cells is not

play04:38

available in the early versions of excel

play04:41

this can only be done in the recent

play04:43

version of excel

play04:46

ms65 so if you are using Excel 2019 or

play04:50

earlier you need to perform this a

play04:52

little differently so you have to do the

play04:55

same as what I did with the name manager

play04:58

but the execution is where the

play05:00

difference will lie so instead of just

play05:02

typing one cell you have to highlight

play05:05

four cells because we expecting four

play05:08

values for the result and then while

play05:12

these four cells are highlighted you

play05:14

will type equals and then you will call

play05:17

on the function that we

play05:20

created and since we're using we're

play05:23

simulating an old Excel approach you

play05:26

don't just enter you have to convert

play05:29

this into an array

play05:31

formula so instead of enter you have to

play05:35

click all together

play05:38

control shift and then enter so that

play05:42

would make the formula put the answers

play05:46

on the celles that you've highlighted so

play05:48

you have to highlight the exact number

play05:50

or the number of cells that you you're

play05:52

expecting to be

play05:54

populated and that's it we now manage to

play05:57

list down the names of the

play06:00

worksheets and let's um let's transpose

play06:05

it like for example I want it to be um

play06:07

vertically oriented instead of

play06:09

horizontal so let me remove this one

play06:12

first and take note if you used an old

play06:14

version of excel you have to highlight

play06:16

them all and delete Al together because

play06:19

you cannot delete just the first cell

play06:22

okay Excel will not allow you to do that

play06:25

you have to highlight all four of them

play06:27

and then delete now in order to change

play06:31

this into a vertical arrangement I will

play06:34

use one of the more modern functions not

play06:38

an not an Excel 4.0 function it's going

play06:41

to be the transpose

play06:43

function so in modern iterations of

play06:46

excel the transpose function picks up

play06:50

ranges of a range of cells and changes

play06:54

their orientation from vertical to

play06:56

horizontal and vice versa so since this

play06:59

is horizontal if I enter it will convert

play07:02

into a um vertically oriented

play07:07

result now the next problem that we want

play07:11

to fix here is the presence of the name

play07:13

of the file that is also going to be

play07:16

part of the result I want to remove the

play07:19

book one from the

play07:22

reference so from here I could update my

play07:27

formula so I would say a mid open

play07:32

parenthesis so mid of this

play07:35

cells

play07:37

comma then I have to indicate to Mid

play07:41

where will I start the thing is we don't

play07:44

know exactly how where to start but we

play07:48

know that if we

play07:51

find the close curly

play07:54

bracket in my list of sheet names that

play07:59

is where

play08:01

the uh worksheet name will start right

play08:04

at least after it so I have to type a

play08:07

plus one so instead of giving mid a

play08:10

fixed value I have to

play08:14

find the close bracket in my list of

play08:17

worksheets but adjust one character to

play08:21

the right because that's where the

play08:23

worksheet name actually begins one

play08:25

character after the Clos bracket comma

play08:30

now we don't know exactly how many

play08:33

characters there are in the name of the

play08:35

worksheets so I will have to use Len

play08:39

which will give me the length of the

play08:42

characters of the uh names of the

play08:45

worksheet and then

play08:48

close now I can also close the mid

play08:50

function close the transpose function

play08:53

hit enter and now I have a list of of

play08:59

worksheet names without

play09:02

the uh function or without the workbook

play09:07

name so here's the formula feel free to

play09:09

copy

play09:11

it and with this okay I'm going to also

play09:15

put this in the uh comment or in the

play09:17

description of this video I hope this

play09:20

video help you okay uh list down the

play09:22

worksheet names without using

play09:24

macros and if ever you have questions

play09:27

feel free to use the comment I'll try to

play09:30

answer as soon as I can and if ever you

play09:33

like this video please uh I would

play09:35

appreciate a like and a

play09:37

subscribe and if you have any requests

play09:40

or questions in Excel also use the

play09:42

comment section and I will try to make a

play09:44

video for you if I know the answer and

play09:47

that's it for this video I'll see you in

play09:49

the next

play09:52

one

Rate This

5.0 / 5 (0 votes)

Связанные теги
Excel FunctionsVBA AlternativesWorksheet NamesExcel 4.0Macro FunctionsExcel TipsData ManagementMicrosoft ExcelExcel TutorialWorksheet List
Вам нужно краткое изложение на английском?