+ Reply to Thread
Results 1 to 2 of 2

Exclude zero data columns on bar cahrt

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    1

    Exclude zero data columns on bar cahrt

    My spreadsheet is for calculating cash-flow during retirement, it asks a number of questions, one being "what year does pension start".
    My spreadsheet works very well mathematically, but I would like to avoid the type of display as shown in the attached example.
    How do I have the chart dynamically start at the correct year? in the case attached exclude everything until year 63.

    I need the explanation in simple terms or an attached solution - PLEASE HELP !!!!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-31-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2016
    Posts
    31

    Re: Exclude zero data columns on bar cahrt

    This is a quick work-around. I wrote a macro that is used with the two buttons on the bottom of the graph. The macro will hide the cells containing a zero or blank value in column B. This is a choppy way of doing so because the macro selects each cell individually so you'll see the program hiding the cells. To make it so the workbook doesn't show the steps, turn screen-updating off in the code.


    EDIT: Ignore Module1 in the code. Code was written for Sheet1

    -J Stawski
    Attached Files Attached Files
    Last edited by jstawski; 06-17-2013 at 04:24 PM.

+ 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