Solved

How can I 'fill' a range of cells incrementing the cell reference within a formula

Posted on 2011-03-01
5
287 Views
Last Modified: 2012-08-13
Hi,
I want to copy a formula in a cell to the cells beneath it by incrementing the cell reference by 6.
For example, here is the formula...
=INDIRECT($D$6&"!"&"B11")
I want to copy down so the next cell adds 6 to the cell reference thus....
=INDIRECT($D$6&"!"&"B17")
...and so on.
I tried using Autofill but it didn't work.
Is there any way of doing this other than manually changing each formula or using VBA ?
Thanks
Toco
0
Comment
Question by:Tocogroup
[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
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
ID: 35005756
Assuming you are starting with the subject formula in row 1 then one example would be:

=INDIRECT($D$6&"!" & ADDRESS(ROW()*6+5,2))

Chris
0
 
LVL 6

Expert Comment

by:Eric Zwiekhorst
ID: 35005774
You might use  OFFSET to achieve this.
as reference you have the previous found cell, then offset would calculate the increment of 6...

Kr

Eric
0
 

Author Comment

by:Tocogroup
ID: 35005850
Chris,
What would the formula be if I was starting with the subject formula in row 11 of the other sheet ?
Your example returned me a zero.
0
 
LVL 59

Accepted Solution

by:
Chris Bottomley earned 500 total points
ID: 35005891
ALong the lines of:

=INDIRECT($D$6&"!" & ADDRESS((ROW()-10)*6+5,2))

I suspect

Chris
0
 

Author Closing Comment

by:Tocogroup
ID: 35005936
Thanks for that Chris. It works a treat. I wasn't too sure how ADDRESS and ROW were working together but I've got it now.
many thanks
Toco
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

752 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