Hi vissw,
Excel has a better function: linestat, I thought it was (I'm not sure because excel is localized for these functions), maybe linest.
In LabVIEW look foor 'general polynomial fit' it will do what you want, but I'm not sure it is present inevery LV version.
Ton