PC Review


Reply
Thread Tools Rate Thread

Absolute Value Trendline

 
 
=?Utf-8?B?TGVl?=
Guest
Posts: n/a
 
      26th Mar 2006
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?
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      27th Mar 2006
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 -
http://PeltierTech.com/
2006 Excel User Conference, 19-21 April, Atlantic City, NJ
http://peltiertech.com/Excel/ExcelUserConf06.html
_______

"Lee" <(E-Mail Removed)> wrote in message
news:4E61A885-7B12-4C0D-A58F-(E-Mail Removed)...
> 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?



 
Reply With Quote
 
Tushar Mehta
Guest
Posts: n/a
 
      27th Mar 2006
I interpreted the question very differently than Jon.

You can "roll your own" 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 <4E61A885-7B12-4C0D-A58F-(E-Mail Removed)>,
(E-Mail Removed) says...
> 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?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Absolute cell reference will not remain absolute. Mike K Microsoft Excel Worksheet Functions 1 8th Oct 2008 07:12 PM
How can I do an Absolute Cell Reference but non Absolute Cell Pais =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 1 22nd Jul 2005 07:28 PM
Absolute references in Conditional Formating not absolute (2003) =?Utf-8?B?QS1KQQ==?= Microsoft Excel Crashes 0 26th May 2005 12:06 AM
Absolute reference within a formula not really absolute Fred Microsoft Excel Worksheet Functions 3 1st Jul 2004 06:08 PM
Absolute absolute cell reference jon west Microsoft Excel Misc 2 9th Oct 2003 02:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:25 PM.