In Sheet2 A2:
=IF(ISNA(MATCH(Sheet2!A$1,Sheet1!$A2:$D2,0)),"",INDEX(Sheet1!$A$1:$D$1,MATCH(Sheet2!A$1,Sheet1!$A2:$D2,0)))
copy across from A2 to D2 and down as far as needed
> I have the following data:
>
[quoted text clipped - 19 lines]
> I have 309 rows of data. So I need to be able to just drag the formula into
> the rest of the cells.
Sojo - 17 Sep 2007 15:44 GMT
Fabulous!!!! Thanks a million!
> In Sheet2 A2:
> =IF(ISNA(MATCH(Sheet2!A$1,Sheet1!$A2:$D2,0)),"",INDEX(Sheet1!$A$1:$D$1,MATCH(Sheet2!A$1,Sheet1!$A2:$D2,0)))
[quoted text clipped - 24 lines]
> > I have 309 rows of data. So I need to be able to just drag the formula into
> > the rest of the cells.