Distribution Functions; Know The Each Number's Rank Within The Range
May 16, 2006
I don't know anything about the distribution functions, but I have a range of numbers and I need to know each number's rank within the range. I believe that's related to distribution, so if someone could tell me how to go about calculating that (with or without those particular functions)
I have a sales ladder which ranks my people by the % difference between budget and sales to date, but not everyone has made a sale yet and the % difference is zero for 6 people. These 6 people all have a rank of 75. Where this happens, I want to then rank only those 6 people, based on their budget figure.
My current formula reads: =IF(F83=0,75,RANK($G83,$G$9:$G$83,0)) where F is the sales value and G is the % difference. Budget figures are in column D.
in VBA the RND function generates a random number using uniform distribution (every number is as likely as any other). Is there a function to generate a random number using normal distribution where the numbers closest to the mean are more likely to occure then numbers further away from the mean. I've created the following custom function to generate a random number between two given values using uniform distribution.
Function RandNum(Min As Double, Max As Double) As Double RandNum = (Max - Min) * Rnd + Min End Function
I am in need of a formula to calculate the even distribution of values between two set values over a set number of columns. For example take a look at the attached screenshot. I have the numbers 2.88 and 2.44 and I need to fill in the empty cells between the two with with an even distribution of numbers in between the two (in descending order) over the 8 columns Screen-shot-2014-02-16-at-3.33.08-PM.jpg
I've managed to write a random number generator that produces multiple sets with no repeating numbers per a set.
Now, to step it up a notch, I'm trying to create an even distribution of the numbers generated which is where I could use a hand. Here's my current code:
Code: Option Base 1 Sub RandomNumberStrings() Dim rndno As String, strg As String, msg1 As String Dim r1() As String, r2() As String
[Code]....
Equaling 500 numbers generated as intended, but my target is to get every number with an equal frequency.
how to go about generating random numbers based on Weibull distribution in VBA? I had a rough idea for Normal (from link below) which i later extended to Lognormal but am having difficulty with Weibull and Gamma will appreciate any help.
i would like to rank a column so that when entering a number in a cell it will move up the column so that the greater number falls down the colum and the larger rises up the column
i want is a formula (hoping note to have to code this) that will show which order these couriers should be ranked in by looking at the range of averages. So courier2(100) would be ranked 1st, courier 4(99.7) would be ranked 2nd etc. the end table will look something like.
I am looking to have the items in column K 1 through 16 listed from highest to lowest and at the same time post the corresponding number from column J 1 through 16.
So that it reads as follows:
04 - 18 - 06 02 - 17 - 06 08 - 10 - 03
Item 04 has 18 points and is listed in 6 columns etc.
I have three columns in one Sheet (Sheet 1). The Columns are: "A" - Student Name; "B" - Start Date; "C" - No. of Courses; "D" - ID Number. The columns contains student data for 50 kids all in random order.
On a different Sheet (Sheet 2), I want to list the Student Names (Column "A" of Sheet 1) of the Top 5 students, according to their Start Dates (Column "B" of Sheet 1) latest to earliest. If two students start in the same date, I want to rank them according to the No. of Courses (Column "C" of Sheet 1) for the duplicates (large to small), and then by the Start Dates for the rest of the student. And if the Start Date and the No. of Courses for two students are the same, I want to rank them according to the ID Number (Column "D" of Sheet 1) for the duplicates (Small to large), then by the Start Dates and finally by the No. of Courses for the rest.
In addition, Sheet 1 has other information in corresponding cells stretching up to Column "J". When the Top 5 rankings will be made in Sheet 2, data points for the students shall automatically be pulled from Sheet 1 and inserted in corresponding columns within Sheet 2.
I understand its a very complicated problem. I challenge is exacerbated by the fact that I cannot use the sort function. And If the data is changed in Sheet 1, the Top 5 rankings will automatically update with the new information in Sheet 2. In addition, I am not to use VBA and have to complete the project using regular Excel functions.
Without sorting the original field, I am attempting to compare the values in column 1 and then assign a "place" value in column 2 ( cell) next to each value compared starting with 1 (least value) thru n ....until all values have been compared.
I am trying to somehow use multiple IF functions. I was able to use one IF function to disply '--' in a cell if a particular formula = 0. However I ran into a problem when negative values were displayed. I wanted the value to be a positive number. I thought I could use another IF function to multiply the formulas contents by -1 if it were <0, but I keep getting a #VALUE error in my cells. Is there a way I can have multiple conditions?
I've got some data formatted by column in the worksheet that I'd like to pass into the function and have it return something from an array. This is essentially a replacement for vlookup, but easier considering the volumn of data I've got. Take something like this...
Column N will have integers (0 through 20)
I want to pass contiguous parts of N into the function and have it return the corresponding sum of values from the respective positions in an array I defined locally. Here is the function:
My excel (2003) is stuck in array mode - is there any way to get it out of Array Mode and put it back in the letter:number display for formulas/functions? It's doing this in VBA too which is totally killing me.
Is there a way to SET a RANGE that can be used for further editing without the need to specify the range each time for each function to be perfomed? I have a pile of Data, with a Calendar date and 4 columns of data for each date.
I want to make a summary for each year separately of one column of data (Total PL). How can I set a condtion that it will output a summary of data for a given year, e.g. 1990?
Even more useful might be setting up a table for each year, where I will be able to perform easy function like SUM, MAX, MIN but it will use data only from the specific Year in each row. - Is there a way to make it simpler, but not having to specify the RANGE for each Year for each Function?
I have a problem using a named range as an arg to worksheet functions.
First, I create 2 end point names for the range, myStart, myEnd. Then I create a named range myRange = myStart:myEnd
This formula in a cell works: SUM(myRange) This formula doesn't: COUNT(myRange) . It crashes Excel, requests Restart. But these work: COUNT(myStart:myEnd) and SUM(myStart:myEnd)
Why does SUM work for either set of args, but COUNT only works for one set?
I have three columns of data in columns A,B,C - there are formulas in these columns that either produce a numeric value or return blank.
I have created Dynamic Named Ranges for each of them and have entered the following formula: =OFFSET(Working!$A$1,1,0,MATCH(1E+305,Working!$A:$A,1))
My issue is that this formula is looking one row past the last numeric entry in the column (a blank) which is leaving a blank space when I graph this data.
I have a range of cells (say A1:D8). I wanna find the address (say $B$2) of the minimum value in that range.
This command does it but it only works on a column. it does not accept a range spanning more than one column. =CELL("address",INDEX(B2:B7,MATCH(MIN(B2:B7),B2:B7,0))) this will tell me the address of the minimum value.. but in a column... I need a range of many columns.
So I tried converting things to a Table.. but it never worked. basically the MATCH command is my problem. It only accepts single-column-ed ranges.
I want to be able to rank players only if they meet or exceed a specific number of rounds. I have been able to get close but I would like to have the ranking start at "1" instead of "0" (see sheet).
I need to calculate a Stdev and Average based on a specific range. However, my range is not constant in the time. For instance, today I may need to calculate these functions based on 30 numbers, but tomorrow on 25 or 15 or 50...
Is there a way to automate this process by changing the number of data points to include in the range in one single cell and avoid manually adjusting the range in accordance with needed data points?
In other words, I would like to change the value, let's say in Cell A1 from 30 to 50 and then Excel would re-calculate the StDev and Average based on 50 data points and not 30. Is that possible?