... Use the offset function.
For example - suppose you had a formula on line 1, and you would like to reference Banco!H5 , you could do something like:
=OFFSET(Banco!$G$5,0,ROW())
Now, when you drag it down, it will be compensated by the number of lines down.
So your new formula is as follows:
=SUM(OFFSET(Banco!$G$5,0,ROW()),OFFSET(Banco!$G$6,0,ROW()),OFFSET(Banco!$G$8,0,ROW()),OFFSET(Banco!$G$9,0,ROW()),OFFSET(Banco!$G$10,0,ROW()),OFFSET(Banco!$G$11,0,ROW()))
Again, this assumes that you insert this formula in line 1 (I know this is ugly, but you specified specific cells, so you need to specify each separately)
Hope this makes sense
John bustos
source share