I set up the format I was looking for in a second worksheet. The code I used for one of the cells is shown below.
C4 is the cell where you enter the p/n you want to find.
=MATCH(C4,Sheet1!A3:A740,0)+2
=INDEX(Sheet1!$A3:$T740,$A6,1)
The first line is in cell A6. It finds the part number in sheet1 (as entered into cell C4) and returns the row number.
I used the second line to find the row for the p/n (as returned by the first line). Then display the items by placing the column number for whichever item I need to display as the last number in formula on the second line.
It works well in the spreadsheet, and people are thrilled! I just thought I would learn how to do the same thing in VB for the experience. I think it would look even slicker that way.
Bookmarks