#1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 24
Default Intersect Line

Hello all,

I have been banging my head against the wall forever on this one...

I have a scatter plot X,Y graph in my spreadsheet. The X axis is dates, and
the Y, dollar figures (Value over time). The plotting is fine, however I have
a constant line (cost) which at some point the values will cross. I need to
get Excel to draw a vertical line, or at the very least tell me the figure at
which this happens.

I know of the "INTERSECT" and "LINEST" functions, however they are just
returning unusable decimals, I'm guessing due to having dates on one axis.

I am using Excel 2007 Please Help!
Thank You!
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Intersect Line

You're probably thinking of INTERCEPT and its sister function SLOPE. You're
also probably thinking that the chart will do these calculations for you,
but you're going to have to get your worksheet dirty.

In two cells, enter these formulas:

=SLOPE(Yrange,Xrange)
=INTERCEPT(Yrange,Xrange)

where Yrange and Xrange are the cell ranges containing your data. These can
be used in the well-known formula for a straight line, Y = mX + b, where m =
SLOPE and b = INTERCEPT. To find the X value at which your line crosses the
constant, invert the formula to X = (Y - b)/m, plug in the constant for Y
and the calculated linear parameters for m and b.

To convert a number to a date, simply apply a date format to the cell. The
whole number is how many days have elapsed since 1-Jan-1900, and the
fraction is how much of the day has elapsed since midnight.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"GoodTrouble" wrote in message
...
Hello all,

I have been banging my head against the wall forever on this one...

I have a scatter plot X,Y graph in my spreadsheet. The X axis is dates,
and
the Y, dollar figures (Value over time). The plotting is fine, however I
have
a constant line (cost) which at some point the values will cross. I need
to
get Excel to draw a vertical line, or at the very least tell me the figure
at
which this happens.

I know of the "INTERSECT" and "LINEST" functions, however they are just
returning unusable decimals, I'm guessing due to having dates on one axis.

I am using Excel 2007 Please Help!
Thank You!



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 24
Default Intersect Line

Thanks again Jon!!! This will work, I just have to decide what to do with
that information now, I'm not sure if it can plot that point on the graph or
what...

None the less, thank you again for your help!

"Jon Peltier" wrote:

You're probably thinking of INTERCEPT and its sister function SLOPE. You're
also probably thinking that the chart will do these calculations for you,
but you're going to have to get your worksheet dirty.

In two cells, enter these formulas:

=SLOPE(Yrange,Xrange)
=INTERCEPT(Yrange,Xrange)

where Yrange and Xrange are the cell ranges containing your data. These can
be used in the well-known formula for a straight line, Y = mX + b, where m =
SLOPE and b = INTERCEPT. To find the X value at which your line crosses the
constant, invert the formula to X = (Y - b)/m, plug in the constant for Y
and the calculated linear parameters for m and b.

To convert a number to a date, simply apply a date format to the cell. The
whole number is how many days have elapsed since 1-Jan-1900, and the
fraction is how much of the day has elapsed since midnight.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"GoodTrouble" wrote in message
...
Hello all,

I have been banging my head against the wall forever on this one...

I have a scatter plot X,Y graph in my spreadsheet. The X axis is dates,
and
the Y, dollar figures (Value over time). The plotting is fine, however I
have
a constant line (cost) which at some point the values will cross. I need
to
get Excel to draw a vertical line, or at the very least tell me the figure
at
which this happens.

I know of the "INTERSECT" and "LINEST" functions, however they are just
returning unusable decimals, I'm guessing due to having dates on one axis.

I am using Excel 2007 Please Help!
Thank You!




  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Intersect Line

Plot a point using the calculated X and the target Y as a new series. It
will cover the point of intersection. You could format it as a large circle
with no background color, then add a negative error bar using 100% of the Y
value to draw a line down to the X axis.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"GoodTrouble" wrote in message
...
Thanks again Jon!!! This will work, I just have to decide what to do with
that information now, I'm not sure if it can plot that point on the graph
or
what...

None the less, thank you again for your help!

"Jon Peltier" wrote:

You're probably thinking of INTERCEPT and its sister function SLOPE.
You're
also probably thinking that the chart will do these calculations for you,
but you're going to have to get your worksheet dirty.

In two cells, enter these formulas:

=SLOPE(Yrange,Xrange)
=INTERCEPT(Yrange,Xrange)

where Yrange and Xrange are the cell ranges containing your data. These
can
be used in the well-known formula for a straight line, Y = mX + b, where
m =
SLOPE and b = INTERCEPT. To find the X value at which your line crosses
the
constant, invert the formula to X = (Y - b)/m, plug in the constant for Y
and the calculated linear parameters for m and b.

To convert a number to a date, simply apply a date format to the cell.
The
whole number is how many days have elapsed since 1-Jan-1900, and the
fraction is how much of the day has elapsed since midnight.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"GoodTrouble" wrote in message
...
Hello all,

I have been banging my head against the wall forever on this one...

I have a scatter plot X,Y graph in my spreadsheet. The X axis is dates,
and
the Y, dollar figures (Value over time). The plotting is fine, however
I
have
a constant line (cost) which at some point the values will cross. I
need
to
get Excel to draw a vertical line, or at the very least tell me the
figure
at
which this happens.

I know of the "INTERSECT" and "LINEST" functions, however they are just
returning unusable decimals, I'm guessing due to having dates on one
axis.

I am using Excel 2007 Please Help!
Thank You!






  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 24
Default Intersect Line

Perfect! Thanks again!

"Jon Peltier" wrote:

Plot a point using the calculated X and the target Y as a new series. It
will cover the point of intersection. You could format it as a large circle
with no background color, then add a negative error bar using 100% of the Y
value to draw a line down to the X axis.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"GoodTrouble" wrote in message
...
Thanks again Jon!!! This will work, I just have to decide what to do with
that information now, I'm not sure if it can plot that point on the graph
or
what...

None the less, thank you again for your help!

"Jon Peltier" wrote:

You're probably thinking of INTERCEPT and its sister function SLOPE.
You're
also probably thinking that the chart will do these calculations for you,
but you're going to have to get your worksheet dirty.

In two cells, enter these formulas:

=SLOPE(Yrange,Xrange)
=INTERCEPT(Yrange,Xrange)

where Yrange and Xrange are the cell ranges containing your data. These
can
be used in the well-known formula for a straight line, Y = mX + b, where
m =
SLOPE and b = INTERCEPT. To find the X value at which your line crosses
the
constant, invert the formula to X = (Y - b)/m, plug in the constant for Y
and the calculated linear parameters for m and b.

To convert a number to a date, simply apply a date format to the cell.
The
whole number is how many days have elapsed since 1-Jan-1900, and the
fraction is how much of the day has elapsed since midnight.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"GoodTrouble" wrote in message
...
Hello all,

I have been banging my head against the wall forever on this one...

I have a scatter plot X,Y graph in my spreadsheet. The X axis is dates,
and
the Y, dollar figures (Value over time). The plotting is fine, however
I
have
a constant line (cost) which at some point the values will cross. I
need
to
get Excel to draw a vertical line, or at the very least tell me the
figure
at
which this happens.

I know of the "INTERSECT" and "LINEST" functions, however they are just
returning unusable decimals, I'm guessing due to having dates on one
axis.

I am using Excel 2007 Please Help!
Thank You!






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
Complex Union Intersect [email protected] Excel Worksheet Functions 3 May 23rd 07 12:23 PM
How can I intersect 2 trendlines on the same spreadsheet? harbal2007 Excel Discussion (Misc queries) 1 February 8th 07 08:29 PM
how to find an intersect of two columns sarora New Users to Excel 3 May 31st 06 03:32 AM
Intersect operations heyes Excel Worksheet Functions 4 February 14th 06 05:13 PM
How do I find where a column value and row value intersect? Amy Excel Worksheet Functions 2 January 12th 05 11:19 PM


All times are GMT +1. The time now is 05:18 PM.

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

About Us

"It's about Microsoft Excel"