If you want to fit y=a*sin(x)+b, it is a lot simpler than trying to fit
y=a*sin(b*x)+c. I think the latter can be done, but am far from sure.
Suppose your x values in radians(*) are in column A and your y values
are in B, both starting in row 2 (row 1 is a header).
Then, in C2, enter the formula =SIN(A2). Copy C2 down column C to
cover all the rows with data in A:B. Now, use the LINEST function with
B as the 'Known Ys' and C as the 'Known Xs'.
(*) If the values are in degrees, convert to radians with the formula
x/180*Pi. So, in C2, use =SIN(A2/180*PI())
--
Regards,
Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions