Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
MWS MWS is offline
external usenet poster
 
Posts: 53
Default Systematically Renaming Ranges

I'd like to NOT show zero values on a chart and despite some good information
via this site (ie ToolsOptionsChart the "plot empty cells" GUI is
disabled), I think I may need another method via VBA, so....

I have a range named "ChartData" and it refers to the populated cells a1:b7.

What I need to do is, if cells a5:b7 are blank, systematically redefine the
"ChartData" range to then refer to a1:b4. (via sorting the range, I can
ensure all the blank data is at the bottom of the ranges).

If this can be accomplished, then the chart data range will only have data
and my issue with NOT showing zero values will be resolved.

If anyone can either provide the code to accomplish this or suggest a more
efficient alternative, please help.

Any and All Help Will Be Appreciated - Thanks In Advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Systematically Renaming Ranges


instead of sorting and renaming you could filter the data.
faik hidden lines (filtered out) will not appear on the chart.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


MWS wrote in

I'd like to NOT show zero values on a chart and despite some good
information via this site (ie ToolsOptionsChart the "plot empty
cells" GUI is disabled), I think I may need another method via VBA,
so....

I have a range named "ChartData" and it refers to the populated cells
a1:b7.

What I need to do is, if cells a5:b7 are blank, systematically
redefine the "ChartData" range to then refer to a1:b4. (via sorting
the range, I can ensure all the blank data is at the bottom of the
ranges).

If this can be accomplished, then the chart data range will only have
data and my issue with NOT showing zero values will be resolved.

If anyone can either provide the code to accomplish this or suggest a
more efficient alternative, please help.

Any and All Help Will Be Appreciated - Thanks In Advance

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Systematically Renaming Ranges

sort the data and use defined names for your data source

Insert =Name=Define

Name:= listA
Refersto = =Offset(Sheet1!$A$1,0,0,Count(Sheet1!$B$1:$B$7),1)

Add Button

Name:= listB
Refersto = =Offset(Sheet1!$B$1,0,0,Count(Sheet1!$B$1:$B$7),1)

Add Button

Use the names ListA and ListB as your data sources.

--
Regards,
Tom Ogilvy

"MWS" wrote in message
...
I'd like to NOT show zero values on a chart and despite some good

information
via this site (ie ToolsOptionsChart the "plot empty cells" GUI is
disabled), I think I may need another method via VBA, so....

I have a range named "ChartData" and it refers to the populated cells

a1:b7.

What I need to do is, if cells a5:b7 are blank, systematically redefine

the
"ChartData" range to then refer to a1:b4. (via sorting the range, I can
ensure all the blank data is at the bottom of the ranges).

If this can be accomplished, then the chart data range will only have data
and my issue with NOT showing zero values will be resolved.

If anyone can either provide the code to accomplish this or suggest a more
efficient alternative, please help.

Any and All Help Will Be Appreciated - Thanks In Advance



  #4   Report Post  
Posted to microsoft.public.excel.programming
MWS MWS is offline
external usenet poster
 
Posts: 53
Default Systematically Renaming Ranges

Thank You - There's Always A Work-Around - Take Care

"keepITcool" wrote:


instead of sorting and renaming you could filter the data.
faik hidden lines (filtered out) will not appear on the chart.

--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


MWS wrote in

I'd like to NOT show zero values on a chart and despite some good
information via this site (ie ToolsOptionsChart the "plot empty
cells" GUI is disabled), I think I may need another method via VBA,
so....

I have a range named "ChartData" and it refers to the populated cells
a1:b7.

What I need to do is, if cells a5:b7 are blank, systematically
redefine the "ChartData" range to then refer to a1:b4. (via sorting
the range, I can ensure all the blank data is at the bottom of the
ranges).

If this can be accomplished, then the chart data range will only have
data and my issue with NOT showing zero values will be resolved.

If anyone can either provide the code to accomplish this or suggest a
more efficient alternative, please help.

Any and All Help Will Be Appreciated - Thanks In Advance


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
How do I systematically do this? JayPee Excel Discussion (Misc queries) 3 August 14th 08 07:33 PM
Excel {2007} Named Ranges: Renaming, Deleting etc... DemonTraitor Excel Discussion (Misc queries) 4 November 27th 07 12:06 PM
how to learn vba systematically lalaexcel Excel Programming 1 February 16th 06 11:38 AM
Systematically Identifying Duplicate Records MWS Excel Programming 1 February 9th 06 07:55 PM
Systematically Importing Data to Excel MWS Excel Programming 0 November 29th 05 01:29 PM


All times are GMT +1. The time now is 07:15 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"