Excel 2007: Dynamic Vertical Line in Chart from Y Value

praetorian75

New Member
Joined
Aug 3, 2009
Messages
4
The background:

I've got a line chart in Excel 2007 that tracks a daily sales number. X axis is months, y is the number. Also on the chart is a trendline based on the sales number.

I currently have two manually drawn vertical lines on the chart, representing where the trendline and the two desired sales numbers intersect. These lines are vertical because I want to know at what point in the months that this happens. I manually move these lines as the daily sales number changes.

What I'd like is to automate this "move" process. Is there a way to include these two vertical lines in a dynamic way from data on the spreadsheet?

Any help is greatly appreciated. Thanks!

Jason
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Yes...you'll need to include a column in your data table that will calculate this intersection. You can also include a column that calculates the trend...depending on the kind of trend you'd like. Simply include these two columns in your charting...be sure to chart them as a different "type" of chart (line chart). If you find the values to be outliers (by virtue of the size of the other values)...then use your secondary axis.
 
Upvote 0
Yes...you'll need to include a column in your data table that will calculate this intersection. You can also include a column that calculates the trend...depending on the kind of trend you'd like. Simply include these two columns in your charting...be sure to chart them as a different "type" of chart (line chart). If you find the values to be outliers (by virtue of the size of the other values)...then use your secondary axis.

Thanks for replying!

I'm not sure how to implement your solution.

  • How do I calculate the intersection? Right now, I'm just looking at the y-axis, then moving the vertical line until it intersects the trendline at that point on the y-axis.
  • How do I calculate the trend? I'm just using excel's Trendline feature at the moment.
  • If I use a line chart type, will the data be graphed as a regular line or a vertical one? I need the vertical.
 
Upvote 0

Forum statistics

Threads
1,224,509
Messages
6,179,192
Members
452,893
Latest member
denay

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top