Scenery:
I have two spreadsheet documents from google drive:
I use the IMPORTRANGE function in Book2 to fetch the value from cell A1 of sheet Day1 from Book1 without any problem.
=IMPORTRANGE("1lIpak48SxPpi4aWo20_BuquZ12zCQXekwSCEyBcYotQ";"Dia1!A1")
Rate: 150
I now want to build the IMPORTRANGE function as a concatenation in order to make it parameterizable within the same sheet.
F1="Dia1" //In cell F1 the value to be concatenated is located;
Try:
=CONCATENAR("=IMPORTRANGE(""1lIpak48SxPpi4aWo20_BuquZ12zCQXekwSCEyBcYotQ"";""";F1;"!A1"")")
Although the concatenation is correct, it returns the value =IMPORTRANGE("1lIpak48SxPpi4aWo20_BuquZ12zCQXekwSCEyBcYotQ";"Dia1!A1")
as a string.
Ask:
How to indicate that I execute the concatenated string so that it gives me the desired result (150)?
Formula
Explanation
Adding a formula
To add a formula, you type the equal symbol
=
at the beginning of the formula. This is only done once and only once per cell.Nesting functions
Placing a function as an argument to another function is called nesting functions.
arguments
In this case, what you want is to concatenate a cell value with some text to get the text string argument of the reference, so CONCATENATE should be used nested within IMPORTRANGE and not the other way around.