See Help for worksheet functions SLOPE, INTERCEPT, LINEST, etc. There is
also a regression tool (using LINEST as its calculation engine) in the
Analysis ToolPak, which ships with Excel (methods of installation depend on
what version of Excel you are running, which you did not reveal).
If none of this is helpful, try elaborating on your very cryptic question.
Jerry