+ Reply to Thread
Results 1 to 9 of 9

Trend lines

  1. #1
    Registered User
    Join Date
    05-14-2008
    Location
    Southern Illinois
    MS-Off Ver
    2007
    Posts
    56

    Trend lines

    I need to be able to take only the two most recent data points(from column A, as shown in column B), draw on a line graph the trend line connecting and extending beyond these two points. Any suggestions would be great.

    Please Login or Register  to view this content.
    Thank You
    Last edited by Andy Pope; 10-28-2008 at 06:03 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430
    What have you tried so far?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-14-2008
    Location
    Southern Illinois
    MS-Off Ver
    2007
    Posts
    56

    Arrow Trend Line Command

    So far I've only tried the trend line command. Where I'm running into trouble is with the NA's. I also need to make sure it's clear that as data points are updated, only the most recent two points are used. THANKS

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430
    are those na true #N/A's or just text?

    How do you know which points are the most recent?

  5. #5
    Registered User
    Join Date
    05-14-2008
    Location
    Southern Illinois
    MS-Off Ver
    2007
    Posts
    56

    Arrow Na

    The #N/A is the result of an if statement in which true = a number value, and false = #N/A. The #N/A could be changed to say "0" if that would make it any easier.

    If a condition is met, then a point (number value) is given, if the condition is not met, it gives the #N/A as a result. Data is added every minute automatically to the top of the list. A time stamp can be added to the corrisponding data entry, if it would help.
    Last edited by 173; 10-25-2008 at 10:23 PM. Reason: Only answered the first question. Accidentily submitted before answering the second.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430
    This plots a trend line on the second data set.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-14-2008
    Location
    Southern Illinois
    MS-Off Ver
    2007
    Posts
    56

    trend line with only two most recent points

    Andy,

    Once I flip the x-axis, the file you you provided shows exectly what I want. However, what is reffered to as column c, in your attatched file, was only an example of what I need. I don't know how to get that column.

    What I need is to make c column from the b column. How do I make it only show the most two recent column entries from column b in column c.

    Keep in mind a new number is being added to column b every minute. Therefore, B3's data moves down and becomes B4 after a minute( when the new data is added to the list in place of B1, B1's old data is moved down to B2). These cell references are from the file attatched. (trend problem)

    Attatched is an example.
    Attached Files Attached Files

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,430
    If you only need the first 2 values then this formula, copied down will populate column C

    =IF(COUNT(B$21:B21)<=2,B21,NA())

    If not the first 2 then we need more information about which 2 points to use.

  9. #9
    Registered User
    Join Date
    05-14-2008
    Location
    Southern Illinois
    MS-Off Ver
    2007
    Posts
    56

    Talking Works

    Andy
    You da #$%#.
    Thanks
    Works exactly how i need it to.
    SOLVED
    SOLVED
    SOLVED
    Last edited by 173; 10-27-2008 at 04:34 PM. Reason: This solved it, but I don't know how to find the solved button.

+ 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