Solved

Horizontal line on Excel chart

Posted on 2012-04-02
9
334 Views
Last Modified: 2012-04-07
I am importing stockmarket data into Excel via the DownloaderXL add-in published by Yaskov Anatoliy.

This application automatically provides historical market pricing and charts for specified funds/indicies. I need to update the charts to include extra horizontal lines -40% and -60% lower than the closing price for the last day. I am refreshing the data on a daily basis so the solution needs to be dynamic.

Any help/advice would be welcome.
0
Comment
Question by:draeside
  • 5
  • 2
  • 2
9 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37799519
Can you provide a sample file?
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 37799556
Hello,

you can add another data series to the chart, and send that data series to the secondary axis. Change the chart type to XY Scatter chart and point it to two data pairs for X and Y respectively:

X = 0, Y=calculated value
X= 1, Y=calculated value

That's your 40% line. The "calculated value" is a single cell in your spreadsheet where you use a formula to figure out the desired number

Add another series to the chart for the 60% line. This one will automatically sit on the secondary axis. Point it to a the cells for X and Y.

Make sure that the two Y axes have the same maximum settings. This can be achieved with another data series on the secondary axis, just one data point with the maximum value of the data on the primary axis.

Set the secondary X axis maximum value to 1 and hide the display of the secondary X axis.

See attached.

cheers, teylyn
Book1.xlsx
0
 

Author Comment

by:draeside
ID: 37799609
Hi Teylyn,

thank you for your response, very useful. The base data series will be expanding everyday as new pricing is fed through. How would I cater for this?

Cheers,
Duncan
0
 

Author Comment

by:draeside
ID: 37799625
Sample file attached
Market-Feed.xlsx
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 37799707
I'm busy for the next three hours, but will look at this thereafter.

For changing data ranges you can employ dynamic range names to feed the chart. It's easy to set up and low maintenance.

I'll be back with a suggestion in a few hours unless someone else chips in first.

Cheers, teylyn
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 37800366
Hi again,

I'm having trouble with my Excel version right now. Here is a verbal run-down to set up the FTSE chart.

Somewhere on the FTSE sheet, enter the formula

=INDEX('FTSE 100'!E:E,MATCH(99^99,'FTSE 100'!E:E,1))

Then use a formula to calculate the 40% and 60% off that value. The rest is like I described in the comment above.

I'll try to get this going in your sample file when I'm back at a working Excel system in the morning

cheers, teylyn
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37802343
Enter your desired value in a blank column say column I all the way down to the end of the data.

Add a new series to the chart from column I.

See attached


*** edit ***

Failed to upload so uploaded at EE-stuff

https://filedb.experts-exchange.com/incoming/ee-stuff/8242-Market-Feed.xlsx

Looks like upload also succeeded so sending both.
Market-Feed.xlsx
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 37803315
No, ssaqibh, no. Don't add another column of data. You only need 2 data points for a straight line, not 6000. That would blow up the already big file even bigger.
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 300 total points
ID: 37803954
Here is the file with the FTSE tab and the chart changes in place.
Market-Feed.xlsx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now