close

Hi,

I'm working on a Mechanical Engineering lab with a plot of data in the form
of an absolute value function. Is there any solution to allow Excel to plot
a line of best fit as an absolute value function?

In a range of your worksheet, convert the values into absolute values using
the ABS() worksheet function. For example, if the values are in column B,
starting in B2, in C2 enter

=ABS(B2)

and fill this formula down as far as you need. Plot this data and add a
trendline to this series.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services - Tutorials and Custom Solutions -
PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
peltiertech.com/Excel/ExcelUserConf06.html
_______

quot;Leequot; gt; wrote in message
...
gt; Hi,
gt;
gt; I'm working on a Mechanical Engineering lab with a plot of data in the
gt; form
gt; of an absolute value function. Is there any solution to allow Excel to
gt; plot
gt; a line of best fit as an absolute value function?
I interpreted the question very differently than Jon.

You can quot;roll your ownquot; trendline with the help of Solver.

Suppose your data set is in A2:B101, with x values in col. A.

Then, designate C1 and D1 as cells that will hold the slope and intercept
respectively.

In C2 enter the formula =$C$1*A2 $D$1. Note the use of both absolute and
relative addressing.

In D2 enter =ABS(B2-C2).

Copy C22 as far down as you have data (row 101 in this example).

In E2 enter the formula =SUM(D2101) where 101 is the last row of the data
set.

Now, use Solver (Data | Solver...) to minimize E2 by changing C22.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article gt;,says...
gt; Hi,
gt;
gt; I'm working on a Mechanical Engineering lab with a plot of data in the form
gt; of an absolute value function. Is there any solution to allow Excel to plot
gt; a line of best fit as an absolute value function?
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()