Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using A Cell To Reference The Name Of Sheet In A Formula For Google Sheets

is it possible to place the name of the first worksheet in a cell and then use it in a formula to reference information for my second sheet?

I am using Google Spreadsheets, and I have one worksheet that houses scheduling data for employees in columns for each day of the week. The second worksheet builds a payroll report, and directly references columns in the first sheet like so:

='Sales Report - WB 10.06'!B3 

My question is, is it possible to place the name of the first worksheet in a cell ('Sales Report - WB 10.06') and then use it in a formula to reference information for my second sheet?

My current issue is that I have to create a new schedule and a new payroll sheet for 10 different regions on a weekly basis, and duplicating and changing the formulas in 70 columns to reference the correct sheet will become very tedious.

It would be much easier to just update a cell in the spreadsheet so that the formulas point to the correct worksheet to reference data from.

like image 668
Richard Ennis Avatar asked Oct 11 '14 20:10

Richard Ennis


People also ask

How do I pull a sheet name into a cell?

Go to the cell which you want to reference the current sheet tab name, please enter =TabName() and then press the Enter key. Then the current sheet tab name will be display in the cell.


1 Answers

Yes, by using the INDIRECT function:

A1: Sales Report - WB 10.06

Then you can use:

=INDIRECT("'"&A1&"'!B3")

like image 52
AdamL Avatar answered Sep 22 '22 00:09

AdamL