Hi Dave,
it performs the formula the right way now. I just forgot to name a
range. My mistake. Regarding the column O and A you are probably right.
I changed it to A. However it seems to work no matter what letter I
put.
One thing I don´t understand though: What exactly in the code makes it
dynamic - that is the lookup in a10 returns to O10 and a11 to O11 etc -
because I only put a9 to O9 and nothing else.
/Heine
> What does it do now?
>
[quoted text clipped - 32 lines]
> >
> > /Heine
Bob Phillips - 06 Nov 2006 14:24 GMT
It's a feature of Excel. When you enter a formula in a contiguous range,
Excel adjusts each instance relative to its position.

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
Hi Dave,
it performs the formula the right way now. I just forgot to name a
range. My mistake. Regarding the column O and A you are probably right.
I changed it to A. However it seems to work no matter what letter I
put.
One thing I don´t understand though: What exactly in the code makes it
dynamic - that is the lookup in a10 returns to O10 and a11 to O11 etc -
because I only put a9 to O9 and nothing else.
/Heine
Dave Peterson wrote:
> What does it do now?
>
[quoted text clipped - 34 lines]
> >
> > /Heine
Dave Peterson - 06 Nov 2006 18:03 GMT
Just to add to Bob's response...
Try this in a test worksheet.
Select B1:B20 (about)
With B1 the activecell, type this:
=A1
Now look at the formulas in the other cells. VBA does the same thing.
> Hi Dave,
>
[quoted text clipped - 48 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Dave Peterson - 06 Nov 2006 18:04 GMT
I forgot an important step:
Just to add to Bob's response...
Try this in a test worksheet.
Select B1:B20 (about)
With B1 the activecell, type this:
=A1
And hit ctrl-enter instead of enter. <--- Added!
Now look at the formulas in the other cells. VBA does the same thing.
> Hi Dave,
>
[quoted text clipped - 48 lines]
> >
> > Dave Peterson

Signature
Dave Peterson