Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
Lee
 
Posts: n/a
Default Absolute Value Trendline

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?
  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier
 
Posts: n/a
Default Absolute Value Trendline

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" wrote in message
...
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?



  #3   Report Post  
Posted to microsoft.public.excel.charting
Tushar Mehta
 
Posts: n/a
Default Absolute Value Trendline

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 C2:D2 as far down as you have data (row 101 in this example).

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

Now, use Solver (Data | Solver...) to minimize E2 by changing C2:D2.

--
Regards,

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

In article ,
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert displayed number to absolute value jmorris305 Excel Discussion (Misc queries) 3 February 28th 06 02:27 AM
Trendline Extract Phil Hageman Charts and Charting in Excel 5 July 6th 05 02:27 AM
replace absolute references bj Excel Worksheet Functions 0 May 20th 05 07:18 PM
Absolute cell references and subsequent problems. Pank Mehta Excel Discussion (Misc queries) 2 April 19th 05 11:38 AM
How do I get the trendline equation from Excel to script? Mattias Charts and Charting in Excel 1 December 7th 04 01:21 PM


All times are GMT +1. The time now is 07:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"