+ Reply to Thread
Results 1 to 8 of 8

Thread: Tails of line charts

  1. #1
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2010
    Posts
    145

    Tails of line charts

    Hi All,

    I have a series of charts that have some formating that I would like cleaner. I have been looking and looking for this solution, so far no luck.

    Basically, my "big" spreadsheet has lots of data points which all stretch across the same x axis (which is several years long). All data for the chart is gathered from a master table that uses lookup's to find its specific data, so there is always some data point either "0" or "-" generated from the formula. The line chart creats a tale from the last "real" data point to the "0" or "-". I have lots of data points and lots of charts.....how do I get ride of this tail without having to manually adjust each data point or compromise the data??

    Attached is a example file. The RED tails I would like to have automatically gone.

    Please let me know your thoughts.

    Cheers,
    Matt
    Attached Files Attached Files
    Last edited by matt4003; 07-23-2010 at 05:10 PM.

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Tails of line charts

    Replace the zeroes with =NA()
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2010
    Posts
    145

    Re: Tails of line charts

    Hello shg,

    Great to hear from you again. I hope all is well!!

    Thanks for the hint. But I can't get that to work in the test file.

    Is the formula suppose to look like: =IF(ISNUMBER(Sheet2!G2*1.1),(Sheet2!G2*1.1),NA())

    Cheers,
    Matt

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Tails of line charts

    Close:

    =IF(ISNUMBER(Sheet2!B2), 1.1 * Sheet2!B2, NA())
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2010
    Posts
    145

    Re: Tails of line charts

    Thanks shg,

    That works in my test file! Thanks.

    I tried the approach in my actual file, where the formula is a little more complicated and it didn't work:
    =IF(ISNUMBER(MATCH(AG$1,FCSTMonth,0)),SUMIF(FCSTCust,$A4,INDEX(FCSTData,0,MATCH(AG$1,FCSTMonth,0))), NA())

    These are named ranges:
    FCSTMonth
    FCSTCust
    FCSTData

    Am I just placing the NA() wrong again?

    Cheers,
    Matt

  6. #6
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770

    Re: Tails of line charts

    Use the Evaluate Formula button to step through your formula and see what it's doing.
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2010
    Posts
    145

    Re: Tails of line charts

    shg,

    I am not entirely sure why the ISNUMBER logic. When I take out that whole first part, IF(ISNUMBER(MATCH(AH$1,FCSTMonth,0)) I seem to get the same results.

    So if the formula was a little more straight forward like: =SUMIF(FCSTCust,$A4,INDEX(FCSTData,0,MATCH(AG$1,FCSTMonth,0)))

    Where would the NA() go? I keep getting "too many arguements.

    Cheers,
    Matt

  8. #8
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2010
    Posts
    145

    Re: Tails of line charts

    Hello shg,

    Well I figured out, with your NA(), how to augment the statement so I can include the original ISNUMBER and the SUMIF.

    =IF(SUMIF(FCSTCust,$A4,INDEX(FCSTData,0,MATCH(C$1,FCSTMonth,0)))=0,NA(),IF(ISNUMBER(MATCH(C$1,FCSTMo nth,0)),SUMIF(FCSTCust,$A4,INDEX(FCSTData,0,MATCH(C$1,FCSTMonth,0))),0))

    Basically, adding an additional IF statement to include the look for "0" and returing NA() if true, if not, then evaluate the original statement.

    Seems to work.

    If you have a more elegant or less expensive formula, let me know.

    Many thanks!!

    Cheers,
    Matt

+ 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.2.0