Automatically Create Set Of Charts From Block Of Data

Jul 12, 2012

I have a quite big database as a result of a study in Excel 2010. There is a special block of data for every participant in the study, including 16 data series in 16 lines. I have to make a unique chart for every line.

One block is bulid up in a way, that every row is the input for a chart, with the exception of one "spacer" row, which is empty.

Name
1 2 3 4 ...
A
B
C

D
E
F

For example in the sample above, there should be 6 line-charts (A, B, C, D, E, F) next to the block.

Can a macro be written, so I can automatically create the chart-set by selecting the block's upper left cell and running the macro? Or is there any easier method?

View 5 Replies


ADVERTISEMENT

Plotting Charts - Object Variable Or With Block Not Set

Feb 19, 2013

I've written a vba code to graph a large number of graphs for me with two data series on each graph. To test my theory on it working I broke it down into parts and ran each separately as I went so I wouldn't have to sift through the whole thing to find an issue when I was finally finished... well I'm finished and it has a random error.

Code:
Sub chart()
Dim n As Integer 'worksheet index number that the chart goes on
Dim date_col As String
Dim m_max As String
Dim m_min As String
Dim m_avg As String

[Code] ....

I stuck a end sub here for the sake of trying to isolate the part throwing the error and it still came when I ran the top part.

'Average Temperature
Worksheets(n).Shapes.AddChart.Select
ActiveChart.ChartType = xlXYScatterLines

ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(1).Name = "Actual Average"

[Code] ........

View 2 Replies View Related

Automatically Update Charts As X And Y Axis Data Changes

Jul 28, 2009

Produce a chart (not a problem) that can be updated should the length of the X and Y data change?

This may not even need to be a macro, if it is possible to have a chart whose X and Y axis updates depending on the contents of a column?

If you search through the history of even this forum you will see quite a lot of people are looking for this solution.

View 9 Replies View Related

Create Multiple Graphs/Charts From Data Groups

Jun 26, 2008

I need to make a macro that creates a specified number of graphs depending on the file's number of data sets. I know the number of sets that are in the data, and I know the number of data points that were taken. Here is what I have:

Sub Graphs()
Dim Startpoint As Integer
Dim Endpoint As Integer
Dim count As Integer
Dim xStart As String
Dim xEnd As String
Dim NumberSets As Integer
Dim yStart As String
Dim yEnd As String
Dim DataSet As Integer
Dim Data
Startpoint = 11 'The first set always starts in row 11
Endpoint = Range("L4").Value + 10 'Thefirst set always ends after the value of L4+10
NumberSets = Range("L7").Value 'number of times I need the loop to work
count = 1..........................

View 2 Replies View Related

Create Charts From Same Data But Each Based Ob Data Criteria

Aug 31, 2006

Hi, have a question regarding dynamic charts, specifically I am trying to create several dymanic charts based on data in a single column (So i can only say my first set of data will be starting a a set location in the chart, the rest has to shift down based chart data above it). This data should organized in charts depending on the data in several other columns. For instance, need to pull out values from column based some ID and some PartNumber. A sample excel or VBA would be much appreciated. I know VBA but do not know Excel VBA much.

View 9 Replies View Related

How To Create Block Matrix

Feb 12, 2013

I'm struggling to find the right Excel functions to fill up a block matrix. Here are all the details of my problem.

I have a list of firms and relative products. Each firm can produce either 1, or 2 or 3 different products, for instance

firm A produces product x
firm B produces products y and z
firm C produces product j
firm D produces products k, h and q

Suppose the data appear on a sheet in column order, that is, one column for the firms and one for the products with a space between A, B, C and D when one firm is a multi-product producer. I need to create a 0-1 block matrix in Excel setting 1 when the product is produced by the same firm and 0 otherwise, i.e. for the above example

x y z j k h q
------------
1 0 0 0 0 0 0
0 1 1 0 0 0 0
0 1 1 0 0 0 0
0 0 0 1 0 0 0
0 0 0 0 1 1 1
0 0 0 0 1 1 1
0 0 0 0 1 1 1

I can do this in VBA but not in Excel, and unfortunately I need to provide an Excel solution.

View 3 Replies View Related

Create Matrix Of Data Automatically

Jan 30, 2013

I have 2 types of data: Product & Store

And the data would go like this:

A
Corn Flakes
Frosted Flakes
Froot Loops

B
Store 1
Store 2
Store 3
Store 4

The number of entries of course is a lot bigger, that's why I'm trying to make it auto.

So what I need is to have a table created that would mix both data type in 2 columns, like this:

Product
Store

Corn Flakes
Store 1

[Code]...

How would this be done automatically by a formula?

View 9 Replies View Related

Automatically Create List / Table From Data That Changes Often

May 30, 2013

I have a client list/table that gets new data each day. (ALL) - see file

I need to create separate lists/tables on new sheets from the main data sheet (ALL) base on certain conditions/criteria...

On the (ID) sheet I need all the clients that have ID numbers to display, on the (Reg no) sheet I need all the clients with Reg numbers to display... etc.

Like I said that the main data sheet grows each day and the lists/tables on the other sheets needs to automatically include all the new clients that's entered.

Is there a way to do this using formulas or do I need code to do this?

View 2 Replies View Related

Automatically Create Monthly Totals From Daily Data

May 20, 2014

I am trying to do an automatic input with my daily total sales.. i did it in total but my problem is i don't know how to make the date change.

View 2 Replies View Related

Automatically Create Monthly Totals From Daily Data

Jan 2, 2009

In column A I have dates, in column B I have data.

What I am trying to do is get the monthly totals from the data so instead of:

01/02/08 - 52
06/02/08 - 87
14/03/08 - 23
12/13/08 - 12

I would get:

Feb 08 - 129
Mar 08 - 33

View 6 Replies View Related

Charts Not Automatically Updating

Sep 8, 2006

I have a worksheet containing 16 chart objects. The source data for each of these charts is located on various other worksheets (all within the one workbook however). Whenever I change data on my Data Input worksheet, the source data is correctly being recalculated, however, the associated charts aren't changing.

The only two ways I can get the charts to update are: (1) save and re-open the file (saving doesn't fix it but re-opeing the file appears to do a full recalculation which then correctly updates the charts); or (2) click on each of the charts individually, go to Source Data and re-accept the data range that is already in there.

I've used the following VBA on my Data Input worksheet to try to do a full spreadsheet recalculation every time I deactivate it but this doesn't solve the problem either.


Private Sub Worksheet_Deactivate()
Application.CalculateFullRebuild
End Sub


I've also tried CalculateFull and just Calculate in the VBA but to no avail.

My calculation is set to automatic.

I don't know if its relevant or not but this spreadsheet uses a custom worksheet function to derive some of the source data. I've never come across this problem before. Does anyone have any ideas on why its doing this and more importantly how to fix it?

View 9 Replies View Related

Create Single Input Sheet That Automatically Feeds Data?

Jul 9, 2012

I am trying to create a single input sheet that automatically feeds data into several other worksheets within the same workbook. Some of the sheets use the same data, some are completely independent of each other. The point of having this is so that users can go in, fill in the input sheet, and the other sheets will automatically be filled with data from the input sheet.

View 1 Replies View Related

Userform To Automatically Create A Graph From The Data That Is Shown In The Worksheet

Jul 4, 2006

I want to do is use a userform to automatically create a graph from the data that is shown in the worksheet. The data in the work sheet will grow and shrink all the time. Am i right in thinking I am meant to create a dynamic range? I know how to do it but am not too sure what I am meant to be naming. And secondly I am not too sure how I set up the button to produce the graph.

View 4 Replies View Related

Add-in That CAN Create Big Charts Of 100 X 100

Apr 21, 2013

I don't mind paying for the add-on/add-in, I need to have a chart displayed of 100 rows and 1000 cells of data.

View 6 Replies View Related

Create Multiple Charts With VBA?

Aug 18, 2012

I'm trying to create multiple Charts with VBA, each chart on a seperate Sheet. The link below works but i need to change it some and i'm stuck. What i'm trying to do is create a new sheet for each new graph, but I need it to create a graph for the 250 associates in column B then plot 52 weeks of their % from the Row their name shows up in. First name is in (B3), his % data is in range (N3:BO3). I have the weeks numbered out 1-52 in (N2:BO2) and i'd like their name to appear in the Tab and on top of the graph. I applied the VBA code from the link below to my sheet and changed what i knew i needed to change, but it debugs. I use to do each graph manually when i had 25 associates but i would like to use this for the whole building now.

[URL]

View 9 Replies View Related

Create Dashboards Or Charts

Nov 13, 2009

how to create dashboards or charts. I am looking for similar website like http://www.datapigtechnologies.com/. this is very good website for those of you who need to do some fancy staff with excel.

View 2 Replies View Related

VBA To Create Pie Charts For Top 10 Of Each Location

Feb 23, 2014

Basically I want to have a macro to loop through and make all the pie charts for each location but only for the top 10 of each location.

I also want the legend to be more precise for example, for London the first one in the legend should show:
Column C + "-" + Column I + "-" + Column J

Which would be: London - Rol9 -13

Instead of it being: London data rol9 13

Attached is the document in question where I've made the graphs manually : Example_Pies.xlsx‎

View 3 Replies View Related

Updating Rolling 3 Year Charts Automatically

Aug 28, 2012

I have just been asked to update a file on a quarterly basis which contains a large number of charts based on the performance of various funds against their respective benchmarks. In column A I have dates going back to 2008 and then the fund and benchmark figures in the next columns. Each quarter there will be a need to update the charts to the new rolling 3 year period, i.e. in October when I update the file, the charts will need to show the results from 30.09.09 to 31.09.12

As there are 20 charts this can be quite time consuming? The charts sit on the same tab as the data, under the columns at the bottom.

View 2 Replies View Related

Graphs / Charts Generation Automatically In Excel?

Sep 5, 2012

I want to prepare a graph / chart for the column A and column B. Column A has headers and B has the data that I want to represent in the graphs. The real problem in this is that the two columns length is not fixed. For eg. for January Column A & B could have 5 rows of data but for February they could have 10 rows of data. I dont want to prepare the chart manually every month. I want that if we could apply any VBA coomands that could prepare the chart automatically irrespective of the rows count.

View 9 Replies View Related

VBA Macro To Create New Worksheet, Charts, Etc.

Oct 23, 2008

I need a macro to create the following worksheets and charts from an Excel data set:

Three (3) worksheets (already created manually in attached Excel file):

1. Chart Data.
(a) Column A in Chart Data is always numbered 1 - 600 (50 years x 12 mos/yr).
(b) Column I and column Y data sets (from Prod_Month) created in Chart Data. Each data set can be identified and collated with column F in Prod_Month (API) which is unique for each dataset.

2. Rate vs. Month - plot of Daily Gas (col. Y in Prod_Month) vs. Months (col. A in Chart Data).

3. Rate vs. Time - plot of Daily Gas (col. Y in Prod_Month) vs. Calender Time (col. B et. al. in Chart Data)

At a minimum, could someone help me create the Chart Data worksheet from the data in PROD_MONTH? Charting all the columns takes time from Chart Data but any data manipulation macro(s) help.

View 14 Replies View Related

Create Pie Charts And Save As Image?

Jan 29, 2013

Create an individual pie chart for each row of data (roughly 2000 rows in master list). Data to be charted contains 2 cells (Benefit and Salary). Once the chart is created I need to save the chart as an image (assuming it will need to go into Paint or another program?) Once the images are created and saved to a folder I can add the image link (file location) to a merge document data source. This way I will be able pull in the pie chart (now a picture) with a merge field during a mail merge.

Sample Data
Employee
Benefit
Salary

[Code]....

View 2 Replies View Related

Create Charts And Use Same Formatting For Colours

Apr 7, 2013

I normally create charts and use the same formatting for my colours i.e. Gradient fill with Shadow etc...

Now each time i create my charts i am having to keep do the formatting again and again and if i create a new spreadsheet with charts i have to do it all over again

Is there any way i can save this formatting colour so i can quickly apply to my chart series etc?

View 2 Replies View Related

Create Dymanic Charts Or Graphs

Jul 10, 2009

I'd like to put a spinner button on a chart that will change the x-axis date range. The data is in day/month/year format, but ideally I'd like to have the spinner button move in 1 year increments. The most recent date should always be present and changes should just impact how far back in history to go. I have basically no experience with vba coding, so please be as thorough and simple with your responses/solutions.

View 2 Replies View Related

Macro To Create Dynamic Charts

Dec 22, 2006

i want to create dynamic Excel Charts in one sheet ,The sheeet contain dynamic columns and rows and i want to create for each 4 columns a chart in a new sheet ,i started to try it in VBA and didnt founs the way to select 4 columns as a range, i succeseed to do it with msgboox that the user enter the range but i want to do it in a loop

View 9 Replies View Related

Create Charts/Based On ListBox Value

Jun 10, 2008

i am having a problem of updating my graphs in the application i devloped, my application is like this, go to sheet 1 click showuserform button and suer form contains combo and list box select the sheetname in the combo and select two values in the list and click plot.it plots the graphs acording to the selected values but my problem is it makes a newchart every time when we select a new week range it is getting stacked...it is not getting updated with the most recently plotted graph ??? i am facing this problem when i am opening my application in other computer...u can see my problem when u open my application. i am attaching my workbook and this is the code i used for making the chart

Sub MakeChart()
Dim rng1 As Range, rng2 As Range
Dim gs As String
gs = ComboBox1.Value
Application. ScreenUpdating = True
'First selected
For i = 0 To ListBox1.ListCount - 1
If ListBox1.Selected(i) Then
Set rng1 = Columns(1). Find(ListBox1.List(i))
Exit For
End If
Next
'Last selected
For i = ListBox1.ListCount - 1 To 1 Step -1..............................

View 4 Replies View Related

Excel 2013 :: Automatically Calculate Area Between Two Charts?

Dec 22, 2013

I have Excel 2013.

Find attached a sample fileDummy for area between.

charts.xlsx

View 3 Replies View Related

Loop Through Ranges To Create Multiple Charts?

Apr 2, 2014

I am having an issue with looping through data ranges. Below is a subset of my macro. What I require is for LegendRng to stay the same and DataRng to move after each loop.

However everytime the vba runs through a loop, the previous range is recorded i.e. the source data for the chart is "A1:D5" instead of "A1:D1, A5:D5").

[Code] .....

View 1 Replies View Related

Using Excel VBA To Create PowerPoint With 4 Charts In Each Slide

Aug 2, 2013

I am trying to write a macro that goes in an excel file that creates a powerpoint presentation, and puts four (4) charts in each slide.. I currently have a code that is pasting all of the charts in the same slide and I can't figure out why it isn't working (side note: I haven't attempted to resize or relocate the pictures on the powerpoint slides yet)..

Code:

'Add a reference to the Microsoft PowerPoint Library by:
'1. Go to Tools in the VBA menu
'2. Click on Reference
'3. Scroll down to Microsoft PowerPoint X.0 Object Library, check the box, and press Okay

'keep button in same location
Set btn = ActiveSheet.Shapes("CommandButton17")
With btn
btLeft = .Left
btTop = .Top
End With

[code]....

View 2 Replies View Related

VBA Macro Code To Create Multiple Charts

May 9, 2009

I need to create 63 charts from data which I have in two columns. I want to create multiple charts using one macro. For the first chart I want it to use cells K2:K80 as the x values, and M2:M80 as the y values. For the next chart I want it to use cells K81:K159 as the x values and M81:159 as the y values. For the next chart I want it to use cells K160:K238 as the x values and M160:M238 as the y values. I want to continue this, creating a chart for every 78 cells of data, all the way until the 63rd chart which uses K4900:K4978 as the x values and M4900:M4978 as the y values. I have created the following macro by " recording." This macro generates the first chart that I want:

Sub Macro5()
ActiveSheet.Shapes.AddChart.Select
ActiveChart.ChartType = xlXYScatterSmoothNoMarkers
ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(1).XValues = "=Sheet1!$K$2:$K$80"
ActiveChart.SeriesCollection(1).Values = "=Sheet1!$M$2:$M$80"
ActiveChart.ChartType = xlXYScatterSmoothNoMarkers
ActiveWindow.SmallScroll Down:=-3
End Sub

How can I alter this macro to create all 63 charts?. It seems like there is an easy way to do this, but I don't use macros very much (at all).

View 2 Replies View Related

VBA To Create Charts/Graphs From Non Continuous Ranges

Aug 12, 2008

I have an excel sheet populated with loads of values. There is a space between each set of data. I need to draw a graph for each section and i cant work out how to do it. I have attached the sheet in question. The gap between each column has "space" written on row, which is needed to prevent it being deleted. The drawing of the graphs needs to be automated as there is going to be 100's of sheets containg lots of data. The column size of each section can change so it needs to be dynamic. I have attached an example sheet

View 5 Replies View Related







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