Solved

# Excel Auto increment drag left add cell like dragging down

Posted on 2011-03-25
834 Views
In Excel 2010,

I can drag down and have it auto increment: I have references to another sheet, the data is in vertical columns but the summary sheet with the references need it horizontal.

DATA Sheet:

1: h23
2: h24
3: h25

Summary sheet: ='data'!h23 |'data'!H24|'data'\$h25

I would like to create the first one ('data'!h23), highlight and drag right automatically filling in the cells to the right.
0
Question by:freshgrill
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 5
• 3

LVL 39

Expert Comment

ID: 35217099
assuming you start in your summary sheet in cell A2, you could use

and copy to the right

0

LVL 39

Expert Comment

ID: 35217111
You could also use the offset function, like

=OFFSET(Data!\$H\$23,COLUMN()-1,)

Thomas
0

Author Comment

ID: 35217119
nutsh: I don't get what is the 22 & 8 in the formula?
0

Author Comment

ID: 35217149
The offset doesn't work, it just show the same formula dragged to the right with no changes in formula or value.
0

LVL 39

Expert Comment

ID: 35217155
8 is column H (A=1, B=2... H=8) ...to get the column of the destination
22+column() =23 in column A, 24 in column B to get the row of the destination

0

LVL 39

Expert Comment

ID: 35217175
The formula is the same, the value will be different. Promised. Check out the screencast

nutsch-436889.flv
0

Author Comment

ID: 35217279
nutsch: Okay, I created 2 new sheets and did the same thing and it worked. But when do it on the real sheets it doesn't work. I think it maybe the column I start with. I Start with Column C on the summary sheet, does that have any effect?
0

LVL 39

Accepted Solution

nutsch earned 500 total points
ID: 35217311
yes it does. the column()-1 parameter starts the offset at 0 in column a but 2 in column C

try this instead and update \$C1 to whatever cell you're going to start the formula in.

=OFFSET(Data!\$H\$23,COLUMN()-column(\$C1),)

Thanks,

Thomas
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
###### Suggested Courses
Course of the Month2 days, 12 hours left to enroll