excel graphs and charts

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Excel Graphs and Charts

Excel Graphs and Charts

resolvedResolved · Medium Priority · Version 2016

Jo has attended:
Excel VBA Intermediate course
Excel Advanced course

Excel Graphs and Charts

I often make graphs in Excel, and use values from the gradient and intercept of the regression line in calculations.

1. Is there a way to extract these values from the chart without having to type them into a cell manually so that I can use them in equations? Is it also possible to have these values update automatically so that, if the regression line changes (e.g. if I change the range used to calculate it), the values will change and therefore the results of my formulae will change?


2. When I do the regression lines on my charts, I usually only need to find this for a certain range e.g. between 0 < x < 0.1 as opposed to the full range of 0 < x < 1. In my case, this selection varies for each chart I make - I have to see by eye where the line is linear, rather than curved. Is there a way to make this process easier, as it often requires me to go in and out of the "Select Data" option and tweak the range until I get the right portion of the line?

I hope this makes sense, but please let me know if you need any further info! Thanks!

RE: Excel Graphs and Charts

Hi Jo,

Thank you for the forum question.

I hope that I understand you right.

Please see the attached file.

I am using 3 different ways of calculate the regression/trend line. You can use the Forecast, Trend or do the equation using the Slope function together with the Intercept function.

I am then using an If function to test if the regression is inside a range. If not I use the NA() function. This will only display the true regression in the chart.

Please let me know if it is not what you are looking for.

PS if you cannot see the attachment please wait 10 minutes and refresh your browser. The attachment can be found under my signature.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Attached files...

forumQuest.xlsx

RE: Excel Graphs and Charts

Hi Jens

Thanks for replying to my question so quickly! However, I can't quite see where the attached file is, even though I've waited and tried refreshing a few times... perhaps I'm missing something!?

Thanks again

Jo

RE: Excel Graphs and Charts

Never mind...replying to the message seems to have made the file show! I'll take a look and let you know if I need further help :)

RE: Excel Graphs and Charts

Hi Jo

Good it can take a little time for the attachment to show.

Yes just let me know if it is what you are looking forward to do or if you have more questions.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: Excel Graphs and Charts

Hi Jens

I tried to plot some of my data as an example to show you, but can't see any way that I can attach it to a forum post in the same way you did? Perhaps I don't have that permission?

I think we are on the right track, I just think my data and what I want to do is a little awkward, and maybe I am not describing it in the best way.

I have some raw data, which is a curved line, as well as some processed data which produces a line which is part curved, part linear.

I need to find the linear region of this "processed" data which corresponds to a particular curved region of the original "raw" data. Typically, I have been doing this visually by plotting the two data sets on the same graph, and then finding the correct range of x-values within which to calculate the partial regression line in the processed data set. This bit often requires a lot of manual adjustments to the line.


So the first part is - is there a way for me to get excel to identify the range of interest of x-values from the "raw" data, and use this range on the "processed" data and add the regression line to this part only.

Ideally, I'd like to do this from Excel plotting a chart so that I can visually see that everything is as it should be and the values are being extracted from the right part of the graph.


The second part is that I want to be able to extract the Gradient and Intercept values of that partial regression line so that they can be used in equations, and will recalculate automatically if I change the x-range, for example. At the moment I am having to type them in manually by copying them from the Equation, which I have displayed on the chart, and if I change the regression line slightly, I have to type the values in again so that the equations give the right results.



I hope this is clear, and please let me know if there is a way that I can send a file for you to see if that would help make it easier to understand? Equally, I'm not sure if Excel can necessarily do all of what I am asking it to in this case, but even if I can just extract the gradient and intercept values from the chart equation, that would be very helpful!

Thanks again!


RE: Excel Graphs and Charts

Hi Jo,

If you send the file to jens.bonde@stl-training.co.uk

then I will have a look at it.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: Excel Graphs and Charts

Hi Jo,

I can partly help you.

"How to identify the range of interest"

I am afraid, that I cannot help you with this part. I was thinking; "How can I identify where two columns RSquared (or correlation) value is satisfying high."

I have tried VBA, the Solver, and Excel Function, but unfortunately without success.

The second part, If I understand you right, you can find on sheet 2 in attached workbook.



Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Attached files...

Copy of 38682_forumQuest.xlsx

RE: Excel Graphs and Charts

Thanks Jens!

Not to worry - I think that's what I expected re the first part of my query, but the answer to the second part is also very helpful so thank you for taking the time to show me how to do this (as well as attempting to solve the first part!)

Best wishes

Jo

RE: Excel Graphs and Charts

Hi Jo,

I am happy to help.

If I should find a way to handle the first part I will let you know.


Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Tue 24 Jul 2018: Automatically marked as resolved.


 

Excel tip:

Convert a column into row quickly in Excel 2010

Occasionally you might enter data into Excel vertically and then when you finish realize that actually it would look more clearer if it was represented in a horizontal format. If you follow these simple steps below, you can quickly change the data from going vertically to horizontally and vice versa.

First, select the column you want to convert into a row or a row into a column. Then right click and select Copy. Go to the sheet where you want to past this row as a column and select “Paste Special”. Remember to check the check-box “Transpose” and select “OK”.

View all Excel hints and tips


Server loaded in 0.09 secs.