Hi
I am using Excel 2003.
I have a graph that has values based on named ranges.
On this workbook there is a named ranged data validation for the user to select a certain date and the graph will show 20 weeks of data with the last data point being the date/week chosen.
I say date/week because the raw data sheet has columns for week number, date, and week ending date. If 7 days are in the period selected then week ending date is used, otherwise the date is used.
On the graph_data worksheet the date to show has the code of (for week ending date or date):
The graph works fine, showing all x axis labels when the date selected is not the last one on the raw data page. But if I choose the last date of raw data then the data for that date is displayed but the x axis label only for that date is blank. However, on the graph_data worksheet there is a date displayed.
I've even selected source data for the graph and selecting each of the axis values including x axis shows that the correct columns/values are what is being defined by the named range so I'm not sure if a value is there why it's not being displayed.
Can anyone please advise what the issue might be? Thanks very much.
I am using Excel 2003.
I have a graph that has values based on named ranges.
Code:
Value = offset(Graph_Data!$X$9,Graph_Data!$X$5,0,Graph_Data!$X$6)
Category X axis labels:=offset(Graph_Data!$B$9,Graph_Data!$B$5,0,Graph_Data!$B$6)
On this workbook there is a named ranged data validation for the user to select a certain date and the graph will show 20 weeks of data with the last data point being the date/week chosen.
I say date/week because the raw data sheet has columns for week number, date, and week ending date. If 7 days are in the period selected then week ending date is used, otherwise the date is used.
On the graph_data worksheet the date to show has the code of (for week ending date or date):
Code:
=IF(C9=7,VLOOKUP(A9,'Raw Data'!$DM$3:$DO$1094,3),IF(C9<7,VLOOKUP(A9,'Raw
Data'!$DM$3:$DO$1094,2),""))
The graph works fine, showing all x axis labels when the date selected is not the last one on the raw data page. But if I choose the last date of raw data then the data for that date is displayed but the x axis label only for that date is blank. However, on the graph_data worksheet there is a date displayed.
I've even selected source data for the graph and selecting each of the axis values including x axis shows that the correct columns/values are what is being defined by the named range so I'm not sure if a value is there why it's not being displayed.
Can anyone please advise what the issue might be? Thanks very much.