Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default CREATING GRAPHS


Greetings:

I have template that can take 10 data points and then these data points
are plotted. However, at times I may not have all the 10 data points,
i.e. I may have 5 data points, but since the graph ranges through the 10
data points, zeros are plotted for the empty cells.

Is there any way that I can automate the range of the graph so that it
will only plot the cells with data and ignore the empty cells,
especially if the empty cells are the last points in the data range.

Your assistance in this respect will be very highly appreciated.

Thanks and regards




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default CREATING GRAPHS

Hi Mohammad,

Check out Jon's examples of using dynamic ranges.
http://peltiertech.com/Excel/Charts/Dynamics.html

Cheers
Andy

Mohammad Mian wrote:

Greetings:

I have template that can take 10 data points and then these data points
are plotted. However, at times I may not have all the 10 data points,
i.e. I may have 5 data points, but since the graph ranges through the 10
data points, zeros are plotted for the empty cells.

Is there any way that I can automate the range of the graph so that it
will only plot the cells with data and ignore the empty cells,
especially if the empty cells are the last points in the data range.

Your assistance in this respect will be very highly appreciated.

Thanks and regards




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default CREATING GRAPHS


Andy, thank you for your prompt response. You are a life saver.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default CREATING GRAPHS

use a defined name

Insert=Name=Define
Name:= DataSource
RefersTo: =Offset(Sheet1!$A$1,0,0,Count(Sheet1!$A$1:$A$10),2 )

then for the source of your graph put in

=MyWorkbook.xls!DataSource

--
Regards,
Tom Ogilvy


"Mohammad Mian" wrote in message
...

Greetings:

I have template that can take 10 data points and then these data points
are plotted. However, at times I may not have all the 10 data points,
i.e. I may have 5 data points, but since the graph ranges through the 10
data points, zeros are plotted for the empty cells.

Is there any way that I can automate the range of the graph so that it
will only plot the cells with data and ignore the empty cells,
especially if the empty cells are the last points in the data range.

Your assistance in this respect will be very highly appreciated.

Thanks and regards




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default CREATING GRAPHS


Thank you Tom, you are really a life saver.


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating graphs from data in other files Gaijintendo Excel Discussion (Misc queries) 1 July 23rd 08 03:39 PM
Creating Multiple Graphs at a Time Matt Carney Charts and Charting in Excel 2 May 27th 08 05:08 AM
Creating Circles on Excel Graphs [email protected] Excel Worksheet Functions 2 February 23rd 07 05:29 PM
Creating two bar graphs Lisa Charts and Charting in Excel 3 December 6th 05 01:41 PM
Need Help creating multiple graphs through coding canes_26 Excel Programming 2 April 28th 04 09:00 AM


All times are GMT +1. The time now is 04:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"