+ Reply to Thread
Results 1 to 6 of 6

Deriving continuous Data from Connected XY scatter line

  1. #1
    Registered User
    Join Date
    11-26-2008
    Location
    London
    Posts
    9

    Deriving continuous Data from Connected XY scatter line

    Hi,

    I am trying to find a way to derive/interpolate the continuous line data that excel uses to connect the points on an XY scatter chart.

    Essentially my scatter chart represents a weighted histogram with the X axis representing 0-100%, with each point (and by extension the line connecting them) representing the portion [of 100%] at a particular revenue level, on the Y axis (attached below).

    I need to find a way to obtain this 'connected line' data in continuous format for, say, 1% intervals…this data is then to be further interrogated in excel. Does anyone know a way to obtain/interpolate this data?

    Thanks in advance,

    Blofeld
    Attached Images Attached Images

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    You can calculate the new Y with formula. See attached.

    Although I have a feeling that there is a neater way of calculating this.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-26-2008
    Location
    London
    Posts
    9
    Hi Andy, thanks for your help...

    Someone on another forum suggested using the Trend function to derive the missing data (See the sheet attached).

    This was the suggested function to fill in the blanks:

    =TREND(OFFSET(A$2,MATCH(D2,B$2:B$26,-1)-1,,2),OFFSET(B$2,MATCH(D2,B$2:B$26,-1)-1,,2),D2)


    However, at first glance this seems to work, but when I plot the new line chart, you can see I've somehow managed to arrive at an mirrored version of the original XY plot.

    My gut feeling is that this is a school boy error, Do you think I should be after the X values instead?

    Rgds

    Blofeld
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    If you don't mind using a UDF:
    Please Login or Register  to view this content.
    In E1 and copy down,

    =LInterp($A$2:$B$26, C1)

    Make both charts scatterplots instead of line graphs ...
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    The formula gets a bit crowded when done in a single cell but this appears to work.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-26-2008
    Location
    London
    Posts
    9
    Outstanding!

    Your help is much appreciated....

    Rgds

    Blofeld

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1