Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drag down formula and change ROW references instead of COLUMNS

In excel I have sheet1 contains total every month. (please see image below)

enter image description here

Then in my sheet2 it will display horizontally. (please see image below)

enter image description here

I used the formula =Sheet1!$B$1, my problem is when i drag it to the right it increments the column letters. How should i make it increment the row only and the column letter is constant in column "B".

Any ideas and alternatives is much appreciated.

Thank you in advance!

like image 645
Unknownymous Avatar asked Mar 07 '14 05:03

Unknownymous


People also ask

How do I drag down a formula in Excel with changing references?

First select the cell that has the formula you want to fill, then select the cells underneath it, and then press Ctrl+D. You can also press Ctrl+R to fill the formula to the right in a row. First select the cell that has the formula you want to fill, then select the cells to the right of it, and then press Ctrl+R.


1 Answers

You can use OFFSET:

=OFFSET(Sheet1!$B$1,COLUMN()-2,0)

Or TRANSPOSE: Select B2:M2 and then enter

=TRANSPOSE(Sheet1!$B$1:B12)

as an array formula (using Ctrl+Shift+Enter)

like image 182
Tim Williams Avatar answered Sep 17 '22 09:09

Tim Williams