R
Ron Coderre
Try this:
On the "Company" sheet
Put this ARRAY FORMULA (use 'ctrl+shift+enter'....instead of 'enter') in
A2:
=IF(SUM((trips!$W$2:$W$10000<>"")*ISERROR(MATCH(trips!$W$2:$W$10000,$A$1:A1,0)))<>0,INDEX(trips!$W$2:$W$10000,MATCH(1,--ISERROR(IF(ISBLANK(trips!$W$2:$W$10000),0,MATCH(trips!$W$2:$W$10000,$A$1:$A1,0))),0),1),"")
Copy that formula down as far as you need.
(adjust range references to suit your situation)
Does that help?
***********
Regards,
Ron
XL2002, WinXP
On the "Company" sheet
Put this ARRAY FORMULA (use 'ctrl+shift+enter'....instead of 'enter') in
A2:
=IF(SUM((trips!$W$2:$W$10000<>"")*ISERROR(MATCH(trips!$W$2:$W$10000,$A$1:A1,0)))<>0,INDEX(trips!$W$2:$W$10000,MATCH(1,--ISERROR(IF(ISBLANK(trips!$W$2:$W$10000),0,MATCH(trips!$W$2:$W$10000,$A$1:$A1,0))),0),1),"")
Copy that formula down as far as you need.
(adjust range references to suit your situation)
Does that help?
***********
Regards,
Ron
XL2002, WinXP