Creating Frequency Distribution Chart From Large Dataset - VBA?

Dec 16, 2013

I have a table that can at any point have from a couple hundred up to a couple thousand rows. Within this table lies a column entitled " Offer ". I want to plot the figures in the offer column as a frequency distribution chart.

I plan to do this by listing the x-values (Offer figures), and then using count if formulas to calculate the frequency of that x-value. Then using a simple clustsered column chart to create the visualisation of the frequency distribution.

My question is.... in my large data set, is there any way to get VBA to insert a list of the range of figures in the Offer Column, ? I can figure out how to copy down the countif formula to populate the corresponding frequency column, but how can I have some VBA to dynamically adjust my x-values (offer figures)?

For example... say in the first data set I have

Offer, Frequency
1 10
2 20
3 25
4 20
5 15

that's fine if I make the chart, but what if the data set changes, I want VBA to give me a list of all the offer values, and then I can write some code to insert and copy down along the frequency column the countif formula.

The ultimate goal is to have a frequency chart that will be synced to the self-updating dataset.

View 1 Replies


ADVERTISEMENT

Creating Specific List From Large Dataset?

Jan 2, 2014

We collect loan payments for 36 months from customers.

Column A lists 1000+ customers.

Column J lists the date we received payment 1 ... Column Q lists the amount we received on payment 1.

Column R lists the date we received payment 2 ... Column Y lists the amount we received on payment 2.

Column Z lists the date we received payment 3 ... Column AG lists the amount we received on payment 3.

This repeats for all 36 payments.

New customers are loaded in each month, so be aware that Column J, Column R, Column Z (and so on) have dates from 2011 and 2012 and 2013.

We'd like to create a list of all customers that have not made a payment for the current month as of a certain day (say the 12th). So this month, on January 12th, we'd like to search our data for all customers that don't have a payment listed between January 1st - January 12th.

View 14 Replies View Related

CountIf: Frequency Distribution Of The Yields Column

Feb 2, 2010

I'm working on has me making a frequency distribution of the yields column. If you look at M6 on the spreadsheet i'm trying to use the formula:

=COUNTIF($I$6:$I$35, "<=L6")

to represent all yields that are less than or equal to 0, in the next box (M7) I want to represent all yields that are greater than 0% and less than or equal to 1%. etc until I reach 7%, however the original formula isn't working and I don't know whats wrong with it.

View 4 Replies View Related

Randomly Select From Alphabet Based On Letter Frequency Distribution

Jan 8, 2008

I want to randomly select letters from this distribution (to make random words) but I want the more frequent letters in the distribution to be selected more often so that the word I form have the same distribution. I have the feeling there is a simple solution to this but I couldn't see anything other than the frequency function that I thought I might be able to use. I could populate an array with letters present in numbers according to their frequency and then randomly select from it but is there a more elegant solution? .......

View 10 Replies View Related

Using PRODUCT For Large Dataset

Jan 6, 2014

I have a set of 5,800+ data points between 0 and 1 that I would like to multiply together. When I use PRODUCT for the whole set, the formula returns 0. However, I can use a smaller subset of the data to return a very small number. I'm curious if Excel has a closest-number-to-0 or number-of-cells-for-PRODUCT limitation. Is there another way to perform this calculation?

View 4 Replies View Related

Frequency In Large Data Tables

Nov 11, 2009

I need to find the most frequent number for each name in a large datatable, eg. Name1=12.

ColumnA / ColumnB
Name1 / 12
Name1 / 11
Name1 / 12
Name2 / 100
Name2 / 105
Name2 / 105
Name2 / 98
Name3 / 14
Name3 / 14
Name3 / 2
NameX / ..

Since Pivot tabels cant do the trick as far as I know, i'm clueless of how to proceed.

View 10 Replies View Related

Pulling Nth Date From Large Dataset?

Mar 29, 2013

we use # of days per disbursement as a performance measure to ensure that we are providing out grantees with the appropriate amount of service. I keep a tracking chart that I manage with overseas partners that use these dates to prioritize the 30+ grantees in their portfolio at any given time. It would be great if this # of days to disbursement #1, disbursement #2, etc could automatically pull to show them who they have neglected.

"Sheet 1" = Overview sheet to see general information (where I'm trying to pull to)

"Sheet 2" = table to track information as the disbursements or other actions are processed per grant

Column A (on both sheets) gives the grant reference

Column B (data entry sheet) gives the date the payment was sent

When I do =SMALL(('Sheet2'!B:B),2), I get the 2nd smallest in the whole sheet, but then when I try to make an IF function to tie it to the specific grant...

=IF('Sheet2'!A:A,A2,SMALL(('Sheet2'!B:B),2)) --> this gives me a 1905 date

I've tried a bunch of different formulas and tried reformatting the dates... but I'm having very little success...

View 12 Replies View Related

How To Transpose Large Dataset With Many Worksheets

Apr 3, 2013

I have a problem and I can't figure out how to do this, I have tried using both macros and functions (INDEX for example). The problem is as follows, I have a dataset of 27 worksheets, each worksheet has between 30k and 60k of rows and 25 columns. They are set up as follows:

------------------1990 1991 1992 etc.

Firm_A-Variable_1
Firm_A-Variable_2
|
|
|
Firm_B-Variable_1
Firm_B-Variable_2
|
|
|
etc.

Now what I am looking for is an easy way to transpose the data, I would like to have it looked as follows:

-------------Variable_1 Variable_2 Variable_3
Firm_A 1990
Firm_A 1991
Firm_A 1992
|
|
|- ---- 2012
Firm_B 1990
Firm_B 1991
Firm_B 1992
|
|
| ------2012
etc.

It is basically impossible to do this by hand, each of the 27 worksheet has between the 3000 and 6000 firms and each firm has 57 variables (these are identical for all firms). Also the the firm names and the variable names are in the same column, these should be seperated as well (they are connected with a hyphen).

View 1 Replies View Related

Calculate Variance Across Large Dataset?

Nov 25, 2013

I am looking to calculate variance across a large data set and would like to know if a macro is possible to calculate for a specific unique cell ID. East, Central, or West and calculate variance across that region.

For instance, in my data set if I have something similar to below. How would I calculate variance in the different regions? Is it possible to automate this process? Also could the Analysis ToolPAk be used instead or in conjunction?

OrderDate
Region
Rep
Item

[Code]....

View 4 Replies View Related

SUBSTITUTE With Conditions - Large Dataset

Jun 16, 2014

I have the following structure in values found within a large dataset

6A-6200 A
6A-6156-A

I used =SUBSTITUTE(CELL," ","") to remove the space in the first value: Works fine

I am trying to remove the 2nd occurence of the - in the second value: Desired Result 6A-6156A

And how I may be able to complete both within one formula.

View 3 Replies View Related

Pulling Info From Large Dataset Using Formulas

Jul 12, 2014

I am accustomed to using filters to find a lot of my information in large datasets.

However, now I am trying to use formulas to return specific values. For simplicity's sake, I have included a sample below with a couple types of scenarios I am looking to solve through the use of formulas. Would this involve sub-arrays perhaps?

sabinfire1.xlsx
Excel questions.docx

View 5 Replies View Related

Large Dataset - COUNTIFS On Blocks Of Text

Nov 3, 2011

I have a large dataset. under the heading Theme there are blocks of text, ie not single words. i have created a simplified version below

Sample table:

StateThemeVictoriatradeNew South Walestrade, ownershipNew South WalestradeVictoriaownership,
test textVictoriatest text, tradeVictoriatrade, ownershipVictoriaownership, trade

I want to count, for example the number of times the words 'ownership' OR 'trade' appear for Victoria.

The formula i am using is doubling up on the last 2 entries.

This is what I have:

=SUM(COUNTIFS(A2:A8,{"Victoria"},B2:B8, {"*ownership*";"*trade*"}))

View 9 Replies View Related

Macro To Filter Out Information In Large Dataset?

Feb 9, 2012

I have a large itemised call bill that i need to do some regular analysis on and wondered if I could automate most of it.

In column C is a list of mobile numbers, in column F the numbers they called (this is an itemised bill so each line represents one call, meaning each number has multiple rows) finally in column K is the cost of each call.

I want the macro to look through column F (number called) and if there are less than 5 instances of that number that are under 0.30 each in cost to be deleted.

Example: if in column F the number 07500 100100 appeared once with a cost of 0.29 I want it deleted but if it appears 6 times with an accumulated cost of 3.50 i.e. more than 0.30 per call averaged out, then i want it to remain on the sheet

View 3 Replies View Related

Overlay Two Bar Charts Together / Large Dataset For X Axis

Feb 19, 2013

I have the following two bar charts. (see links below). I would like to overlay both these bar charts together and obtain the chart shown in link 3.

For example, at 4.4 GHz and 1.8m antenna, two values (downtime/year) are possible 15 min or 557min. This is represented in the third figure Since the first chart contains small values and the second chart contains large values for the x-axis, will I able to change this to log scale for ease of analysis?

[URL]

View 1 Replies View Related

Overflow Error While Looping Through Large Dataset?

Jan 29, 2014

The code below works fine on smaller data sets. I tried it on a data set of over 165000 records and it gives me the error:

"Runtime Error '6': Overflow"

Clicking debug highlights this line:

rowCount = .DataBodyRange.rows.Count

Code:
Sub Fixtable()
Dim lo As Excel.ListObject
Dim loRow As Excel.ListRow

[Code]....

View 4 Replies View Related

Excel Formula Retrieving Data From Very Large Dataset

Jan 17, 2013

I've been unsuccessful in trying to write a formula that retrieves a single result based on two criteria (from a large set of data on a separate worksheet). I've tried various INDEX MATCH combinations but no luck.

A
B
C
D
E

1
DATE
TEAM
PITCHERS
RESULT

2
4/1
nyy
Sabathia
???????

[Code] ........

So this is a very simplified version of my real data set which is about 20 times this size. The first worksheet is where I want to store my retrieved results (lets say D2 for example). I want to retrieve data from the second worksheet that matches two criteria (exactly) originating from my first worksheet. The two criteria to be matched from the first worksheet are, for example, A1 (sabathia) and F2 (the date 4/8). The complicated part is the desired result should be from the corresponding K/9 column in the second sheet, which in this case (based on sabathia and 4/8 criteria) is I2 (result would be 3). It's complicated since I can't just tell the formula to look down a specific K/9 column, I need to search ALL the K/9 columns in the sheet (of which there are many). Is this even possible with some sort of nested INDEX MATCH? Any possibilities outside of VBA programming, or is that the only way?

View 8 Replies View Related

Pivot Table To Count Unique Items In Large Dataset

Oct 15, 2012

I'm trying to count how many production orders i have per week. However, there are duplicated production orders per week. I only want to count how many unique orders there are for each week. I only see the ability to "Count", which counts my duplicates as well so it over inflates my true quantity.

View 3 Replies View Related

Normal Distribution Chart For Set Of Data

Feb 22, 2014

How to crate a chart for normal distribution for a set of datas. say marks of students/ number of students in a class

View 1 Replies View Related

Frequency Table/ Bar Chart

Jun 29, 2007

how to make a frequency table and a bar chart for 6 different branches of industries. These categories have numbers (1 for branche A and 2 for Brance B and so on) I tried Tools > Data analysis > Histogram yet. But then the categories are displayed as numerators. I just want to show how many companies there are in Branche A, Branche B, etc. I tried to change the categories into text, but it wont make a difference. I will include the file.

View 3 Replies View Related

Conditional Chart With Frequency

Mar 11, 2008

I have four columns in my worksheet. In column C, I need to find the no. of times word "Alarm" is occuring. Further, with each "Alarm" entry in col C, there is a alarm type given in column D. I need to find the no. of alarms for each type and then display a bar chart for the alarm type vs. frequency of its occurence.

View 2 Replies View Related

Interval Distribution Plot Chart/Graph From Selected Row

May 9, 2008

I have several worksheets with thousands rows (independent variables) and hundreds columns (all dependent variables). Each line basically gives me hundreds values for each independent variable - see below:
...
C9 39.65 653.95 5.28 163.56 99.56 14.49 ... ...
E9 7535.92 21500.56 2835.88 3122.98 7225.34 5371.25 ... ...
G9 111568 298021 12940 31645 181797 36996 ... ....
...

I need to know how the values in each row are distributed, and I ideally plot a 2D column graph of the distribution. Is there a way to do that and create/program a macro (with relative button on the workboook) that does it automatically once clicked?

Very often there are outlying values (bigger or smaller by a factor of 1000 or even more), mistakes, which I would like to identify and fix possibly.

View 9 Replies View Related

Song Set List And Frequency Chart?

Sep 13, 2013

I have the desire to create a spreadsheet that will, in the end, allow me to see the frequency of certain songs I've seen by a certain band (the same band). trying to figure out the best approach in creating such a spread sheet.

What I want to do is provide the date of a concert, and all of the songs played at that specific concert. I have that info. There are 78 concerts that I need to input. However, it seems redundant for me to list, for example, "Song A" if it was played on "date X", and then list "song A" again if was played on "date Y". This is where I'm not sure what makes the most sense.

Would it be better to use the A-Z axis and provide the 78 dates of concerts, and use the numbered axis to list all of the songs that were seen/heard. Then I could put some sort of check mark in the cell that corresponds to the song and date?This way seems like more work than is necessary.

View 6 Replies View Related

Chart To Show Event Frequency

Aug 21, 2008

I have a chart with event timestamps (2008-06-09 14:48:15.973) and two event types (A and B) with about 12000 events in total. I want to show a chart (probably line chart) that plots the frequency of events on a time axis (e.g. very many event A last night, not so many today, etc). I figure two time series with A and B independently so user can compare visually. But I dont know how to efficiently convert the events into a counter/frequency of events variable/column.

Ive looked into DSUM, DCOUNT & FREQUENCY functions to make a new column that shows how many events have happened in the previous 10 minutes without success. DCOUNT/DSUM problem: some of the criteria fields are computed by formula (date column minus ten minutes).

View 9 Replies View Related

Creating List From Large Set Of Data?

Dec 3, 2013

I have a large list of in rows with multiple column headings: ie. Name, date, amount. I need to generate a separate list whereby the rows that correspond to a given criteria are extracted and listed sequentially.

I have attached a simple example to demonsrate what i mean.

in the attached spreadsheet, i have a column of colours, and a column of objects- RED book, BLUE hat, etc.

I'd like the criteria that i type in the green cell (a choice of colour), to generate a list of all the items that match that colour, and be displayed in the orange cells. So, if the green cell says BLUE, the list should pick out the BLUE dog, BLUE hat etc.

View 1 Replies View Related

Creating Spreadsheet With Large Amount Of Data?

Nov 11, 2013

I am creating a spread sheet with a large amount of data.

In column a I have a list of managers, in B I have a list of employees and C, I have a list of activities that have been recorded throughout the day.

What I want to do is create a list (on a new sheet) so in column A that would bring back all the managers. Then in column B, bring back the employee that is tied to the manager from column A and finally in column C, bring back the activity that is tied to the employee.

I know how I can do this by doing list validation with INDIRECT, but with the large amount of data that I have this would take forever in a day.

Is there an easier and quicker way to do this?

View 1 Replies View Related

Calculating Chart Values Over Large Ranges With Catagories

Nov 4, 2008

I am working on a custom log file for my company. It has 3 sheets and on each sheet is a service type column with drop downs and next to it an amount coumn. Every day that a service issue is requested someone goes in and chooses the service type from the drop down and enters the amount in USD. I want to add charts to the top of each sheet and on the axis i want to have service type and then the total amount spent on that catagory.

View 4 Replies View Related

Excel 2007 :: Locate A Chart In Large Spreadsheet?

Nov 16, 2011

I have inherited a series of Word reports containing links to charts in several Excel files. I can tell by the link in Word that one of the charts is named 'Chart 6'. Is there an easy way to locate which chart in the Excel file is 'Chart 6' (and on and on for all of the other charts linked in the Word doc)? There are upwards of 21 charts in each Excel file linked to each of the Word reports. I am using 2007 but the files are in 2003 format because of limitations of the program from which the data comes for the charts.

View 4 Replies View Related

Creating A VBA Chart

Jul 8, 2009

I have wriiten some simple code to create a chart which works fine. I have a problem applying formatting to my chart. I am using the With construct to apply the formatting, but the problem is that the chart name keeps on incrementing from "Chart 1" to Chart 23" etc. each time I run the chart and I get an error message before the With code?

View 2 Replies View Related

Creating A Chart ..

Apr 21, 2008

I have creating a chart. All the information in the source data appears to me to be ok but the chart isn't been displayed.

View 9 Replies View Related

Macro Creating Second Chart

Aug 8, 2006

I'm not too familiar with VB, and I'm trying to narrow down why my macro (and how) is creating a second, duplicate chart. I only need the chart to be created (and the corresponding data fields on the 3rd worksheet) once.

View 2 Replies View Related







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