Unfortunately that just brings back a zero value.
This works for me
=INDEX(Data!$B$15:$B$37,MATCH(MID(CELL("filename"),SEARCH("[",CELL("filename"))+1,SEARCH("]",CELL("filename"))-SEARCH("[",CELL("filename"))-5),Data!$A$15:Data!$A$37,0))
this assume you are matching the filename (no file extension) in A15:A37 and
want to return the adjacent cell in B15:B37 to where the match is in
A15:A37?
Btw, since you are searching for "[" you can use find instead since it
shortens your formula with 4 characters
=INDEX(Data!$B$15:$B$37,MATCH(MID(CELL("filename"),FIND("[",CELL("filename"))+1,FIND("]",CELL("filename"))-FIND("[",CELL("filename"))-5),Data!$A$15:Data!$A$37,0))
if that doesn't work and you are indeed looking for a value in B15:B37 then
your values in A15:A37 have extra spaces or other invisible characters

Signature
Regards,
Peo Sjoblom
> Unfortunately that just brings back a zero value.
>
[quoted text clipped - 25 lines]
>> >
>> > Can anyone see what I am doing wrong???
BoRed79 - 03 Jul 2007 08:02 GMT
Thanks. This worked great.
> This works for me
>
[quoted text clipped - 41 lines]
> >> >
> >> > Can anyone see what I am doing wrong???