Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2014, 06:35 AM
SteveBump SteveBump is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Novice
Variable / Conditional Address in Chart Data
 
Join Date: Oct 2013
Posts: 24
SteveBump is on a distinguished road
Default Variable / Conditional Address in Chart Data

I have a chart with two lines; one to represent when items are scheduled to be done and the second line to indicate when they were actually done. Both lines pull from a table that tracks scheduled and completed items, by month, with each column representing a different month. The chart plots when scheduled items should be done for the next 15 months. I only show the completed items from the beginning through the current month/date. The problem is, I have to go in and manually adjust, using Select Data to change the range by one month (i.e. one column) every month.


Is there away to make the address / range dynamic? Thank you.
Reply With Quote
  #2  
Old 02-03-2014, 12:43 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Could you please post a sample sheet ( no pics please). Thx

EDIT perhaps this link will get you on track
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 02-03-2014, 05:04 PM
SteveBump SteveBump is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Novice
Variable / Conditional Address in Chart Data
 
Join Date: Oct 2013
Posts: 24
SteveBump is on a distinguished road
Default Sample attached

You will see in my spreadsheet I have a chart with two lines of data; one for "Scheduled" and one for "Completed". The Scheduled data uses all of the values from B7:Q7, which goes to January 2015. For the Completed data, I only show from the beginning (B8) until the current month, in this case E8. My problem is that each month I need to go to the graph, click on "Select Data" and increment the range for "Completed" by one column, so next month, I will change it to be B8:F8 and then B8:G8, etc. I have many of these so it is time consuming and I have to remember to do it and then hope I don't make any mistakes.
Ideally, I would be able to use current date logic and make the range end at something less than or equal to today's date.
Thanks in advance for your help.
Steve
Attached Files
File Type: xlsx Sample Variable or Condiitional Data Range.xlsx (17.1 KB, 14 views)
Reply With Quote
  #4  
Old 02-04-2014, 12:36 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Have you checked the provided link?
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 02-04-2014, 02:21 PM
SteveBump SteveBump is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Novice
Variable / Conditional Address in Chart Data
 
Join Date: Oct 2013
Posts: 24
SteveBump is on a distinguished road
Default

I haven't attempted it yet, but after reading the dynamic charting techniques in the link you provided, I'm pretty sure I'll be able to do what I need to do. Thank you.
Reply With Quote
  #6  
Old 02-06-2014, 07:03 AM
SteveBump SteveBump is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Novice
Variable / Conditional Address in Chart Data
 
Join Date: Oct 2013
Posts: 24
SteveBump is on a distinguished road
Default

I was able to use the Dynamic Names feature to accomplish what I need to do, but since I have multiple charts, I'm trying to avoid having to create a separate Dynamic Name that corresponds to each chart.

I'd like to be able to use the following statement in the Series Values section of the data for my chart, but it tells me the formula contains an error:

=Sheet1!$B$11:OFFSET(Sheet1!$B$11,0,Sheet1!$B$13)

Is there a chance I'm just using the wrong syntax or am I not allowed to use OFFSET to define the end range of the Series value?
Thank you.

Last edited by SteveBump; 02-07-2014 at 10:19 AM.
Reply With Quote
  #7  
Old 02-06-2014, 09:52 PM
BobBridges's Avatar
BobBridges BobBridges is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

I just tried the following formula in a test worksheet and it seemed to work:
Code:
=SUM(S119:OFFSET(S119,S124,0))
So apparently I can use a value in the range as one of the offsets. Guess that's not the problem.

I notice in your case your range runs across a single row rather than down a column. I suppose you meant it to be that way?
Reply With Quote
  #8  
Old 02-07-2014, 05:05 AM
SteveBump SteveBump is offline Variable / Conditional Address in Chart Data Windows 7 64bit Variable / Conditional Address in Chart Data Office 2010 64bit
Novice
Variable / Conditional Address in Chart Data
 
Join Date: Oct 2013
Posts: 24
SteveBump is on a distinguished road
Default

Yes, I can use it in a SUM statement, so I assumed the syntax is valid, but it won't let me put that same syntax in the Series Value box when specifying what data to use for my chart.

And yes, my example is intentionally meant to go across a single row. I have many single rows, each with their own chart. If I could use the statement with an OFFSET in the Series Values, I could reuse it for every chart. If I can't, the it looks like I will have to create a separate range name for each chart (18 of them), which is doable, but I'm trying to avoid it if it isn't necessary. Thanks.

Last edited by SteveBump; 02-07-2014 at 10:19 AM.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Project - variable data fields pmarc Word 7 04-04-2013 05:07 PM
Variable / Conditional Address in Chart Data Conditional Formatting over copied and pasted data kb3264 Excel 6 07-11-2012 07:12 AM
Variable / Conditional Address in Chart Data Run-time error '91': Object variable or With block variable not set tinfanide Excel Programming 2 06-10-2012 10:17 AM
Variable / Conditional Address in Chart Data How to create a chart with a variable width column? Guy Roth Excel 1 03-20-2012 05:52 AM
Inputting variable data axy Word 0 09-08-2009 04:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:38 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft