You could use a formula like:
=LOOKUP(2,1/('C:\My Documents\excel\[book3.xls]Sheet1'!$A$1:$A$20=$A$1),
'C:\My Documents\excel\[book3.xls]Sheet1'!$B$1:$B$20)+1
I put CP1 in A1 of the activesheet and that formula in B1.
You can adjust the range (I used rows 1:20), but you can't use the whole column
until xl2007.)
But the bigger range you use, the longer time to calculate.
> Excel 2003
>
[quoted text clipped - 23 lines]
> Any help is appreciated!
> The doctor

Signature
Dave Peterson
Dr. Schwartz - 29 Jan 2008 10:22 GMT
Hi Dave, Unfortunately I need to work with the result in my script, so a
formula wont work for me.
> You could use a formula like:
>
[quoted text clipped - 35 lines]
> > Any help is appreciated!
> > The doctor
Dave Peterson - 29 Jan 2008 14:58 GMT
Maybe you could find an unused cell, plop the formula in it, read the value, and
clean up the cell.
> Hi Dave, Unfortunately I need to work with the result in my script, so a
> formula wont work for me.
[quoted text clipped - 42 lines]
> >
> > Dave Peterson

Signature
Dave Peterson