PC Review


Reply
Thread Tools Rate Thread

Copy Indirect down a column

 
 
Picman
Guest
Posts: n/a
 
      26th Feb 2009
I have a column of cells that import there values from another worksheet with
simple formula;
=sheet2!a1
=sheet2!a2
=sheet2!a3, etc.

The problem is that these cells are 6 rows apart and the reference data on
"sheet 2" is in a column with no spaces. If it were only a couple of entries
i would do it manualy but there are about 4500 of them. i was hoping to use
an "indirect" function but i don't seem to be able to copy the formula and
have the cell reference progress down the list, it copies the same cell
reference into all copied cells.
 
Reply With Quote
 
 
 
 
Andrea Jones
Guest
Posts: n/a
 
      26th Feb 2009
Assuming you are displaying your first result in row 1 and the next one in
row 7, try the following:

=IF(ROW()-(INT(ROW()/6)*6)=1,INDIRECT(CONCATENATE("Sheet2!A",(INT(ROW()/6)+1))),"")

Andrea Jones
www.allaboutoffice.co.uk

"Picman" wrote:

> I have a column of cells that import there values from another worksheet with
> simple formula;
> =sheet2!a1
> =sheet2!a2
> =sheet2!a3, etc.
>
> The problem is that these cells are 6 rows apart and the reference data on
> "sheet 2" is in a column with no spaces. If it were only a couple of entries
> i would do it manualy but there are about 4500 of them. i was hoping to use
> an "indirect" function but i don't seem to be able to copy the formula and
> have the cell reference progress down the list, it copies the same cell
> reference into all copied cells.

 
Reply With Quote
 
Picman
Guest
Posts: n/a
 
      26th Feb 2009
actually the first cell is in row 3 and the next is in row 9 etc. i tried
your formula and it returned nothing.

"Andrea Jones" wrote:

> Assuming you are displaying your first result in row 1 and the next one in
> row 7, try the following:
>
> =IF(ROW()-(INT(ROW()/6)*6)=1,INDIRECT(CONCATENATE("Sheet2!A",(INT(ROW()/6)+1))),"")
>
> Andrea Jones
> www.allaboutoffice.co.uk
>
> "Picman" wrote:
>
> > I have a column of cells that import there values from another worksheet with
> > simple formula;
> > =sheet2!a1
> > =sheet2!a2
> > =sheet2!a3, etc.
> >
> > The problem is that these cells are 6 rows apart and the reference data on
> > "sheet 2" is in a column with no spaces. If it were only a couple of entries
> > i would do it manualy but there are about 4500 of them. i was hoping to use
> > an "indirect" function but i don't seem to be able to copy the formula and
> > have the cell reference progress down the list, it copies the same cell
> > reference into all copied cells.

 
Reply With Quote
 
Andrea Jones
Guest
Posts: n/a
 
      26th Feb 2009
In that case use

=IF(ROW()-(INT(ROW()/6)*6)=3,INDIRECT(CONCATENATE("Sheet1!A",(INT(ROW()/6)+1))),"")

You just need to change the number before INDIRECT to whichever row you're
starting on.

Andrea

"Picman" wrote:

> actually the first cell is in row 3 and the next is in row 9 etc. i tried
> your formula and it returned nothing.
>
> "Andrea Jones" wrote:
>
> > Assuming you are displaying your first result in row 1 and the next one in
> > row 7, try the following:
> >
> > =IF(ROW()-(INT(ROW()/6)*6)=1,INDIRECT(CONCATENATE("Sheet2!A",(INT(ROW()/6)+1))),"")
> >
> > Andrea Jones
> > www.allaboutoffice.co.uk
> >
> > "Picman" wrote:
> >
> > > I have a column of cells that import there values from another worksheet with
> > > simple formula;
> > > =sheet2!a1
> > > =sheet2!a2
> > > =sheet2!a3, etc.
> > >
> > > The problem is that these cells are 6 rows apart and the reference data on
> > > "sheet 2" is in a column with no spaces. If it were only a couple of entries
> > > i would do it manualy but there are about 4500 of them. i was hoping to use
> > > an "indirect" function but i don't seem to be able to copy the formula and
> > > have the cell reference progress down the list, it copies the same cell
> > > reference into all copied cells.

 
Reply With Quote
 
Teethless mama
Guest
Posts: n/a
 
      26th Feb 2009
Try this:

=OFFSET(Sheet2!$A$3,(ROWS($1:1)-1)*6,)


"Picman" wrote:

> actually the first cell is in row 3 and the next is in row 9 etc. i tried
> your formula and it returned nothing.
>
> "Andrea Jones" wrote:
>
> > Assuming you are displaying your first result in row 1 and the next one in
> > row 7, try the following:
> >
> > =IF(ROW()-(INT(ROW()/6)*6)=1,INDIRECT(CONCATENATE("Sheet2!A",(INT(ROW()/6)+1))),"")
> >
> > Andrea Jones
> > www.allaboutoffice.co.uk
> >
> > "Picman" wrote:
> >
> > > I have a column of cells that import there values from another worksheet with
> > > simple formula;
> > > =sheet2!a1
> > > =sheet2!a2
> > > =sheet2!a3, etc.
> > >
> > > The problem is that these cells are 6 rows apart and the reference data on
> > > "sheet 2" is in a column with no spaces. If it were only a couple of entries
> > > i would do it manualy but there are about 4500 of them. i was hoping to use
> > > an "indirect" function but i don't seem to be able to copy the formula and
> > > have the cell reference progress down the list, it copies the same cell
> > > reference into all copied cells.

 
Reply With Quote
 
Picman
Guest
Posts: n/a
 
      26th Feb 2009
Neither of these worked. Maybe I'm not explaining this properly So I'll try
to clarify it. I'm building the formulas in cell A3, A9, A15, A21 etc in my
results worksheet. The data that I want to retrieve is on another worksheet
named "Prods" where the data is in cell A1 then A2 then A3 etc. I want Cell
A3 On my results worksheet to retrieve the value in A1 from the data
worksheet ("Prods") and A9 to retrieve the value in A2, and A21 to retrieve
the value in A3 etc. And I would like to include the benefits of using the
"indirect" function so that if the values change or rows are added I want
these cells to always pull the value in the cell designated. I gues if i had
to i could insert 5 blank rows between all of the data on the "Prods"
worksheet but that seems in

"Teethless mama" wrote:

> Try this:
>
> =OFFSET(Sheet2!$A$3,(ROWS($1:1)-1)*6,)
>
>
> "Picman" wrote:
>
> > actually the first cell is in row 3 and the next is in row 9 etc. i tried
> > your formula and it returned nothing.
> >
> > "Andrea Jones" wrote:
> >
> > > Assuming you are displaying your first result in row 1 and the next one in
> > > row 7, try the following:
> > >
> > > =IF(ROW()-(INT(ROW()/6)*6)=1,INDIRECT(CONCATENATE("Sheet2!A",(INT(ROW()/6)+1))),"")
> > >
> > > Andrea Jones
> > > www.allaboutoffice.co.uk
> > >
> > > "Picman" wrote:
> > >
> > > > I have a column of cells that import there values from another worksheet with
> > > > simple formula;
> > > > =sheet2!a1
> > > > =sheet2!a2
> > > > =sheet2!a3, etc.
> > > >
> > > > The problem is that these cells are 6 rows apart and the reference data on
> > > > "sheet 2" is in a column with no spaces. If it were only a couple of entries
> > > > i would do it manualy but there are about 4500 of them. i was hoping to use
> > > > an "indirect" function but i don't seem to be able to copy the formula and
> > > > have the cell reference progress down the list, it copies the same cell
> > > > reference into all copied cells.

 
Reply With Quote
 
Picman
Guest
Posts: n/a
 
      27th Feb 2009
That worked perfectly, thank you very much

"David Biddulph" wrote:

> =OFFSET(Sheet2!A$1,(ROW(A1)-1)/6,) and copy into your cells 6 rows apart.
> --
> David Biddulph
>
> "Picman" <(E-Mail Removed)> wrote in message
> news:687D347B-C1A6-4163-94EA-(E-Mail Removed)...
> >I have a column of cells that import there values from another worksheet
> >with
> > simple formula;
> > =sheet2!a1
> > =sheet2!a2
> > =sheet2!a3, etc.
> >
> > The problem is that these cells are 6 rows apart and the reference data on
> > "sheet 2" is in a column with no spaces. If it were only a couple of
> > entries
> > i would do it manualy but there are about 4500 of them. i was hoping to
> > use
> > an "indirect" function but i don't seem to be able to copy the formula and
> > have the cell reference progress down the list, it copies the same cell
> > reference into all copied cells.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using INDIRECT with COLUMN fails.. I know why MDBJ Microsoft Excel Discussion 5 20th Oct 2008 06:39 PM
Indirect function – relative column copy/paste Gary T Microsoft Excel Worksheet Functions 1 24th Sep 2008 02:52 PM
Indirect with COLUMN =?Utf-8?B?SkVGRg==?= Microsoft Excel Worksheet Functions 9 24th Apr 2007 10:03 PM
copy down an indirect formula =?Utf-8?B?Sm9lYg==?= Microsoft Excel Worksheet Functions 3 10th Jan 2006 02:29 AM
Can INDIRECT hold only the column value constant? =?Utf-8?B?TWlrZQ==?= Microsoft Excel Programming 4 15th Feb 2005 08:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 AM.