HomeGoogle DocsSpreadsheetA Drop-down Menu in Google Sheets to View Content from Any Sheets

A Drop-down Menu in Google Sheets to View Content from Any Sheets

Published on

We can view content from any sheet without leaving the current sheet using a drop-down menu in Google Sheets.

We can do it with the help of a few functions and data validation.

Let’s create a drop-down menu first to view the content from any Sheets easily.

Before that, first, let me clarify a few things about this Google Spreadsheet tab management tutorial.

Yep! I consider this a type of tab management in Google Spreadsheets.

In this tutorial, I am not talking about how to view multiple google sheets side by side.

Also, I am not talking about consolidating data from multiple sheets into one single sheet, either.

Here I will tell you how to view or access the full content of any sheets in your current sheet.

For example, you have a Google Spreadsheet file with 15+ sheets.

You may find it a litter uncomfortable to navigate between sheets to view the content.

I have a solution to this. We can create a master sheet with only a drop-down menu as below and pull any sheets contents on this sheet to instantly view it.

So, no need for you to switch between sheet tabs to view their content. 

Anyone can easily create such a master sheet.

But if you do not like this method, you can always consider creating a table of contents with clickable links within Google Sheets.

Example to Drop-down Menu to View Content from Multiple Sheets in Google Sheets

drop-down menu with sheet names to view content of other sheets

Please see the above image.

You can see that the name of the current sheet is “Master.”

There is a drop-down menu in cell A2 in this sheet which contains all the sheet names in that workbook (file).

As per the above example, the active sheet name in the drop-down menu is “Company B.”

You can see some data on the right-hand side of the drop-down menu.

It’s the data pulled from the sheet “Company B.”

When you select any other sheet name from the drop-down, you will get the data from that sheet.

I am using two functions in their simplest form in this Google Sheets tutorial.

They are Vlookup and Indirect. Other than these functions, you should know the use of Named Ranges in Google Sheets.

Steps: Drop-down Menu in Google Sheets to View Content from Any Sheets

I have explained the steps under three sub-titles below.

Sample Data Preparation and Named Ranges

We have seven different sheets here.

For our example purpose, I’ve just limited the number of sheets to seven, but you can have as many sheets as you wish.

See the below image. The first one is the “Master” sheet, and in that one, we will create our drop-down menu.

The second Sheet is named “Sheet Names,” a helper tab for creating the drop-down menu.

It contains some data for the drop-down list.

sheet tabs for drop-down list

The other five sheets from “Company A” to “Company E” are the sheets of which the content we can view from our “Master” Sheet.

Let us begin with the content in the “Sheet Names” tab.

The “Sheet Names” sheet contains details to create the drop-down menu in the “Master” Sheet. See the content of it below.

content for drop-down list menu

Column “A” includes all the sheet names in the file except the first two sheets, which we use to create the drop-down.

And the second column contains the name of the “named ranges” in each sheet.

I’ve already mentioned that there are five sheets from “Company A” to “Company E.” In each sheet, I have given the range name “Company1” to “Company5,” respectively.

I mean, the name of the data range in “Company A” is “Company1” and “Company B” is “Company2,” and so on.

sample data to pull when selecting the sheet name from the drop-down

The above is the sample data in “Company A,” and I’ve assigned the name to this data range as “Company1” from the menu Data > Named Ranges.

There are similar data in other sheets. In each sheet, assign range names.

Then in cell “A2” in the “Master” Sheet, set the data validation as below.

Create Drop-down Menu to Populate Data up on Selection

Go to Data > Data validation and apply the settings as per the screenshot below.

data validation for drop-down

Now your drop-down menu is ready.

The Formula Part

There are a few more steps left. In Cell B2 apply the below Vlookup formula.

=vlookup(A2,'Sheet Names'!A2:B6,2,0)

It is to pull the range name from “Sheet Names” corresponding to the drop-down menu selection.

Then to the final step. In cell C3, use the below Google Sheets popular INDIRECT function, and voila!

=indirect(A2&B2)

You have finished all the steps!

Now select the sheet name from the drop-down menu to see the content changes on the right. Any doubt, please feel free to comment.

Resources

Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

SORT and SORTBY – Excel Vs Google Sheets

While Excel offers the SORT and SORTBY functions for sorting a table, Google Sheets...

Get Top N Values Using Excel’s FILTER Function

When using the FILTER function in Excel to extract the top N values, it's...

XLOOKUP in Excel: Working with Visible Rows in a Table

In Excel, the XLOOKUP function isn't inherently designed to exclusively work with visible rows;...

SUMPRODUCT Differences: Excel vs. Google Sheets

The core purpose of the SUMPRODUCT function remains consistent across both Excel and Google...

More like this

Interactive Random Task Assigner in Google Sheets

You have multiple tasks and multiple people. Here's a fun way to randomly assign...

Google Sheets Bar and Column Chart with Target Coloring

To color each data point in the column or bar chart according to the...

Analyzing Column A Between Non-Adjacent Values in Column B: Google Sheets

This tutorial addresses a common scenario encountered in Google Sheets: how to sum, average,...

37 COMMENTS

  1. I have followed your instructions, but I’m encountering an error: “Function INDIRECT parameter 1 value is ‘Week 1 Nov 15-16Company5’. It is not a valid cell/range reference.”

    It works well until I attempt to change names in the “Sheet Names” tab.

    • Hi Sebastian,

      In the “Sheet Names” tab, replace “Week 1 Nov 15-16” with “Week 1 Nov 15-16!”.

      Note the leading exclamation mark. Once you’ve made this change, select the new name from the drop-down. That should resolve the issue.

  2. I have followed every step of this without issue.

    However, when I use the Master Tab and select the desired item on the drop-down, it is only pulling up the correct named range for one of them.

    When I select a different name on the drop-down, it populates the wrong data.

      • I have redone the named ranges a few times, and it does the same thing. Hoping you can find my error.
        — sample sheet URL removed by admin —

        • Hi, Jeffrey Smith,

          Sorry! The issue was with my formula.

          I haven’t specified the is_sorted optional argument in my formula.

          VLOOKUP(search_key, range, index, [is_sorted])

          We must specify it to FALSE or 0 (zero) and I have edited my post.

          So use the below Vlookup formula

          =VLOOKUP(A1,'Sheet Names'!A1:B14,2,0)

          You can optionally use IFNA with INDIRECT since your datasets in each tab contain #N/A!

          =ifna(INDIRECT(A1&B1))

  3. Hi,

    Can you please make a video of this?

    I keep getting an error with the indirect function.

    I want to be able to edit or add information on the master sheet instead of having to open each sheet when I want to add data.

    • Hi, Luke,

      If you share the sheet (sample), I may be able to sort out the error.

      The formula won’t permit you to add information to the master sheet. That’s a drawback.

  4. Hi,

    Already shared in view mode.

    Also if I delete data in column train for the month of June to Dec. Data in the Search_Train tab will go blank.

    Thank you.

  5. Hi,

    I already made one for my project.

    I encountered an error when I entered a date in the month of June, the “search_Train” tab will go blank.
    I cannot figure out the error.

    Could you please look into the error.

    I appreciate your help and thank you very much.

    Jon

  6. Hi Prashanth,

    Can I search like, I have 31 sheets as in for 31 working days, (sheet named day1 up to day31)

    On sheet day1, data is Name / Transactions / Amount.

    How can I search Mr. A’s transactions from Day 1 to Day 31?

    Thank you.

  7. Hi Prashanth,

    This is great info! I am trying to add data validation drop down lists to each of the “company” tabs and they don’t seem to transition well to the master sheet.

    I also have multiple charts on each tab and it only seems to pull one charts from each of the “company” Tabs.

    If you have any recommendations or wouldn’t mind taking a look at my sheet it would be greatly appreciated! Thanks.

  8. Hi,

    Thank you for this! I’m trying to do the same thing for a grade book I use for my class (instead of pulling and viewing data, I’d like to edit and add data) but I can barely pull and view the data. I see N/A as soon as I do the Vlookup function. What do you recommend? Thanks.

  9. Hi Prasanth,

    I tried to do this on the LibreOffice but when it comes to the indirect function it is showing #ref.
    I tried to download your sample and opened on libre office and same error pops out. I’m not sure if there is any indirect function we can use on LibreOffice.

  10. Hello,

    I got an error upon applying the “Indirect function” saying that my named range is not a valid cell/range reference, but I follow all the steps in the tutorial. Is there anything I have missed?

    • Hi, Ben T. Lador,

      I can’t say what’s the actual issue.

      Better please do check my example sheet. I have already shared that with a previous commenter. Please go through the comments and follow the demo sheet link.

  11. Hi, I’m a newbie to excel and google sheet, I got an interesting idea after reading your post:

    We can just PULL and VIEW data from other sheets in the MASTER sheet,
    but we can’t EDIT or ADD data in the MASTER sheet.
    By expanding the range of every name range, I mean, like changing “CompanyA!A1:E10” to “CompanyA!A1:E999”, we get the blank cells of the original sheet in MASTER, if we can make changes in the MASTER sheet, that would be awesome.

    Is this idea vagarious or there is some formula we can do this?

    Thank you for your sharing!

    • Hi,

      That’s doable.

      Please do the changes as follows.

      1. CHANGES IN THE TAB ‘Sheet Names’

      In the tab “Sheet Names” in cell B2 enter the below formula.

      ="A1:"&left(address(1,counta('Company A'!A1:1),4))

      In cell B3, copy the same formula but change the sheet name, i.e. ‘Company A’ to ‘Company B’

      Repeat this for other sheets. That means instead of named range, we are going to use cell reference.

      2. CHANGES IN THE TAB ‘Master’

      Replace the Indirect formula in Cell C2 with the below one.

      =query({indirect(A2&B2)},"Select * where Col1 is not null")

      Hope this helps.

      • I attempted to do this on my sheet, but I couldn’t get it to work properly. It would be nice to be able to use this to pull information without having to create Named ranges for every sheet.

        Is it also possible to also edit information in the master sheet pulled from the other sheets?

        • Hi, Obed Gaytan,

          We can pull information from other sheets without creating named ranges. If you share your sheet (just a demo sheet), I would try to help you out.
          Regarding your second question, we can’t edit the pulled data. If we edit, the formula would break.

  12. I got it to start pulling but the sheet is only pulling Monday for Monday and Sunday
    And pulling Sunday for Tuesday-Saturday. I dont get what is wrong :/ Ive double checked all names Ive retyped names.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.