Excel formula help
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] Excel formula help

9 Posts
5 Users
0 Reactions
61 Views
Posts: 368
Free Member
Topic starter
 

I have data in a grid in one sheet and I want to transfer some of the data to a column in another sheet.
The data I need from sheet 1 is in cells A1, B2, C3, D4 etc
I need to put it in one column in sheet 2: A1, A2, A3 etc
How do I copy formulas so that it increases both row and column range?


 
Posted : 15/09/2015 2:14 pm
Posts: 0
Free Member
 

copy, paste special

transpose


 
Posted : 15/09/2015 2:15 pm
Posts: 7184
Full Member
 

Your data is in a diagonal line?

I have no idea how to do that without a lot of typing or some weird table definition and lookup.


 
Posted : 15/09/2015 2:18 pm
 ffej
Posts: 0
Free Member
 

Could you use the offset statement of change the reference cell?

Jeff


 
Posted : 15/09/2015 2:19 pm
Posts: 368
Free Member
Topic starter
 

Thanks ffej, OFFSET worked.
I used it to use ever increasing offsets for each cell.


 
Posted : 15/09/2015 2:33 pm
Posts: 7184
Full Member
 

*Intrigued* Never used offset before...

What's the formula?


 
Posted : 15/09/2015 2:39 pm
Posts: 368
Free Member
Topic starter
 

Me neither.

=OFFSET('Sheet (2)'!$E$14,H15,I15,1,1)

So it looks for cell E14 in [i]"Sheet (2)"[/i], but then moves down the number of rows contained in cell H15, and then moves right the number of columns in cell I15. The last 2 digits are optional.

This allowed me to have columns H and I as lists of increasing digits so each time it looked one row down and one row to the right.


 
Posted : 15/09/2015 2:43 pm
Posts: 7184
Full Member
 

Got it. That could be handy one day 🙂


 
Posted : 15/09/2015 2:45 pm
Posts: 36
Free Member
 

offset and indirect are very powerful for extracting data from one form to use in another.

Worth experimenting with template worksheets and changes to worksheet names based on cell contents. Very useful.

Think of OFFSET a bit like battle ships.

Start with an "Origin", and the other 4 arguments define how far left/right and up/down of the origin you move, and then how much data to bring back. Usually 1x1, but when used with other functions like "SUM" it can bring back the sum of an array.


 
Posted : 15/09/2015 2:46 pm
Posts: 0
Free Member
 

*gets glasses*


 
Posted : 15/09/2015 2:52 pm