Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phil Hageman
 
Posts: n/a
Default Rounding in Trendline Equation

An Excel logarithmic trendline attached to a data series has the following:
Equation Y=533371Ln(x)-3E+06.
R2 = 0.9533 (a good fit for the data)
Final value (where the trendline crosses the right-hand (secondary)
axis) =
~420,000 (the value Im ultimately seeking)

I have created a new series with this equation to create the same curve with
the following:
Formula: =533371LN(1)-3000000
Final value produced with this formula: 195,673 (obviously not close
to the
Excel value ~420,000)

Changing the €œ-3E+06€ value to 2,600,000 produces 414,873 €“ which very
closely approximates the value of the Excel trendline where it crosses the
right-hand axis.

Conclusion: Excel is rounding the 2,600,000 number up to 3 in the €œ-3E+06€
factor of the equation.

Questions:
Is there a way to tell Excel not to round up to 3, but rather
use/display the exact number, something around 2,600,000, in place of
€œ-3E+06€?
Or, is there another way to find the exact €œ-3E+06€ number Excel uses
when it creates the equation?

  #2   Report Post  
Martin Brown
 
Posts: n/a
Default

Phil Hageman wrote:

An Excel logarithmic trendline attached to a data series has the following:
Equation Y=533371Ln(x)-3E+06.
R2 = 0.9533 (a good fit for the data)
Final value (where the trendline crosses the right-hand (secondary)
axis) =
~420,000 (the value Im ultimately seeking)

I have created a new series with this equation to create the same curve with
the following:
Formula: =533371LN(1)-3000000
Final value produced with this formula: 195,673 (obviously not close
to the
Excel value ~420,000)

Changing the €œ-3E+06€ value to 2,600,000 produces 414,873 €“ which very
closely approximates the value of the Excel trendline where it crosses the
right-hand axis.

Conclusion: Excel is rounding the 2,600,000 number up to 3 in the €œ-3E+06€
factor of the equation.

Questions:
Is there a way to tell Excel not to round up to 3, but rather
use/display the exact number, something around 2,600,000, in place of
€œ-3E+06€?
Or, is there another way to find the exact €œ-3E+06€ number Excel uses
when it creates the equation?


Set the numeric display format for the equation to have 16 decimal
digits and you will get the exact fitted parameters.

Regards,
Martin Brown
  #3   Report Post  
Phil Hageman
 
Posts: n/a
Default

Martin,

Thanks for your reply. I've looked at ToolOptions, and Format Trendline
and can't find where to make the change your recomment. How do I make this
change?

Thanks,
Phil

"Martin Brown" wrote:

Phil Hageman wrote:

An Excel logarithmic trendline attached to a data series has the following:
Equation Y=533371Ln(x)-3E+06.
R2 = 0.9533 (a good fit for the data)
Final value (where the trendline crosses the right-hand (secondary)
axis) =
~420,000 (the value Im ultimately seeking)

I have created a new series with this equation to create the same curve with
the following:
Formula: =533371LN(1)-3000000
Final value produced with this formula: 195,673 (obviously not close
to the
Excel value ~420,000)

Changing the €œ-3E+06€ value to 2,600,000 produces 414,873 €“ which very
closely approximates the value of the Excel trendline where it crosses the
right-hand axis.

Conclusion: Excel is rounding the 2,600,000 number up to 3 in the €œ-3E+06€
factor of the equation.

Questions:
Is there a way to tell Excel not to round up to 3, but rather
use/display the exact number, something around 2,600,000, in place of
€œ-3E+06€?
Or, is there another way to find the exact €œ-3E+06€ number Excel uses
when it creates the equation?


Set the numeric display format for the equation to have 16 decimal
digits and you will get the exact fitted parameters.

Regards,
Martin Brown

  #4   Report Post  
Michael R Middleton
 
Posts: n/a
Default

Phil -

The trendline equation is displayed in a text box on the chart. Select the
text box, and on the Formatting toolbar repeatedly click the Increase
Decimal button.

- Mike

www.mikemiddleton.com

++++++++++++++++++++++++++++++

"Phil Hageman" wrote in message
...
Martin,

Thanks for your reply. I've looked at ToolOptions, and Format Trendline
and can't find where to make the change your recomment. How do I make
this
change?

Thanks,
Phil

"Martin Brown" wrote:

Phil Hageman wrote:

An Excel logarithmic trendline attached to a data series has the
following:
Equation Y=533371Ln(x)-3E+06.
R2 = 0.9533 (a good fit for the data)
Final value (where the trendline crosses the right-hand
(secondary)
axis) =
~420,000 (the value I'm ultimately seeking)

I have created a new series with this equation to create the same curve
with
the following:
Formula: =533371LN(1)-3000000
Final value produced with this formula: 195,673 (obviously not
close
to the
Excel value ~420,000)

Changing the "-3E+06" value to 2,600,000 produces 414,873 - which very
closely approximates the value of the Excel trendline where it crosses
the
right-hand axis.

Conclusion: Excel is rounding the 2,600,000 number up to 3 in the
"-3E+06"
factor of the equation.

Questions:
Is there a way to tell Excel not to round up to 3, but rather
use/display the exact number, something around 2,600,000, in place of
"-3E+06"?
Or, is there another way to find the exact "-3E+06" number Excel
uses
when it creates the equation?


Set the numeric display format for the equation to have 16 decimal
digits and you will get the exact fitted parameters.

Regards,
Martin Brown



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
Logarithmic Trendline Equation Phil Hageman Charts and Charting in Excel 2 January 13th 05 11:55 AM
How do I write a trendline constant into a cell? Hanbotkot Charts and Charting in Excel 2 December 31st 04 05:27 PM
R² expression for trendline in chart jean Charts and Charting in Excel 1 December 23rd 04 07:51 AM
How do I get the trendline equation from Excel to script? Mattias Charts and Charting in Excel 1 December 7th 04 12:21 PM
Trendline error??? Eugepticus Charts and Charting in Excel 3 November 30th 04 04:40 AM


All times are GMT +1. The time now is 09:01 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"