Ask Experts Questions for FREE Help !
Ask
    hoyos's Avatar
    hoyos Posts: 5, Reputation: 1
    New Member
     
    #1

    Jun 28, 2008, 01:36 AM
    Excel line graph
    I have a line graph which that's its data from a separate worksheet. On that sheet I have displayed the days of which ever month I select down column "A". Obviously some month have 30 days and other have 31.
    Column "B" has total hours flown that day (format: 00:00) and column "C" has a running total (same format). See below and example:
    A B C
    01-May-08 02:55 02:55
    02-May-08 01:20 04:15
    03-May-08 02:35 06:50
    04-May-08 03:20 10:10
    05-May-08 03:55 14:05
    06-May-08 01:00 15:05
    07-May-08 00:30 15:35
    08-May-08 01:50 17:25
    09-May-08 01:50 19:15
    10-May-08 02:50 22:05
    11-May-08 03:40 25:45
    12-May-08 02:35 28:20
    13-May-08 00:40 29:00
    14-May-08 02:00 31:00
    15-May-08 01:30 32:30
    16-May-08 01:35 34:05
    17-May-08 02:30 36:35
    18-May-08 02:40 39:15
    19-May-08 01:45 41:00
    20-May-08 02:00 43:00
    21-May-08 01:10 44:10
    22-May-08 01:15 45:25
    23-May-08 01:20 46:45
    24-May-08 02:40 49:25
    25-May-08 00:50 50:15
    26-May-08 00:35 50:50
    27-May-08 00:00 50:50
    28-May-08 00:00 50:50
    29-May-08 00:00 50:50
    30-May-08 00:00 50:50
    31-May-08 00:00 50:50

    Column "A29:A31" formula is: =IF(A28+1>DATE(YEAR($A1),MONTH($A1)+1,0),"",A28+1)

    Column "B1:B31" formula is taken from a sheet named MAIN: =SUMPRODUCT(--(MONTH(MAIN!$A$10:$A$4999)=MONTH($G$1)),--(DAY(MAIN!$A$10:$A$4999)=DAY($A2)),MAIN!$D$10:$D$4 999)

    Column "C2:C31" formula is: =IF(A2="",NA(),IF(B2=0,C1+B2,C1+B2))

    The problem I am having, in this example, is the days totals from the 27th onwards have not been entered therefore it shows "00:00". That carries the running totals down to the end of the month, producing a flat line on the graph.
    The question is:
    How do I stop it from producing that flat line on the graph?
    ISneezeFunny's Avatar
    ISneezeFunny Posts: 4,175, Reputation: 821
    Ultra Member
     
    #2

    Jun 28, 2008, 01:48 AM
    Easiest way to do this is if you click on the actual line in the graph and then reference back to the excel data sheet, the area the line is referenced to should be highlighted with a blue outline. Now take the lower right corner of this blue outline and drag it up to only highlight the portions of the data that is entered. Of course, now the line graph will be shorter.
    hoyos's Avatar
    hoyos Posts: 5, Reputation: 1
    New Member
     
    #3

    Jun 28, 2008, 02:24 AM
    Sorry Funny,
    I don't get any highlighted areas, but I did notice when I clicked on the graph line, on the formula bar I have the following:
    =SERIES(,Sheet5!$A$1:$A$31,Sheet5!$C$1:$C$31,1)
    Maybe using OFFSET in it may work!!
    ISneezeFunny's Avatar
    ISneezeFunny Posts: 4,175, Reputation: 821
    Ultra Member
     
    #4

    Jun 28, 2008, 02:28 AM
    well technically you just don't want that part of the graph to be there (to just cut it off)

    so you can change the formula bar to:

    =SERIES(,Sheet5!$A$1:$A$28,Sheet5!$C$1:$C$28,1)

    see if that helps.
    hoyos's Avatar
    hoyos Posts: 5, Reputation: 1
    New Member
     
    #5

    Jun 28, 2008, 03:18 AM
    Sorry to be such a pain!
    Yes that cuts the line off, but I need to be able to add new data and the line to continue.
    So that formula needs to go allthe way to 31.
    ISneezeFunny's Avatar
    ISneezeFunny Posts: 4,175, Reputation: 821
    Ultra Member
     
    #6

    Jun 28, 2008, 07:19 AM
    I see. In that case, I suggest you add data later and then change formula back later on.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Excel line chart - no lines [ 9 Answers ]

I made an excel line chart for church attendance on Sunday morning, Sunday night, and Thursday night. The markers are there to show the attendance, but there are no connecting lines even though I chose line chart. I have made a line chart before and it did have the lines. Does anyone know why...

What does a CBR graph? [ 3 Answers ]

What does a CBR graph? How does it workk? :)

For a graph [ 1 Answers ]

I have to find the slope-intercept of an equation... 1. slope=2 passes through (1,5)... 2. passes through (-1,-5) and (3,2) 3. passes through (0,3) and is perpendicular to a line whose equation is y-7x=4?

Multi line cells in excel [ 4 Answers ]

Hey guys, any idea how to have multiple lines in a single cell in excel? I'm trying to make my table look a little neater, but it makes some of my comments overlap into following cells - is there any way to make the rows higher and to have 2 lines of text in a cell? Thanks in advance - Cap

Excel line chart with "confidence band" [ 0 Answers ]

Hello, I am new to this forum and need help with a line chart in Excel. I have 40 years of annual data, each expressed as a mean with a confidence interval (CI) having an upper limit (UL) and a lower limit (LL). Instead of plotting the data using error bars to show the CI, I wanted to plot 3...


View more questions Search