Formula to reference every second row

N

Neville Bailey

I have created a formula to reference a cell in another workbook. I now want
to copy the formula down a number of consecutive rows, but I want it to
reference the cell in every second row in the other workbook.

How can I do that?
 
M

Mike H

Well you don't tell us the formula and whetjer its odd or even rows so heres
a solution for even rows provided there is not text in the range

=SUMPRODUCT((MOD(ROW($A$1:$A$100),2)=0)*($A$1:$A$100))

Change the xero to 1 for odd rows.

If there is or could be text in the range use this instead
=SUM(IF(MOD(ROW($A$1:$A$100),2)=0,$A$1:$A$100,0))
This is an array so enter with CTRL+Shift+Enter.

Mike
 
M

MartinW

Hi Neville,

You dont say what your formula is but this may be of some help.
This formula placed in Sheet2 and dragged down will return
every second value from column A in Sheet1.
=OFFSET(Sheet1!A$1,(ROWS($1:1)-1)*2,,)

HTH
Martin
 
N

Neville Bailey

MartinW said:
Hi Neville,

You dont say what your formula is but this may be of some help.
This formula placed in Sheet2 and dragged down will return
every second value from column A in Sheet1.
=OFFSET(Sheet1!A$1,(ROWS($1:1)-1)*2,,)

HTH
Martin





Brilliant! Thanks MartinW, it works like a charm!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top