Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-20-2009, 04:52 AM
latha2002 latha2002 is offline
Registered User
 
Join Date: 15 Jul 2009
Location: bristol
MS Office Version:Excel 2003
Posts: 6
latha2002 is becoming part of the community
How to stop plotting empty cells in a dynamic area chart

Please Register to Remove these Ads

Hi,
I have to update an area chart on a monthly basis(starting from say Apr-05 to Feb-06) . The X axis range along row is (B1:L1). The y axis values (y1,y2,y3) are linked to another workbook from which the y values are pulled out.the range being (B2:L2),(B3:L3)and (B4:L4) along row respectively. When i update the chart automatically, it dips at Mar-06 as there are no y values entered. Since this excel is an analysis of monthly forecast, there is no data for mar-06. How do I prevent the chart from dipping? I want it to stop there and not dip down to zero as there is no value available for mar-06.

P.S. I have taken a sample chart for explanation and entered y values manually as I am not authorized to share complany data. Kindly provide solution for this sample sheet data.

Last edited by latha2002; 07-20-2009 at 05:05 AM.
Reply With Quote
  #2  
Old 07-20-2009, 06:42 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,223
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: How to stop plotting empty cells in a dynamic area chart

No attachment. Check file size when posting.

The only way to get a sheer drop on an area chart is to use Time series x axis and double up on the drop point.

Alternatively use dynamic ranges so only months with data are plotted.
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #3  
Old 07-21-2009, 05:45 AM
latha2002 latha2002 is offline
Registered User
 
Join Date: 15 Jul 2009
Location: bristol
MS Office Version:Excel 2003
Posts: 6
latha2002 is becoming part of the community
Re: How to stop plotting empty cells in a dynamic area chart

Hi,
Sorry could not attach the file due to internet connectivity issue.
I want the months to be visible on the x-axis but i do not want the graph to assume default value for an x-axis value that does not have a corresponding y axis value. Suppose i have some y valure for mar-06 and no yvalue for apr-06 the graph should end at mar-06 only.


Thanks and Regards,
Latha
Attached Files
File Type: xls areachart.xls (24.5 KB, 9 views)

Last edited by latha2002; 07-21-2009 at 06:04 AM.
Reply With Quote
  #4  
Old 07-21-2009, 06:07 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,223
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: How to stop plotting empty cells in a dynamic area chart

Adjust your defined names to only include months with data.

Alternatively you would need to create the axis labels using formula and double up on the last period that contains data.
Attached Files
File Type: xls 692163.xls (27.0 KB, 8 views)
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #5  
Old 07-22-2009, 04:07 AM
latha2002 latha2002 is offline
Registered User
 
Join Date: 15 Jul 2009
Location: bristol
MS Office Version:Excel 2003
Posts: 6
latha2002 is becoming part of the community
Re: How to stop plotting empty cells in a dynamic area chart

Dear Andy,

Thankyou for the solution. But, my client's requirement states that all the months for the entire year should be visible on the X-axis. The data is very large. Henceforth, doubling up of the last period containing data would not be feasible. Can a macro be written for the same? That would be more helpful in dealing with large set of data. The excel that i sent was just a sample one. Kindly help me in this regard.


Thank you in advance

Regards,
Latha
Reply With Quote
  #6  
Old 07-22-2009, 04:09 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,223
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: How to stop plotting empty cells in a dynamic area chart

The only doubleing up that is required is the axis labels.
Even with a huge data set that can only be 255 cells in xl2003. Is that really a problem?
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #7  
Old 07-22-2009, 12:20 PM
latha2002 latha2002 is offline
Registered User
 
Join Date: 15 Jul 2009
Location: bristol
MS Office Version:Excel 2003
Posts: 6
latha2002 is becoming part of the community
Re: How to stop plotting empty cells in a dynamic area chart

The chart has to be updated automatically as and when data is entered ; If the axis label is doubled for Mar-06 then for the next value i.e. apr-06 the graph starts from a zero value of the pevious month which will not be correct. Which is why I am requesting for an alternative solution.



Thank you,
Latha
Reply With Quote
  #8  
Old 07-22-2009, 01:57 PM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,223
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: How to stop plotting empty cells in a dynamic area chart

In my example when I add values to Apr, in cells N29:N31, the month names automatically update and Apr is now doubled-up.

Of course you will need to set up the formula, as in row 28, but once setup it will sort itself out when new data is added.
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #9  
Old 07-23-2009, 05:49 AM
latha2002 latha2002 is offline
Registered User
 
Join Date: 15 Jul 2009
Location: bristol
MS Office Version:Excel 2003
Posts: 6
latha2002 is becoming part of the community
Re: How to stop plotting empty cells in a dynamic area chart

Dear Andy,
I tried incorporating the formula that you suggested into my excel but I am having 2 issues: 1) The graph is not starting from zero. 2) The x axis does not display all the monthsin other words months in which no data is available are not visible.

Kindly help as I am not well versed with excel.

Thank you for your support.

Best Regards,
Latha
Attached Files
File Type: xls areachart.xls (26.0 KB, 4 views)
Reply With Quote
  #10  
Old 07-23-2009, 06:06 AM
Andy Pope's Avatar
Andy Pope Andy Pope is offline
Forum Guru
 
Join Date: 10 May 2004
Location: Essex, UK
MS Office Version:2003 & 2007 sp2
Posts: 7,223
Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding Andy Pope Has a higher level of understanding
Re: How to stop plotting empty cells in a dynamic area chart

Simply change the named ranges you have defined.

YValue1: =OFFSET(xValue,1,0)
YValue2: =OFFSET(xValue,2,0)
YValue3: =OFFSET(xValue,3,0)
Attached Files
File Type: xls 692163b.xls (27.5 KB, 11 views)
__________________
Cheers
Andy
www.andypope.info
Reply With Quote
  #11  
Old 07-23-2009, 07:36 AM
latha2002 latha2002 is offline
Registered User
 
Join Date: 15 Jul 2009
Location: bristol
MS Office Version:Excel 2003
Posts: 6
latha2002 is becoming part of the community
Re: How to stop plotting empty cells in a dynamic area chart

Dear Andy,

Thank you very much for your help. It works!!! I am so happy to see that


Regards,
Latha
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump