as you can see the formulas here, the file name in all the formulas is the cell (column B) to the left. I would like to implement a vb code that would automatically fill out the sheet with the filenames in the formulas
Excel 2010
Excel Workbook | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Date | PO NUMBER | TOTAL | abc | def | ghi | jkl | ||
2 | June 16, 2011 | 7418 | $ 3,179.75 | ||||||
3 | June 16, 2011 | 7419 | |||||||
4 | June 16, 2011 | 7420 | |||||||
5 | June 16, 2011 | 7421 | |||||||
6 | June 16, 2011 | 7422 | |||||||
7 | June 16, 2011 | 7423 | |||||||
8 | June 16, 2011 | 7424 | |||||||
Raw Data |
Excel 2010
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2 | ='F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$S$33 | |
D2 | =IF(ISNA(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(D1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0))),"",(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(D1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0)))) | |
E2 | =IF(ISNA(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418xls]PO'!$C$16:$C$30,MATCH(E1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0))),"",(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(E1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0)))) | |
F2 | =IF(ISNA(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(F1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0))),"",(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(F1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0)))) | |
G2 | =IF(ISNA(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(G1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0))),"",(INDEX('F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$C$16:$C$30,MATCH(G1,'F:\Engineering\Michael\Excel\INVENTORY\PO\[7418.xls]PO'!$D$16:$D$30,0)))) |