Solved

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

Posted on 2011-03-01
5
253 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
  • 2
  • 2
5 Comments
 
LVL 59

Expert Comment

by:Chris Bottomley
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
ALong the lines of:

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

I suspect

Chris
0
 

Author Closing Comment

by:Tocogroup
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

772 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

11 Experts available now in Live!

Get 1:1 Help Now