PC Review


Reply
Thread Tools Rate Thread

Adding a certain text label in a excel chart

 
 
=?Utf-8?B?VGlt?=
Guest
Posts: n/a
 
      27th Sep 2005
I am plotting in regularly basis a certain set of data in excel.
Based on some data analysis this set of data has to be fitted to these
equations:
y = 1/x^a (1) and /or
y = b/x^c (2)
from data analysis, constants a, b and c are found and are placed lets say
in cells A1, B1, C1.
On my graph, I am putting then two small text labels where the real equation
is displayed: smth. like: y = 1/ x^3.45 and / or y = 0.256 / x^3.12 The
whole process is similar with excel curve fitting, when the “show equation on
chart” is checked.

Thank you in advance
My question is: Can I somehow “automate” the procedure of creating and
putting these text labels on excel graph.

 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      28th Sep 2005


Tim wrote:

> I am plotting in regularly basis a certain set of data in excel.
> Based on some data analysis this set of data has to be fitted to these
> equations:
> y = 1/x^a (1) and /or
> y = b/x^c (2)
> from data analysis, constants a, b and c are found and are placed lets say
> in cells A1, B1, C1.
> On my graph, I am putting then two small text labels where the real equation
> is displayed: smth. like: y = 1/ x^3.45 and / or y = 0.256 / x^3.12 The
> whole process is similar with excel curve fitting, when the “show equation on
> chart” is checked.
>
> Thank you in advance
> My question is: Can I somehow “automate” the procedure of creating and
> putting these text labels on excel graph.
>


 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      28th Sep 2005
Tim -

Build the label in another cell (for example, D1):

="y = "&B1&" / x^" & C1

Then select the chart, press the equals key, and click on D1. Excel inserts a
textbox into the chart which is linked to this cell.

To get the appropriate code for automating this process, run the macro recorder
while doing the above.

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

Tim wrote:

> I am plotting in regularly basis a certain set of data in excel.
> Based on some data analysis this set of data has to be fitted to these
> equations:
> y = 1/x^a (1) and /or
> y = b/x^c (2)
> from data analysis, constants a, b and c are found and are placed lets say
> in cells A1, B1, C1.
> On my graph, I am putting then two small text labels where the real equation
> is displayed: smth. like: y = 1/ x^3.45 and / or y = 0.256 / x^3.12 The
> whole process is similar with excel curve fitting, when the “show equation on
> chart” is checked.
>
> Thank you in advance
> My question is: Can I somehow “automate” the procedure of creating and
> putting these text labels on excel graph.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a label to an Access Chart cr113 Microsoft Access Forms 3 1st Apr 2010 05:42 PM
adding a single label on excel chart Eric_G Microsoft Excel Charting 2 3rd Oct 2009 09:29 AM
Adding Data Label value with VBA to a chart Les Microsoft Excel Programming 1 21st May 2008 08:26 PM
Adding a label to a data point in a chart?? Fish Microsoft Excel Discussion 1 13th Mar 2006 11:18 PM
Adding field to data label but not to chart mkk Microsoft Excel Charting 3 18th Feb 2004 03:14 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 AM.