I am creating a workbook in excel that will serve as a template for many others that will be generated through it.
This template workbook has 5 spreadsheets, and one of them can be replicated several times with several different names such as: Financial, Billing, Tax, etc., depending on the needs of each project.
One of my worksheets contains a reference to data that appears in these new worksheets through a formula. Below I will give the example of how is my spreadsheet:
Títulos:
Nome 001
Nome 002
Nome 003
Tabela:
Financeiro
Faturamento
Tecnologia
Pontos:
115
168
985
The column of points today has a formula where I manually enter the name of the worksheet it needs to look for, for example: Financial! A1: C50. What I would like is to be able to fetch the spreadsheet that takes the same column name, so it would be dynamic.
NOTE: The number of rows for each project in this summary worksheet is also variable, so you need to leave the formula picking up in the Table column in order to calculate.
Below the code in the following dots column:
=SE(ÉERROS(ÍNDICE(Modelo!$D$3:$BA$3;1;CORRESP($C5;Modelo!$D$3:$BA$3;0) + 2));"";ÍNDICE(Modelo!$D$3:$BA$3;1;CORRESP($C5;Modelo!$D$3:$BA$3;0) + 2))