FUNÇÃO INDIRECTA
Experimente INDIRECT
função .
Returns the reference specified by a text string. References are immediately evaluated to display their contents. Use INDIRECT when you want to change the reference to a cell within a formula without changing the formula itself.
Alguns exemplos de spreadsheetpage.com-referência a uma planilha indiretamente . Pergunta respondida lá:
Is there any way that I can enter the month name into a cell on my summary sheet, and then have my formulas use the data for the specified sheet?
Yes. Excel's INDIRECT function was designed specifically for this sort of thing. This function accepts a text string as an argument, and then evaluates the text string to arrive at a cell or range reference. In your case, assume that cell B1 on your summary worksheet holds the month name. The following formula utilizes the INDIRECT function to create the range reference used by the SUM function:
=SUM(INDIRECT(B1&"!F1:F10"))
Sintaxe:
INDIRECT(ref_text, [a1])
Ref_text Required. A reference to a cell that contains an A1-style reference, an R1C1-style reference, a name defined as a reference, or a reference to a cell as a text string.
A1 Optional. A logical value that specifies what type of reference is contained in the cell ref_text.
Exemplos:
-
=INDIRECT("MySheet1!C1")
retornará valor da célula C1 em folha "MySheet1" -
=INDIRECT("MySheet" & A1 &"!C1")
retornará valor da célula C1 na planilha variável "MySheet1", "MySheet2", etc. se o A1 contém 1,2, etc. - %código% retornará valor da célula C1 na planilha "Reg 12.08"
-
=INDIRECT("'Reg 12.08'!C1")
retornará valor de um intervalo variável definido em C1, na planilha de variáveis, definido na célula A1.