Sheet Clinic

Share one tab of a Google Sheet, and why hiding a tab isn't security

A hidden tab still shows its name to viewers, and its data loads by name. Import the range into a second file with IMPORTRANGE and share only that.

Sheet Clinic editorsPublished
A1=IMPORTRANGE("https://docs.google.com/spreadsheets/d/14iW0wqXLLNYgXorm42Etd8Z7C4TddsOsnX8qIK70XJ8/edit", "'Broken (as you see it)'!A1:G8")

Before whole file shared, Pay rates hidden

ABCDEFGH
1NameMonTueWedThuFriHoursWeek pay
2Dana8808832576
3Luis6666024408
4Priya0888832672
5Marcus4444420330
6Aisha8080824456
7Tom0666624384
8Total1562826

What changed

  1. Range stops at column G
  2. Only the second file is shared

After what the shared file receives

ABCDEFG
1NameMonTueWedThuFriHours
2Dana8808832
3Luis6666024
4Priya0888832
5Marcus4444420
6Aisha8080824
7Tom0666624
8Total156
Figure 1. The schedule as the six workers on it saw it before, and the seven columns the separate file gets. Week pay in column H is gone because its formulas read the hidden tab.

You can't share one tab of a Google Sheet on its own, and hiding a tab isn't security either, which is why the pay rates in my test sheet ended up behind a second file. The setup is a weekly shift schedule for six hourly workers, and each worker's hourly rate sits on a separate Pay rates tab that nobody on the floor needs to see. So the workers get their own spreadsheet with one tab, Schedule: names, the five weekdays and hours for six people, 156 hours in all. One formula in A1 fills it from the original, and no cell in it holds a pay rate or a pay amount. The original, Pay rates tab and all, stays on Restricted.

The separate shared file with A1 selected. The formula bar shows the IMPORTRANGE formula with the original file address and the range Broken (as you see it) A1:G8. The grid shows Name through Hours for six people and 156 in G8. Column H is empty.
Figure 2. The finished file. One tab, seven columns, and no pay figures anywhere in it.

There's no single-tab sharing setting anywhere, which still bugs me. Sharing covers the whole file and every tab in it. Hiding the tab feels like the obvious workaround, and Sheets even pops up a gray box when you do it: Sheet hidden. Use the View menu to unhide sheets. All editors of this spreadsheet can view and unhide hidden sheets. It mentions editors and says nothing about viewers, and I read that as viewers being fine. They aren't. When I tried it in a browser signed out of Google, the hidden Pay rates tab still showed up by name, and its rates loaded straight from a web address.

Moving A1:G8 into its own file with IMPORTRANGE

The second file is called Sheet Clinic - Schedule (shared file). One tab, Schedule, one formula.

  1. Create a new spreadsheet and give it a name the workers will recognize.
  2. In A1, enter the formula from Figure 1. The first part is the original file's address in quotes. The second part is the tab name in single quotes, an exclamation point, and the range, all inside double quotes.
  3. If A1 shows #REF!, select it and click Allow Access. Google's IMPORTRANGE page describes this prompt for the first pull from a file.
  4. Share the new file. Add people by email, or set General access to Anyone with the link, and leave the role on Viewer.
  5. Open Share on the original and confirm General access reads Restricted.

That single tab is all there is, and everything below A1 is plain values. I clicked G8 and the formula bar just said 156, where the original has =SUM(G2:G7). IMPORTRANGE brings over the results and leaves the formulas behind.

Why the range ends at column G

Week pay is the one that almost got me. If the range were A1:H8, column H would land in the shared file as plain numbers, 576 for Dana, 408 for Luis and on down to 2826 in H8. The formula wouldn't come with it, so the words Pay rates wouldn't appear anywhere in the shared file and it'd look harmless. But hours sit in G and pay sits in H, and anyone who divides one by the other has the rates.

So before you pick a range for your own file, click each column you're planning to include and actually read the formula bar, because a reference to a private tab can hide under a header that looks totally boring.

In the take-home copy, the Fixed tab holds what the shared file receives. It uses ={'Broken (as you see it)'!A1:G8} in A1 rather than IMPORTRANGE, so you see the result without having to connect two files. The Hours column on Fixed, read from the shared original on Nov 12, is below.

InputBroken tab A1:H8, six people, Week pay in H reads the hidden Pay rates tab
Formula={'Broken (as you see it)'!A1:G8}
Expected32; 24; 32; 20; 24; 24; 156
Sheets returned32; 24; 32; 20; 24; 24; 156 Matches expected
Checked2026-11-12, free personal account

Try it yourself still has Week pay in column H. Select H1:H, hit Delete, and A1:H8 matches the Fixed tab.

What a signed-out viewer got from the hidden Pay rates tab

I did try the shortcut first. I hid Pay rates, set the original to Anyone with the link as Viewer, and opened it signed out. The tab bar showed Broken (as you see it), Fixed and Try it yourself, fine. Then the View menu had Hidden sheets (1) with Show Pay rates under it, grayed out, and the All Sheets list at the bottom left had Pay rates in gray too (so much for hidden).

A viewer can't click Show Pay rates. The tab still ships with the file though, and my signed-out browser got to what's in it without any special access.

The shared file opened signed out. The View menu is open on Hidden sheets (1), and the submenu shows Show Pay rates in gray. Behind the menu, H2 is selected and shows 576.
Figure 3. A viewer sees the hidden tab's name. The Show Pay rates item can't be clicked.

Week pay gave it away first. H2 holds =G2*VLOOKUP(A2, 'Pay rates'!A:B, 2, FALSE), and every cell down to H7 has the same formula for its own row. Click H2 in view-only mode and that formula sits right there in the formula bar, hidden tab name included. You don't even need the formula, honestly. Dana's week pay is 576 for 32 hours, 576 divided by 32 is 18, and 18 is exactly what the hidden tab lists for her.

The Broken tab with H2 selected. The formula bar shows =G2*VLOOKUP(A2, 'Pay rates'!A:B, 2, FALSE). Column H, Week pay, shows 576, 408, 672, 330, 456 and 384, with 2826 in H8.
Figure 4. A visible column that looks up the hidden tab. The tab name sits right there in the formula bar.

The other leak was the address Sheets answers for charts and query tools. I stuck /gviz/tq?tqx=out:html&sheet=Pay%20rates on the end of the file's address in the same signed-out browser, and back came every name and rate on the hidden tab, Dana at 18 down to Tom at 16. All it needs is the tab's name, and View, Hidden sheets had handed me that a minute earlier.

A plain HTML table with the columns Name and Hourly rate. Dana 18, Luis 17, Priya 21, Marcus 16.5, Aisha 19, Tom 16.
Figure 5. The hidden tab, loaded by name from the shared file while signed out.

Google's page on protecting, hiding and editing sheets mentions one more way in that I didn't test with a second account. It says spreadsheet viewers can still access content in hidden sheets, and that a viewer who makes a copy can unhide the sheets in it. Same page says hiding a sheet isn't the same as protecting it, and I'll admit I wondered for a second whether protection would fix this. It won't. Protection only decides who can edit a range, and Google says outright it shouldn't be used as a security measure.

What the IMPORTRANGE file still shows to viewers and editors

Viewers of the second file can read the A1 formula too, which means they get the original file's full address. Figure 2 shows it in the formula bar. With the original on Restricted, that address only opens for people you added by email. If the original is on Anyone with the link, the address opens the whole thing, hidden tab and all, so check that setting again once the second file exists.

Editors of the second file are the bigger worry, so keep it Viewer only, and if someone has to type into a sheet, give them a different file that doesn't import from the original. The IMPORTRANGE page says that once access is granted, any editor on the destination spreadsheet can use IMPORTRANGE to pull from any part of the source spreadsheet, and the access sticks until the person who granted it's removed from the source. An editor could just change A1:G8 to 'Pay rates'!A1:B7 and read the rates.

The take-home copy is shared with Anyone with the link only so readers can copy it. Pay rates is hidden in it the same way, and in a copy you own, View, Hidden sheets lets you show it again.

Take-home copy. Four tabs: Broken (as you see it), Fixed, Try it yourself, Pay rates (hidden). It opens as a copy in your own Drive.

Copy the sheet