+ Reply to Thread
Results 1 to 9 of 9

End of Month Chart Axis Labels

  1. #1
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    End of Month Chart Axis Labels

    I am creating a monthly line graph in Excel 2007 and even though the "Horizontal Axis Labels" points to a column in my data that contains end of month entries for each month, the axis labels are all showing up as beginning of month. It does look like it is adjusting the chart lines accordingly to match the dates, but I can't figure out why it is changing to beginning of month labels when my data says otherwise. Any thoughts?

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: End of Month Chart Axis Labels

    At least for me it would be nice to see the example workbook...
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    Re: End of Month Chart Axis Labels

    Here is an example

    End of Month Chart.xlsx

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: End of Month Chart Axis Labels

    if you have data for every month end you can simply change the axis to a text axis rather than date axis
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    Re: End of Month Chart Axis Labels

    That does work in this case, but is there a way to keep the date axis? There are other charts we will do in the future that don't have entries for each month that we would like the gap to represent missing months.

    Thanks for your help

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: End of Month Chart Axis Labels

    unless you can create entries for the missing months you would have to use a dummy series plotted as xy scatter to plot points (with no marker showing) and use the data labels as axis markers

  7. #7
    Registered User
    Join Date
    11-06-2008
    Location
    Canada
    Posts
    36

    Re: End of Month Chart Axis Labels

    Is there any way to get the data axis option to work? We are dealing with graphs that multiple people will be modifying for various purposes (ie : displaying different date ranges) and as the person fielding questions, it would definitely make my life easier if the date options were functioning as expected.

  8. #8
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: End of Month Chart Axis Labels

    not that I know of-there isn't a simple fix

  9. #9
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: End of Month Chart Axis Labels

    You can use a dynamic named range to plot a xy-scatter on the secondary axis and use the data labels from that to plot end of month labels

    named range
    EOMLabel: =DATE(YEAR(MIN('Chart Data'!$B$2:$B$38))+1,ROW('Chart Data'!$A$1:INDEX('Chart Data'!$A:$A,DATEDIF(MIN('Chart Data'!$B$2:$B$38),MAX('Chart Data'!$B$2:$B$38),"m")+1,1)),0)

    EOMData: =EOMLabel*0

    I've left the data markers and secondary axis un formatted so you can see what's going on.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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