i'm writing a simple vb code for excel to interpolate data from a given table.
i have been successful in doing this with the data tabulated in column (see attached pix: excelforum1.jpg), but not when it is in rows (see attached pix: excelforum2.jpg).
i was thinking of two ways to solve the problem, one is to resize the table to a single row, and the other is to add a transpose function to the ivlookup code.
the problem with my first solution is that VB shows an error if I resize the table to a single row, ie 'TableCol = Application.WorksheetFunction.Match(x, table.Resize(1, ), 1)'. to the other solution, VB doesn't show any error but Excel returns an error value, ie 'table = Application.WorksheetFunction.Transpose(table)'.
any advise will be greatly appreciated. thanks.
Bookmarks