+ Reply to Thread
Results 1 to 4 of 4

Line chart with markers question

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    8

    Line chart with markers question

    Hi all, I'm using a formula to auto fill the x axis of a "line chart w/ markers" given a start date and end date, =IF('Formula Sheet'!$A$1+7*(COLUMNS($A:A)-1)<='Formula Sheet'!$D$1,'Formula Sheet'!$A$1+7*(COLUMNS($A:A)-1),"")

    My question is, in the chart input sheet where these dates go, I have to manually "hide" the columns that have no values (dates) so my line chart x axis only shows the dates and not empty markers for the empty cells. My dates change, and are in increments of 7 days, so if my start date for one project is 5/25/13, and end date is 6/25/13, the formula would create 5 weeks/columns of data, but my chart input sheet has room for up to a year of possible weekly dates in case a different project is a longer, or shorter length.

    I attached some pictures to help explain. Is there a function I can utilize so excel does this automatically?

    Thanks for the help!
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Line chart with markers question

    Hard to tell from pictures. (to upload a workbook, Go Advanced>Manage Attachments) but mayb modify your formula to

    =IF('Formula Sheet'!$A$1+7*(COLUMNS($A:A)-1)<='Formula Sheet'!$D$1,'Formula Sheet'!$A$1+7*(COLUMNS($A:A)-1),ISNA())
    Does that help? You can use conditional formatting to make the error messages white text if necessary
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Line chart with markers question

    Sorry ChemistB, that formula didnt help. Basically, my formula references a start date from a cell in another sheet, which I enter a start date into, and another cell from that same sheet where I enter the end date. The formula then populates the columns in my chart data input sheet to create my chart x axis. My problem is I dont want to manually "hide" the remainder of the columns in the chart input sheet, which is what I need to do so the line chart x axis only shows the range of dates I have, and not the entire row of cells.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,578

    Re: Line chart with markers question

    You could use helper columns or arrayed formulas to bring to a new location only the data which you want to graph. Can you upload an example of how your data is set up and how you want it to look?

+ 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