Solved

Excel Auto increment drag left add cell like dragging down

Posted on 2011-03-25
8
814 Views
Last Modified: 2012-05-11
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
Comment
Question by:freshgrill
  • 5
  • 3
8 Comments
 
LVL 39

Expert Comment

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

=INDIRECT(ADDRESS(22+COLUMN(),8,,,"Data"))

and copy to the right

0
 
LVL 39

Expert Comment

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

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

Thomas
0
 

Author Comment

by:freshgrill
ID: 35217119
nutsh: I don't get what is the 22 & 8 in the formula?
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:freshgrill
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

by:nutsch
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

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

nutsch-436889.flv
0
 

Author Comment

by:freshgrill
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

by:
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now