Creating A Graph By Auto Selecting A Set Of Data
Nov 12, 2006
i have a set of data range from B1 to K10 (10 cells all together).
and i created a graph by selecting from B1 - K10.
what i want is, if i key in range from 1-10 in A1, the graph will change based on the number i keyed in (from 1-10).
if i keyed in 5 in A1, the graph will auto select B1 to F1 and show data from B1 toF1
then if i select 6 in A1, the graph will auto select B1 to G1 and show data from B1 to G1
View 9 Replies
ADVERTISEMENT
Jun 9, 2006
I have a graph that is showing the date on "Y" axis and a value on "X" axis, when I add a new date and value to my data the graph does not update, it just shows the data when I first created the graph.
How do I get the graph to display the new data I entered ?
I created a line graph by clicking on the "A" in column "A" (Thats where my date is) then clicking on the "B" in column "B" (Thats where my values are) and clicking the create graph button then clicked finished.
View 6 Replies
View Related
Jan 11, 2013
I'm trying to make a spreadsheet that can be used to easily build a collective list of steps, for a user to read and follow line-by-line.
I want a source sheet of "steps" that I can change over time, and the resulting tabs that reference the source sheet get updated/populated automatically.
I've pieced together some VBA code from other sources, which kind of does what I want it to:
VB:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Row > 1 And Target.Column = 1 Then
Dim SourceSheet As Worksheet
Set SourceSheet = ActiveWorkbook.Sheets("Steps")
Dim TargetSheet As Worksheet
Set TargetSheet = Target.Worksheet
Dim c As Integer
Dim Source As Range
[Code]...
But there are some problems:
1) The data auto-populates into a row. It would read better if each step was in the same column, meaning rows would need to be automatically added upon selecting something from the drop-down list. The number of rows that need to be added vary based on the number of steps in the source sheet, for the selection made from the drop-down list.
2) If you make a change to the source sheet, my goal is to have the other sheets referencing the source sheet's lists of steps update automatically, so you only need to update the steps in one spot and everything you've built from them gets updated instantly. Currently, you must select a different choice from the drop-down list, and then change it back, before it populates the "new" steps from the source sheet.
This is my first time using VBA.
What I have so far is attached: testAutoPopulate.xlsm
View 2 Replies
View Related
Feb 10, 2013
I want to create a graph as showed below.
Actual graph will contain a larger/longer X-axis (40 instead of 6 readings), but no more than 2 rows af data (A and B), of which one has a seqenced number af data (row B).
Row B alo has got singular points of data superimposed over the cylinders.
I have got all the numbers ready, but I don't know whether or not it is even possible to create a graph like this.
The cylinders have values up to 45.000 (accumulated in row B), the points (black dots) go from 2 to 6.
If so, I'm having trouble selecting the correct template out of the excel's standard list of graphs.
View 9 Replies
View Related
Jul 9, 2006
I have implemented a function in VBA which calculates certain values, called 'IndexSim.' These values are not required to be outputted into the spreadsheet, however I would like to create a simple line graph plot of these values against 1,2,....etc however many values are chosen to be created. The code is as follows:
'Create storage for FTSE100 and binary payoff simulations.
Redim IndexSim(1 To SampleSz) As Double
Redim Payoff(1 To SampleSz) As Double
'Do the simulations.
For Cnt = 1 To SampleSz
IndexSim(Cnt) = gBmProcess(Kt, r, q, Vol, TMat - TNow)
If IndexSim(Cnt) >= IndexBetValue Then
Payoff(Cnt) = Range("D18").Value
Else
Payoff(Cnt) = Range("D19").Value
End If
Next Cnt
how I can create a line graph for the 'IndexSim' values, which will update everytime the macro button is clicked.
View 4 Replies
View Related
Feb 13, 2009
Hi i have alot of values that i would like to display in a graph over time.
The problem is, is that there are many different times (irregular intervals) that the value is recorded during each day.
whenever i create a graph and choose the x-axis format as the date i get a spike at each day, which is no good!
value Date Date Time
0 22/12/2008 12:33:35 22/12/2008 12:33:35
0 22/12/2008 20:53:25 20:53:25
9 23/12/2008 00:48:48 23/12/2008 00:48:48 ....
View 9 Replies
View Related
Feb 13, 2012
We have a bunch of 8 digit Purchase Orders (POs) with end dates. We want to show all ten different PO's on a Line graph on the left with the end date at the bottom. Our issue seems to be that:
1. The graph doesn't show the exact PO #, but does a range. We need each PO number listed. How do we get the graph so show each individual PO on the left?
View 2 Replies
View Related
Aug 11, 2008
I want to add a button to a worksheet to allow a graph to be exported as an image. This seems to be a fairly common request, I have read some of the posts but cant get it to work. I am using Excel 2003 as that is all we have...
So, I have a simple button on 'sheet1' containing :
Sub CommandButton1_Click()
Worksheets("Sheet1").ChartObjects("Chart 1").Chart.Export Filename:="h: est.jpg", FilterName:="jpg"
End Sub
.. but it doesn't work. I get the error :
Run-time error '1004':
Application-defined or object-defined error
View 9 Replies
View Related
Dec 17, 2008
I have a spreadsheet that I'm trying to make a graph that shows the amount of letters mailed in a certain month.
The first line has 01/24/2008 as date received and 01/28/08 as date mailed. I'm trying to make a graph that shows the amount of letters received and mailed in each month. I know there are probably numerous ways to do this but I'm looking for the most effiecent and I would like to be able to update the same spreadsheet and have the graph update as I add information.
View 9 Replies
View Related
Oct 21, 2009
I am trying to create a line graph to show the trends (up or down) of I-Fund vs Gold. The trouble I am having is how to set the axis. The date one is an easy one, but the gold range is more or less 800-1000, and the I-Fund is 13-18. How can I have these both on the same graph to compare? I am attaching an Excel sheet as a reference. Obviously I need to delete the empty IFund cells.
View 2 Replies
View Related
Jul 24, 2014
What I have done is entered code to auto generate the date in column O whenever data is entered or altered in column A. Here is that code:
VB:
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then _
Target.Offset(0, 14).Value = Now
End If
End Sub
What I am trying to do now, is create a column that will take the information from O and do a sort of COUNTIF function that will count how many items of data were entered on a certain date by the day. For a clearer example, I want it to tell me how many items were entered/altered on 7/23. But I also want it to continuously calculate it for each date after that. Preferably automatically, but if a macro is needed I can create an update button.
Once it can achieve that I would like to create a dynamic graph that will automatically (or via macro button) update to show the last 5 days. It should display the date and how many items were entered that day.
I am using Office 2007.
View 1 Replies
View Related
Mar 2, 2014
I'd like to create a simple graph exactly like the one on the picture, but for the life of mehow to do this on Excel 2010.This is the data I have:
Seperation First target Second target
0 59.00% 0.00%
2 64.28% 40.62%
4 62.68% 48.99%
6 60.81% 65.83%
8 61.82% 70.21%
View 6 Replies
View Related
Jan 24, 2014
I am trying to do the following
Unit Percentage Score Unit 1 Percent ScoreJohny SmithBetty Donovan
Unit 1 Operations & Algebraic Thinking2100.00%50.00%
Unit 1 Measurement & Data3100.00%66.67%
Unit 1 Geometry0#DIV/0!#DIV/0!
Unit 1 Number & Operations Base Ten16100.00%93.75%
1-I would like to create a type of link or button that would exist in the cell "Johny Smith" so that when a teacher clicks on that name excel would generate a graph or pie chart for the specific data associated with Johny and when a teacher clicks on Betty a different graph would pop up. I know teachers can just highlight the data and insert charts, but many of them don't know how to do that. I have been asked to make the process a one click function.
View 1 Replies
View Related
Mar 10, 2014
Using VBA, I need to Select A1:C14.
The problem is that A1:C14 contains blank cells, and there is also an adjacent column D that I do not want to copy.
So, UsedRegion and CurrentRegion aren't doing it for me. (It selects Column D too.)
Obviously, this is an example...the real data set is an export and varies in size.
View 1 Replies
View Related
Aug 21, 2008
I have a Line Graph with 2 lines on it. Is it possible to write a macro to extend the range (Source range) of one of the lines ? I would also like to add a Data Label to the newly added point.
For e.g. If I have Line 1 graph only till 65, I want the macro to extend the range by one row to include 95 and also display a datalabel ......
View 9 Replies
View Related
Oct 31, 2006
after spending hours searching the forum, I begin to seriously doubt my ability to even formulate a suitable search question. My problem SHOULD be a known one, but I am unable to find any clues. Here we go:
I have made a pretty stright-forward forecasting model. It is used to calculate economics of a coal fuelled power plant (even though that shouldn't matter). The outcome is, among other things, a single number for Profit / MWh in Euros. There are several input data, such as fuel price, price for CO2 emission rights, operational expenditure, capex, etc.
My idea, then, is to lock all in-data parameters except ONE, then let this variable vary incrementally and then produce a new small table with a) the variable data (example: price for CO2 rights ranging from 10 to 50 Euro in 2 euro steps), and b) the resulting net profit in each case. Ideally, I wish to be able to chose which indata to lock and which to vary, i.e. solution need to have certain flexibility.
NB: The calculations are not that simple, i.e. I cannot use a simple formula - I need to use the exising output cell(s) to feed data.
How do I do this?
The outcome should be basically two rows with a suitable number of columns (or the other way around, two columns in X number of rows). The table will then be used to produce illustrative graphs.
I guess I could hard code a table by simply enter data, but heck, that's not the way to use Excel!
View 9 Replies
View Related
May 27, 2014
I am trying to make a line graph showing the gradual rises and falls in profit over a period of time, when I use the data and click line graph normally, it will plot each bit of data individually rather than gradually, for example;
13-Sep-13GBP 1,107.57
18-Sep-13GBP 6,432.74
21-Sep-13-GBP 477.71
22-Sep-13GBP 19,664.65
23-Sep-13GBP 1,604.88
If I tried to plot the above data, the graph will not show a gradual rise but instead will show a value of £1604.88 on the 23rd of September when instead I would want the chart line to be at £29,287.55 (The total).
View 5 Replies
View Related
Jun 30, 2014
I was wondering if excel can auto label peaks and bottoms of a graph? Let me go further:
I have a graph that has one data number for every day of the year (365). This is a natural up and down curve, similar to a stock.
Can excel find the key high and low points? I have attached an example. In it you will see I have quickly labeled the key tops and bottoms. CHART TEST.xlsxCHART TEST.xlsx.
I basically omitted the peaks/bottoms that are very short term and irrelevant.
View 2 Replies
View Related
Apr 4, 2014
I need a formula that allows me to autofill a cell with "X" kind of data after I choose a validated data of Cell A1;
View 6 Replies
View Related
Oct 30, 2008
I have a worksheet with a Drop Down list (Set up with Data Validation).
All I want to do is a call a procedure when a particular option is selected from the list, without have to run the macro manually.
View 7 Replies
View Related
Aug 20, 2014
I'm trying to create an auto fill pattern to match B4-M4 then repeat with B5-M5 and continue to 350.
So for example, I'd like to manually enter "B4,C4,D4,E4,F4,G4,H4,I4,J4,K4,L4,M4,B5,C5,D5,E5,F5,G5,H5,I5,J5,K5,L5,M5" into column A and drag the auto fill box down until I've repeated the pattern to match all the way to M350.
Is this possible? I tried just entering the pattern as I've posted and dragging the auto fill down, but it doesn't fill the numbers properly and ends up with a strange pattern.
View 5 Replies
View Related
Nov 8, 2007
Is there a way to auto name sheets within a workbook by creating a list. or by a different way.
Each list will have a person name.
View 11 Replies
View Related
Jun 17, 2009
I have tried to create a macro using the record function to copy and paste the user name from Tools/Options/General. The problem is that the macro does not record the copy function and reads like this
View 2 Replies
View Related
Dec 6, 2006
I have created a list in a Microsoft Excel Workbook (names and corresponding numbers) and named the list.
Then, I created a drop-down menu through Data/Validate/List that included the names.
I can look the names up in the drop-down box, but I would like to be able to type a few letters and Excel auto complete the rest of the name. For instance I would type Ja...and James Doe would come up with the mes Doe in black (highlighted).
Is there a way to do this in Excel?
View 9 Replies
View Related
Dec 30, 2009
I am playing around with creating a calendar based on a date (month) I enter into a cell. I am doing this with a simple =date+1.
I have a sample attached. Only problem I am having is that for months with 30 days I don't want the last day to show the first of the next month. But I can't simply remove that as if I entered a month with 31 days I would need it to show the 31st.
View 4 Replies
View Related
Oct 9, 2013
I am trying to create a spreadsheet that uses a selection criteria based on different sheets within a workbook to output a costing quote, anything i can use as a template? I will post the sheet that i am working on that I need to combine into a working book.
View 2 Replies
View Related
Jan 13, 2014
I'm been trying to create a timesheet that will auto calculate the hours of normal / overtime 1 / overtime 2
Rules:
Saturday / Sunday / Public Holiday = Overtime 2
Monday to Friday (8:30 till 17:30) = Normal (Auto
Monday to Friday (17:30 till 22:00) = Overtime 1
Monday to Friday (22:00 till 8:30) = Overtime 2
* If Public Holiday column is set to 1 then all hours will auto set to overtime 2
* If Breaktime column is > 0 then deduct from total hours calculate
Sample:
Name
Date / Day
Public Holiday
Start time
End time
Breaktime
Normal hour(s)
Overtime 1
Overtime 2
[code]....
View 1 Replies
View Related
Jan 7, 2008
Within a data validation selection, are you able to do both Auto Complete and Auto Delete? I have this posted at another forum [url]but have not been able to find a solution (a copy of the file, test. zip is there as well). I am not sure it is possible, or, at least I have been unable to get it working. I can do each, but not both.
I have also been utilizing:
[url]
[url]
View 5 Replies
View Related
Sep 27, 2011
I am trying to create a line graph that will incorporate multiple columns of data in one series of data. The reason I do not place all of the data in one column is because it could exceed the maximum amount of rows allowed in excel. Also I need the data split up for viewing purposes.
I can easily just graph one column but how do I combine all the columns into one line graph with the data being in separate columns. Basically all the columns will be my Y values and X values are just 1:n.
Example Below:
Column AColumn B Column C159261037114812
Now in the example all of the values are x values.
View 2 Replies
View Related
Mar 21, 2014
I would like to make a scatter graph that will graph the attached. The score would be on the Y axis and the birth date would be on the X axis. This is simple to do by itself but what I would like to do in addition to this is to have the top 25% of the scores a single color, the middle 50% of the scores a second color and then the bottom 25% of the scores to be a third color. And if it is possible to have the ID visible when you move your cursor over a given dot in the graph. Currently when I make a scatter graph the X,Y coordinates show when I hoover the cursor over a dot.
View 7 Replies
View Related