If you wanted to roll your own, I wouldn't try to put the known points in a table with a line for each day, just leave the dates and SPs in one or two arrays of just the defined points.
Step through your array and calculate the Mx + b for each pair, then store the M's and b's in two additional arrays.
When you want to use the table, use COUNTIFLE on the date array to find the table index, then fetch the corresponding M and b, and do the interpolation calc.