We want to copy the contents of cell A1 from Sheets1-5 into row 2 of the current sheet.
That is, cell C2 of the current sheet is to contain the value stored in cell A1 of Sheet1, cell D2 is to contain the value from Sheet2, and so on.
Solution:
Use the INDIRECT and COLUMN functions as shown in the following formula:
=INDIRECT("Sheet" & COLUMN()-COLUMN($C$2)+1 & "'!$A$1")
Terms
and Conditions of use
The applications/code on this site are distributed as is and without warranties
or liability. In no event shall the owner of the copyrights, or the authors
of the applications/code be liable for any loss of profit, any problems
or any damage resulting from the use or evaluation of the applications/code.