VBA Charting Weirdness

Jul 1, 2006

I am just reusing some code that works most of the time to reset the seriescollection of specific charts. Sometimes is will just error when I try to set the .values object to my range of values. It's strange because it will work for 10 seriescollections/identicle ranges on the same chart and then error out; and sometimes it will work perfectly.

I've checked:
The chart reference object
The range I'm setting
The code I've copied from

It's all correct. Here's a short sample.

ValRng = Range("AR7:CY7")
Set usechart = ActiveSheet.ChartObjects(1)
With usechart.Chart.SeriesCollection.NewSeries
.Name = "Prime 2000"
.Values = ValRng ' (also tried it this way) "=" & ActiveSheet.Name & "!" & Range("AR7:CY7").Address
End With

The series is created fine, and the name is set properly.

On my new sheet here it won't set ANY values, which is a real problem. If anyone knows what is going on, please let me know.

View 6 Replies


ADVERTISEMENT

Charting In VBA

Aug 15, 2008

I have an existing chart and I want to update the plot utilizing data that has been calculated and stored in 2 arrays X(N,1) and M(N,1) via my VBA macro. How do I do it?

View 10 Replies View Related

X Y Charting With Supplemental Information

Mar 26, 2014

I have a large number of files containing thousands of X and Y coordinates. I prepared a macro which loads these X and Y data from all the files into one workbook, and it writes the file names into each row. So, in the end I get a file with this formation:

X Y filename

x1 y1 filename_1
x2 y2 filename_1
x3 y3 filename_1
.
.
.
xi yi filename_2
.
.
xn yn filename_m

It would be great if I could make then an XY Chart which contains the information of "filename" column too. I didn't mean labling, because in the end I'll have hundred thousands of points, so if I added labels to each point it would be impossible to see anything. I would only set that if I move the mouse to any point of the chart, it would show not only the X and Y coordinates, but the related filename too.

Is it possible to set it so in excel?

View 5 Replies View Related

Charting Non-numerical Data?

Dec 2, 2013

produce graphs/charts based on inequalities monitoring information - gender, nationality, age etc. I'm capturing info from several events, one sheet per event. Had a look at COUNTIF but not sure it's what I want and looks like I'd need sub-sheet for each? Capture.PNG

View 7 Replies View Related

Charting Information Between Two Given Dates

Nov 22, 2011

I am working on a project at work. I need to track our VIP guests. I only have their arrival and departure date.

Is there a way to graph and track the days between so that I can have a total of all arriving and In-house VIP guests on all dates in the range?

Here's a sample of the data.

10/18/201110/19/2011HOERMAN/SCOTT10/17/201110/21/2011SMITH/JOHN M
10/10/201110/13/2011WARNER/AMY10/18/201110/19/2011GERONDALE/RON
10/11/201110/12/2011BUCHANAN/JEFFREY10/17/201110/18/2011HUND/LARRY
10/20/201110/23/2011HADDOCK/CHRISTOPHER10/9/201110/12/2011
BLOOMER/ROBERT10/20/201110/23/2011COLE/ELIZABETH10/7/201110/8/2011IWASA/KENNETH

View 6 Replies View Related

Not Charting Line If Value Equals Zero?

Sep 4, 2012

I have a line graph which plots the PERCENT_YIELD of units built (UNITS_PASSED / UNITS_BUILT) every week. I want to fill all future week cells with a formula so dragging the formula is not a manual operation every week (my overall goal is to automate a complex spreadsheet and charts as much as possible).

The formula is =IF(Q1080,Q109/Q108,)
Where Q108 is UNITS_BUILT
Where Q109 is UNITS_PASSED

My theory is if units were built (Q108 not equal to zero), plot the ratio. If no units were built (Q108 is zero) I do not want to plot any value on the chart.

The chart plots the correct values for the True conditions; however the chart plots a zero value for the False conditions. How do I not plot a zero for a false condition?

View 2 Replies View Related

Named Ranges And Charting

Dec 5, 2012

I am having an issue with dynamic charting using named ranges in excel. I quite often create dynamic charts using IF and OFFSET formulas to check conditions in order to create charts of data based on user inputs.

The issue I am having is with linking multiple tables of data in a single named range. In order to make this spreadsheet easy to maintain I am trying to take 3 separate databases and link the spreadsheets through named ranges. The formula I have written is as follows:

=VLOOKUP(VALUE(LEFT(OFFSET(Processed!$B$1,1,0,COUNT(Processed!$C:$C),1),6)),Raw!$F:$O,10,FALSE)

For context this is;

=VLOOKUP(VALUE(LEFT(OFFSET("Serial number I am referencing",1,0,"Qty of rows containing data",1),6)),"Value I want to return from separate table",10,FALSE)

[The formatting of the serial number between the two sheets is slightly different but they share the first 6 digits (hence the wrapped VALUE and LEFT formulas).]

This formula is working perfectly except that it doesn't store the entire data table in a single cell, it only returns a single value. If I enter the formula into a cell and drag it down it returns all the information correctly, however if I create a named range using the formula and try to chart it only the first value returned is charted.

Any way to modify the formula to store the entire data array in the single cell value so it will chart when used as a named range?

View 1 Replies View Related

Charting With Dynamic Ranges

Mar 25, 2014

So I was looking for reassurance or validation more than anything. From what I can tell you can in order to build a chart that is dynamic throughout a range, you use the offset and count or counta function - 1. That part isn't a problem. My question is once you created that for your charts do you just normally plot your chart range or do you have to reference the named range directly into the chart range?

View 2 Replies View Related

Charting A Range Of Values

Aug 31, 2007

I have a simple sheet to record and graph my bloodpressure . The list of values is as follows:
col A is always todays date
cols B and C user input - integer
col D is a constant value 120
col E is also a constant value 80

Currently I am manually charting the range A1:Exx each day after I have added a new line for my daily readings. Whilst this works fine, I'd like to automate the charting process as currently if I select a range full of blank cells then my chart displays loads of blank values.

So I could use a Button on the graph which works out how big my cell range is ie; A1:E66 and graphs it for me or alternatively a background macro that does the same after I have entered the C col entry for each day

View 9 Replies View Related

Macro Charting Resources

Nov 9, 2006

i would like to find out about:The different essential building elements for different chart types (like 3DBubble requires XValue, Value, Name and BubbleSize, for example, but what about clusteredColumn and the others?)How to address the building elementsThe optional building elements (changing background color and stuff)

View 2 Replies View Related

Dynamic Graphing/Charting

Mar 26, 2008

I have a workbook with Sheet1 and Sheet2. I’ve programmed information from to be calculated and results inserted into sheet2. A new result every Row. I plan to do a graph taking the X-axis and Y-axis values from Columns A and B respectively in Sheet2. What is the VBA code for dynamic updating of graph? Meaning, I want the graph (a curve) that will have points added to the curve, extending it, whenever a new row is added into sheet2 – Columns A (X-axis) and B (Y-axis). The rows are not defined. It can have 100 to 200 rows or more..

View 6 Replies View Related

Simple Charting Of Talk Times

Nov 26, 2013

I need to create a simple Talk Time Chart displaying our call center's talk time in 30 min increments.

TimeATT
08:00:00:02:03
08:30:00:04:06
09:00:00:03:56
09:30:00:02:57
10:00:00:04:57
10:30:00:03:29
11:00:00:04:41

[Code] .....

View 1 Replies View Related

Charting Color According To Dates And RGB Values

Feb 26, 2014

I have a spreadsheet with 4 columns. The first column is a Date/Time object and the next three columns represent the R, G, and B values of a color. The color values are 8-bit numbers(0-255). What I'd like to do is create an area or bar chart where the x-axis are the dates and the y-axis is the overall brightness of the color (a simple average of R,G,B would suffice). However, I'd ideally like the color of the bar to be displayed by the R, G, and B values from the cells. Is this possible? I've attached a dummy file for reference.

View 6 Replies View Related

Charting Hidden / Grouped Columns?

Mar 18, 2014

I have several years worth of monthly data that I would like to keep hidden so it is printer friendly but I also want to have a chart of all that data... Is this possible? Only idea I have is to basically recreate the data sheet but I don't really like that solution since it adds steps to the process and increases the file size...

View 2 Replies View Related

Charting Multiple Dates With Trend?

May 15, 2014

I'm having difficulty figuring out how to line graph two separate dates. I also want to show a trend.

I was first thinking I would need two graphs, but is there a way to merge into one?

View 1 Replies View Related

Charting Out All Possible Combination Of Multiple Ranges

Jul 10, 2014

I have developed an evaluation algorithm for residential mortgages, and am having difficulty testing. I am trying to ensure that my scoring model makes sense from every possible scenario. The grading model takes into account multiple factors that most financial institutions would find important when assessing a potential borrower for a loan. Examples of these factors could be an individual's credit score (ranging from 0 - 800), the type of dwelling (multiple options to choose from), etc. In total there are about 20 different factors, each with a minimum of 5 possible options to choose from.

I am trying to create a spreadsheet that lists out all possible combinations of the multiple factors, and trying to input it by hand . To give an example:

Credit Score
Property Dwelling Type
Property Value

100
Townhouse
$350,000

[Code] .....

View 6 Replies View Related

Charting To Change Based On Data?

Mar 26, 2012

I have data I use in a Pareto chart. This data is found somewhere in cell range A18:AF20. I want the chart to adjust itself to only the cell range with data. It may be A18:M18 or perhaps A18:AB18.

Is there any way to set the cell to look at only the cells with data in them?

View 1 Replies View Related

Charting By Time Across Multiple Days

Jul 28, 2008

I have two sets of data that I would like to be compared over a 4 day period.

One set (Mill data) has an associated date and time (29-Jun-08 00:42:02 etc.), and has a value generated every 4 to 6 minutes.

The second set (Dump Grades) has an associated time only (13:24 etc.), and has values generated at random time intervals throughout each day.

The first issue is that I must assign a date to the Dump Grades data, which I just can't seem to do.

The second problem is that I don't know how to get all of these data points graphed on the same graph, as the date and time thing is throwing me for some reason.

My data right now is arranged in columns on separate sheets, organized by dates.

View 9 Replies View Related

Dynamic Range Selection For Charting

May 7, 2009

I have three rows that each attempt to pull in data from a range on different worksheets. All but one return nothing but "#N/A" values. The one row returns values from the proper range. (User selections determine which row will have data).

Second, I successfully pull data from the row containing actual information into another row, using the following formula: "=OFFSET(E$36,CHOOSE($Y$1,0,1,2),0)" on a cell-to-cell basis. The value in $Y$1 chooses the row to look at, based upon a dropdown selected on another worksheet.

So I now have a row with =OFFSET(E$36,CHOOSE($Y$1,0,1,2),0),=OFFSET(F$36,CHOOSE($Y$1,0,1,2),0),=OFFSET(G$36,CHOOSE($Y$1,0,1,2),0) and so forth. I can find the last value in the row, but I cannot find a way to extract the address from that, and create a table that will use as a series the last 26 values in the row.

For reference, I use "=LOOKUP(9.99999999999999E+307,E49:FD49)" to determine the last cell with a value (gleaned from a Dueling Excel Youtube Video, - very helpful!).

I hope the above will be clear enough, but if not, I'll be happy to provide additional information / clarification.

View 9 Replies View Related

Charting 2 Data Series With Different Numbers Of Points

Jun 12, 2014

Have Series 1 (to be a line chart) with 20 data points X values are 0 to 68. Have Series 2 (Bar chart) with 68 data points, again X values 0 to 68

Cant get series 1 to display beyond X value of 20

View 3 Replies View Related

Dynamic Charting Of Multiple Series Data

Jan 12, 2009

I have several dynamic charts using named ranges, but I am charting 1 series of data. What about when I have multiple data sets or series and do not want to use PivotTables? Do I really have to make each one a named range? If that's the case, using VBA looks much simpler.

View 2 Replies View Related

Excel 2010 :: Waterfall And Other Advanced Charting

Apr 19, 2012

I was asked to create a Waterfall chart in PowerPoint, which stumped me both in its purpose and how to create it. Is this a standard chart, an add-in, or a chart created by modifying a standard chart?

Two related questions:

What is the best resource (book or web) for advanced charting in Excel/PowerPoint 2010? I just ordered "Charts and Graphs: Microsoft Excel 2010" (MrExcel Library) by Bill Jelen because it had the Waterfall chart in its index. That chart isn't in the "Excel 2010 Bible" or the older "Excel Charts" book by John Walkenbach and is only mentioned briefly in Jelen's "Excel 2010 in Depth."

I'm an advanced Excel user and was wondering whether there are still more charting options in Excel than there are in PowerPoint. I know that used to be the case, but it seems in 2010 that PowerPoint charting has nearly the same functionality as Excel charting or are there charts that are best done in Excel? (...putting aside linking/updating functionality).

View 4 Replies View Related

Charting Live Horse Racing Odds

Sep 28, 2009

I have a line graph which I use in conjunction with live horseracing odds. On the vertical axis are the odds which are sourced from a worksheet. Each horse is represented by a data series that moves along the horizontal axis. The refresh rate is determined by the user embedded in the code.

I would like to expand the length of each data change along the horizontal axis as the data can be volatile. Sometimes there are rapid changes on the vertical axis which makes it difficult to interpret. With each refresh the line data moves about 3mm. It would be much better if it were about 5mm, especially as I now use a widescreen display.

There are no values on the horizontal axis as such, only time is suppose set by Excel?

View 9 Replies View Related

Pivot Table, Charting Or Access Database

May 22, 2006

I have an excel spreadsheet in which I must sort the data by program and then activity code. From that I need to know the number of consumers by activity code and their total units. I must then graph this by program. I have been debating on whether to use an excel pivot table, break the data in to multiple spreasheets to then graph it or shoud I upload the file into access.

View 9 Replies View Related

Charting The Results Of Changing One Cell That Has Many Chained Precedents

Feb 12, 2014

I have a document with a huge number of chained-together precedent cells, each changing vastly when a single input cell's value is changed (my x-value).

I need to look at the bottom line (my y-value) which is the result of a number of calculations based on the aforementioned cells, there is no linear relationship as there are a number of thresholds and roundups.

I have done this in mat-lab, however my company doesn't have that luxury and all the information is created by a standard estimating sheet that cannot change format.

How could I go about doing this? I've had a look through pettier however I can't see anything that doesn't either require a named cell with a huge formula in it or a table (which isn't practical in this instance - I need to chart the bottom line for 100 different values).

View 1 Replies View Related

Charting Data Based On Dropdown List Choice?

May 28, 2011

Charting Data Based On Drop Down List Choice

I am trying to build a report where I can chart data base on a dropdown selection.I did build the dropdown lists, however I don't have any expertise on execel functions in order to make it work.I am attaching my draft report.

View 6 Replies View Related

Excel 2010 :: Line Graph Isn't Charting Lines?

Feb 23, 2012

I have been trying to chart temperature differences over 10 day's time for six cities using a line graph. For some reason, the lines are all clustered at the bottom of my graph, with values of 0. My spreadsheet is accurate, without any blank cells. I'm using Excel 2010.

View 1 Replies View Related

Dynamic Charting Via Dropdown Reference And Offset Function

May 18, 2007

i have 2 worksheets. one with portfolio stock data, and a second that i would like to use for dynamic charting. the chart worksheet has a drop down menu that chages a refernce cell to a number corresponding to the collumn in the portfolio worksheet for the chosen ticker

i would like to make a dynamic chart that updates the data ranges based on something like this: ....

View 9 Replies View Related

Charting Multiple Dynamic Ranges As Single Continuous Series

Mar 10, 2014

I have a log where I'm recording daily readings of a pipette. Each day three readings are taken and I have each stored as a dynamic range so that I can monitor how in control my process is. However, when I graph it, I would like it to be one continuous line graph (Three readings from day one followed by three readings from day two, etc.). I'm having difficulty doing any sort of combination.

View 7 Replies View Related

Offset And CountA To Auto Select Data Range For Charting Purposes?

Dec 12, 2013

how to play with data ranges and define names for charts to automatically update them by using the formula offset + counta. An example would be: =OFFSET(Sheet1!$B$7,0,0,COUNTA(Sheet1!$B$6:$B$37)-1).

So, the problem comes when there is a need to select a data range which is not that well defined like $B$6:$B$37. So, I need to import data regularly into my workbook, this data will be imported right below of the last cell with values.

Now, how would I manage to automatically select the data range from this new import for my chart? See attached example. I have highlighted in Yellow a potential import... there is no data in there so feel freel to fill it with any numbers you like.

I have tried to use a vlookup to find Country+Programme+Year (cat1 in the example) in the 'counta' part of the formula above. But I get lost,as a vlookup would retrieve a value and would not be useful for the data range?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved