ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Usenet Groups > Excel Charting

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-19-2008, 07:56 AM
szk szk is offline
Registered User
 
Join Date: 19 Aug 2008
Location: sadasd
Posts: 6
szk is on a distinguished road
making y(x) dependence

I have two series of numbers & I want to make a graph, illustrating the dependence of the 2nd serie on the 1st one. But Diagram Master always makes the 2 independent graphs on a diagram instead of the combined one. I can put the 1st serie as signature, but that is not the thing i want. Changing signature doesn't change dependence.
Exel, which I have is a part of the licence 2007 MsOffice pack.

If anyone help, I'll be very greatful.

Last edited by szk; 08-19-2008 at 08:11 AM.
Reply With Quote
  #2  
Old 08-19-2008, 08:06 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Moderator
 
Join Date: 10 May 2004
Location: Essex, UK
Posts: 2,297
Andy Pope will become famous soon enough Andy Pope will become famous soon enough
Are you trying to create a xy-scatter chart?

Can you post example workbook and let us know which version of excel you are using.
__________________
Cheers
Andy
Reply With Quote
  #3  
Old 08-19-2008, 08:17 AM
szk szk is offline
Registered User
 
Join Date: 19 Aug 2008
Location: sadasd
Posts: 6
szk is on a distinguished road
Yes, need y(x).

y --------- x
16 285--- 35 574
8 278---- 19 289
3 124---- 11 011
981------ 7 887
696------ 6 906
611------ 6 210
527------ 5 498
452------ 4 971

Exel version 2007, Microsoft Office Exel. Files format xlsx.

& dont you know, is it possible here to set the dependence directly by a formula? like y=(sin(x))^2?
Reply With Quote
  #4  
Old 08-19-2008, 08:25 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Moderator
 
Join Date: 10 May 2004
Location: Essex, UK
Posts: 2,297
Andy Pope will become famous soon enough Andy Pope will become famous soon enough
Excel expects the columns to be X and then Y values.

See attached.

The simplest way to create the required Y values is with a formula.
Attached Files
File Type: xlsx 653210.xlsx (11.0 KB, 3 views)
__________________
Cheers
Andy
Reply With Quote
  #5  
Old 08-19-2008, 08:32 AM
szk szk is offline
Registered User
 
Join Date: 19 Aug 2008
Location: sadasd
Posts: 6
szk is on a distinguished road
big thanks, i see.

but what is with the 1st question?
i have 8 (x;y) dots:
(35 574;16 285)
(19 289;8 278)
(11 011;3 124)
(7 887;981)
.....

how to illustrate them & to make a diagram?
is it possible to calculate(approximate) this data to a formula in excel?

Last edited by szk; 08-19-2008 at 08:35 AM.
Reply With Quote
  #6  
Old 08-19-2008, 08:39 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Moderator
 
Join Date: 10 May 2004
Location: Essex, UK
Posts: 2,297
Andy Pope will become famous soon enough Andy Pope will become famous soon enough
Ah, those spaces where gaps between values rather than missing decimal places.

You would need to create the chart based on 1 set of data and then use
Chart Tools > Design > Data > Select Data
to add another series.

The attached contained formula in column D to calculate Y values.
__________________
Cheers
Andy
Reply With Quote
  #7  
Old 08-19-2008, 08:59 AM
szk szk is offline
Registered User
 
Join Date: 19 Aug 2008
Location: sadasd
Posts: 6
szk is on a distinguished road
Smile

if i will do like you are saying, i will get <attached>
i dont need this. i need an y(x) dependence. i need a line through 8 dots which i have.

and about formula, i need not sinx^2. i need excel to calculate the approximate formula y(x), using the data which i have (8 dots). the formula, which i dont even know yet. as i know, earlier versions of excel were able to solve it. hope the newest one is not the worst one
Attached Files
File Type: xlsx ~653210.xlsx (10.7 KB, 1 views)

Last edited by szk; 08-19-2008 at 09:02 AM.
Reply With Quote
  #8  
Old 08-19-2008, 09:32 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Moderator
 
Join Date: 10 May 2004
Location: Essex, UK
Posts: 2,297
Andy Pope will become famous soon enough Andy Pope will become famous soon enough
Sorry, I'm confused now.

Your example has Y values in first column and X values in second.

But the chart has 2 series where the X values are not related to any cells. Instead a simply sequential value of 1 to 8 is applied.
The Y values for the first line come from column 1
The Y values for the second line come from column 2

See Stephen Bullen's ChtFrmla.zip example, for a way of plotting a formula.
http://www.oaltd.co.uk/Excel/Default.htm
__________________
Cheers
Andy
Reply With Quote
  #9  
Old 08-19-2008, 10:28 AM
szk szk is offline
Registered User
 
Join Date: 19 Aug 2008
Location: sadasd
Posts: 6
szk is on a distinguished road
the problem is that i dont know how to relate the data in exel

thx for ChtFrmla, but that all coud be done with hands. i hoped to find a fitted in excel approximation
Reply With Quote
  #10  
Old 08-19-2008, 10:57 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Moderator
 
Join Date: 10 May 2004
Location: Essex, UK
Posts: 2,297
Andy Pope will become famous soon enough Andy Pope will become famous soon enough
do you want excel to determine a formula for those x and y value? If so see LINEST formula

If not then sorry but I don't understand what you want
__________________
Cheers
Andy
Reply With Quote
  #11  
Old 08-19-2008, 02:10 PM
shg's Avatar
shg shg is offline
Forum Moderator
 
Join Date: 21 Jun 2007
Location: Dallas, Texas
Posts: 6,160
shg will become famous soon enough shg will become famous soon enough
Are you thinking of a Trendline? Right-click the plotted series and select Trendline.
Reply With Quote
  #12  
Old 09-30-2008, 03:43 AM
szk szk is offline
Registered User
 
Join Date: 19 Aug 2008
Location: sadasd
Posts: 6
szk is on a distinguished road
Thanks, but not exactly ) I need a straight formula, calculated by Excel.

For example:

1.
I have 4 (x;y) dots.
(1;1,12) (2;1,90) (3;2,72) (4;4,42)
If you drow these dots, you will get a liner relation.
I want Excel to calculate this formula(probably will be like y=2*x) plus calculation error. Smth like a mean-square deflection/dispersion.

2.
or you have 5 (x;y) dots
(0,5;0,22) (1;1,09) (2;3,7) (3;10) (4;15,2)
If you will drow these dots, you will see that the relation(x;y) is a polynomial, with the 2nd power. You set these settings, Excel again gives you a formula. Now it will be like y=x^2. Ofcourse with all errors.

Is it possible in Excel now?

Hope now the subject is clear. )

Last edited by szk; 09-30-2008 at 03:45 AM.
Reply With Quote
  #13  
Old 09-30-2008, 04:34 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Moderator
 
Join Date: 10 May 2004
Location: Essex, UK
Posts: 2,297
Andy Pope will become famous soon enough Andy Pope will become famous soon enough
You need to look at the LINEST formula.

You should be able to find previous threads on the subject
__________________
Cheers
Andy
Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Tab Sizes smaller or creating multiple rows of tabs. kingbiscuit Excel General 4 03-05-2008 04:44 PM
Making a cell reference itself dsykes Excel Miscellaneous 1 12-21-2007 03:00 PM
Requiring Save As without making file read only redstang423 Excel Miscellaneous 5 04-07-2007 12:02 PM


All times are GMT -4. The time now is 03:12 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0