Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide certain columns for a user?

On a shared Google spreadsheet:

I don't want a specific user in my domain to view columns with sensitive data, but this person should still be able to edit the rest of the spreadsheet.

I tried creating a 'master' spreadsheet and using importrange to bring the data into a 'shared' sheet, but once I edit any cell in the shared spreadsheet, importrange no longer works as the sheet is emptied out.

Is there a quick way to do this, maybe using scripting?

like image 791
lee Avatar asked May 28 '14 06:05

lee


People also ask

Can you hide a columns in Google sheets from certain users?

To hide a column, right click on the column letter at the top of the spreadsheet and choose Hide column. To hide multiple columns, click on the first column and drag across the columns you wish to hide, or hold the Shift key and click on the last row you want to hide.

Can you hide columns in smartsheet from certain users?

Hiding is not a security feature. While collaborators with Editor and Viewer access won't be able to unhide the columns within Smartsheet, they can export the sheet to Excel or send it as an Excel attachment and un-hide the columns from that program.


1 Answers

After some research and trying various different options, I was finally able to achieve what I want using the importrange function.

At first, I tried using a combination of hide columns & protect range, but this wouldn't work because a simple copy & paste would reveal the contents of the hidden columns.

Solution: The 'master' spreadsheet does not have any sensitive column data and can be shared with everyone in the organization... I then ADD the sensitive data to a new spreadsheet and use importrange to grab contents from the 'master'. (Previously I had the roles reversed, but this didn't work)


You may want to add unique keys per row entry so that sorting etc won't mess things up when you zip-up the sensitive data and the 'master' data.

like image 150
lee Avatar answered Sep 30 '22 11:09

lee