Generate Choices With Assigned Probability?
Nov 10, 2013
Lets say I have 20 cells. I want to randomly assign a label to the each cell from 5 choices, like "Blue", "Orange", "White", "Green", and "Black". But I want to assign a probability of selecting the labels. So the percent probability of choosing Blue would be 56% and White would be 23%, etc. . . is there a function that allows me to do this?
View 5 Replies
ADVERTISEMENT
Jun 3, 2006
I have two data sets one measured and one modelled and I am testing a conceptual model that proposes that only where the tails of the probability distributions of each data set crosses will you experience an event. I'm enclosing an example file which contains both data sets and some descriptive statistics as well as the associated histograms and a diagram of what I'm ultimately trying to achieve. My question is how I go from the data sets I have with such a large discrepancy between them to plotting their probability distributions?
View 5 Replies
View Related
Jun 10, 2014
I have a little trouble with my macros. I wrote several different macros, each for a special purpose. Then I created some Buttons, which would make it easy for others to work with them.
But I have now experienced several times, that my buttons don't keep their assigned macro.
View 5 Replies
View Related
Apr 11, 2007
This is more of a probability question than Excel - but I know Excel has functions to work out the answer (and I was hopeless with probability maths at school so knowing which function to use is also a problem)
Here's the deal:
There are 43,000 tickets in a multiple draw lottery/raffle
There are 1,730 prizes available.
Each winning ticket is returned to the pool after being drawn, so in theory, one extremely lucky ticket holder could take home every prize.
However, what is the statistical probability (chance) of winning a single prize and what formulae/functions does one use to generate the answer?
View 9 Replies
View Related
Nov 27, 2006
There is trading system which generates a winning trade per ONE stock in ONE month’s time with a probability of 5/12 (0,4166%). If the system trades 10 independent stocks the probability of any number of winning trades occurring out of all of them in ONE month is shown below:
None 0,0046
One 0,0326
Two 0,1047
Three 0,1995
Four 0,2494
Five 0,2172
Six 0,1272
Seven 0,0519
Eight 0,0139
Nine 0,0022
Ten 0,0002
I took these values from a book…I tried to reproduce these values in the spreadsheet that I attached. My table looks as follows:
0 0,0046
1 0,0033
2 0,0023
3 0,0017
4 0,0012
5 0,0008
6 0,0006..........
View 2 Replies
View Related
Jun 3, 2014
I want to know if it's possible to calculate the probability that a certain range of values, reach to a certain point.....
The range is this (example):
4
3
9
7
14
22
15
20
42
46.....
What I want to know is if this tendency will reach to 1000. Or how many steps more will be need to reach 1000.
Like I said, and don't know if this is in the right place, but if you put this values in a graphic you will see that the tendency is growing. I assume that this tendency will reach to 1000. But will be in the next 10 steps or in the next 30.
View 3 Replies
View Related
May 5, 2014
=NORM.DIST(-0.7525,0,1,FALSE)=0.30057
I want to do inverse 0.30057 To get -0.7525 ,NORM.INV(0.30057,0,1) This function returns only cumulative distribution .
View 3 Replies
View Related
May 11, 2014
I'm trying to make a bell curve (normal gauss distribution). I have some problems regarding the probability density curve, since its values are so low. If you look column N in the attached file - I used the NORMDIST command. Values should be somewhere between 0,2 and 0,4 - but they're about 100x lower.
View 2 Replies
View Related
Dec 4, 2006
I need a probability distribution for amounts to be shipped taking into account both the probabilty distribution on parcel sizes (amounts to be shipped) per ship as well as the probabilities on the number of ships arriving.
Please see the following:
Say you have a probabilty distribution for ships arriving, i.e. the probabilty of 1 ship arriving in a specific time period= 0.25 ( event a), the probabilty of 2 ships arriving = 0.2 (event B) etc. Please take into account that this can go up to about 20 ships per time period.
Each ship can have one of four parcel sizes, (demand that needs to be met) (the following are just example probabilties)
0 tons with a probability of 0.67 event 1
1000 tons with a probabilty of 0.08 event 2
1500 tons with a probabilty of 0.222 event 3
2000 tons with a probabilty of 0.022 event 4
Thus event a has a probabilty of occuring, in event a, events 1to 4 can occur with their respective probabilties.
I assumed events 1 to 4 stay the same for all ships arriving (as we are dealing with multiple products, each product will have different parcel size distributions, however I look at products seperately, thus only one product is considered here)
This is simple for 1 or 2 ships, but as the number of ships increase the number of combinations become excessively large.
Should i use a macro that determines permutations/combinations? I am kind of clueless on this one.
If it helps to put the problem in context; I am trying to determine a demand distribution as input for a stochastic programming model
View 7 Replies
View Related
Feb 10, 2009
Can anyone help, I'm trying to create some test data, eg 1000 rows in excel. In each cell a formula (?) returns some text such as Dog, Cat or Rabbit based on the probability Dog=0.5, Cat=0.3, Rabbit=0.2
I've come up with a messy solution of generating a random number between 1-100 and then using a lookup table where 1-50 = dog etc... it works but is long winded and difficult for other people to follow.
View 6 Replies
View Related
Mar 8, 2007
1. I need to randomly generate either a 1, 6 or 12 every time I hit calculate (i.e. F9).
2. I want to specify the probablility of each result. For example, I want 12 to be the result 80% of the time, and 6 and 1 to be the result 10% of the time.
View 9 Replies
View Related
Dec 24, 2009
I have the following table:
http://img85.imageshack.us/i/tableb.jpg/
Each question is multiple choice (either A/B/C/D/E) and the values listed are the probability of each letter occurring. What formula would I need to put in the 'output' column for it in each row to output a letter based on the probabilities. E.g. in question 1, most of the time it would output E, but sometimes (rarely) A and very rarely B/C/D.
View 9 Replies
View Related
Jul 24, 2007
I'm trying to find a way to make the user select only one of five columns in a row. What I’m trying to get is a ranking of 1 to 5. The user will click a cell and it will fill in or the user puts an X in it. In row 8 I want to select A through E but only one of them. If the user changes their mind and clicks another cell, the first cell clears.
View 9 Replies
View Related
Jun 18, 2014
I am trying to assign rooms to tenants. I would like to set up a function that reads a tenant's top 5 choices for a room, and looks up a column to see if the choice has already been selected before moving to the next choice. Then if all 5 choices have already been selected, the cell reads error.
This is how it would look : Excel Pic.jpg
View 3 Replies
View Related
Apr 24, 2007
I am trying to calculate phone call rates based on several different conditions. *if my phone call has a "DESCRIPTION" of "Local" then I want to add 2 cents onto the "COST" *if my phone call has a DESCRIPTION of "Mobile" then I want to use the formula = SUM(G7*24*60)*0.4+0.1 to calculate the charges *if my phone call has a "DESCRIPTION" of "13 Number" then I want to add 5 cents onto the "COST" I am able to use a formula that allows 2 condition but I have been unable to work out a formula where I can add more conditions.
I have attached a spreadsheet
View 2 Replies
View Related
Jan 23, 2008
When I try to insert an 'option' box in which either a check box or radio button are used, only one option can be used. For each option I have to create a new option. But then, each option can be selected, which defeats my purpose. I want to create an option box where there are two option in the box, but the user can only select one of the options, not both, or neither.
View 2 Replies
View Related
Jan 24, 2008
There is any way to select two item one from listbox1 and anotherr from listbox2 and paste on sheet
View 9 Replies
View Related
Dec 10, 2007
When I Copy My Excel Document I Find This:
In My New Document The Custom Toolbar Is Likning The Functions (macros) To My Old Workbook In My Other ( The One I Copied From) Document.
Can I Make The File Path Of The Macros Change With The File Path Of The Document.
Or Embed The Macros To The Sheet
View 6 Replies
View Related
Apr 29, 2008
I created a name with the code
ActiveWorkbook.Names.Add "ChartNo", 0, True
I got an "error 428 object required"
with the next line :
[ChartNo] = 1
View 7 Replies
View Related
Apr 4, 2013
I am working on a grading sheet for our company. I would like users to choose from an option button choice (A, B, C, D, F) for each grading category and I would like to write that to a sheet that corresponds with the graded person. The form will have next and previous buttons to move through the grading process - when previous is chosen I would like the option buttons to populate what was stored in the data sheet. I think I can mottle thru the code individually but with 60 option buttons it may take quite some time.
Can I call an option button choice by "Group"? I started coding individually, but it will take a lot of code - surely there is a more efficient answer. A picture of my form is attached at the bottom of this post.
VB:
Private Sub OptionButton1_Click()Dim Grade As String
If Me.OptionButton1 = "A" Then
Grade = "A"
Else
Grade = ""
End If
untitled.jpg
View 9 Replies
View Related
Feb 18, 2014
I have 2 columns "H" and "I" from line 6 to 409. Each cell may start with AR , MA or a number. If cell H6 starts with AR I would like to put that cell into B6. If H6 does not have AR then I would like to check I6 for AR, and put that into B6 if it's found. If I don't find AR in either I would check them both for MA, and write the cell that finds MA into B6. If the AR or MA are not found then I would want it left blank. I did try
IF(FIND("AR",$H7,1),$H7,IF(FIND("AR",$I7,1),$I7,IF(FIND("MA",$H7,1),$H7,IF(FIND("MA",$I7,1),$I7," ")))) in B7.
View 6 Replies
View Related
Jan 19, 2010
I can create a drop list show various choices, is it possible to have the list of choice but also for the user to input text not in the list.
So if you had a list of names andrew, brian, chris and then not in the list you could write david ?
View 5 Replies
View Related
Feb 19, 2009
I'm very new to the VB experience and am having trouble getting the choices in my list boxes to show up.
View 6 Replies
View Related
Dec 30, 2009
I have a series of macros altering various workbooks and sheets. They're numbered Step1, Step2, etc. In my Step5 I have a series of Case statements in a macro, and I don't know how to get it to do what I want next. I have NOT tried running this code yet, and I'm sure I have something(s) wrong in it.
1) If the selection in DstWbk, sheet "Steps", is "01DSP" through "11DSP" the macro needs to delete specific columns in the SrcWbk, and then move to the next step (6).
2) If the selection in DstWbk, sheet "Steps", is "*DSP" the macro needs to go directly to the next step (6)
3) If the selection in DstWbk, sheet "Steps", is anything else the macro needs to flash a generic "No Data found" message and move on to Step7.
The part of the code that's throwing me begins at 'Select only the specific regional data' and ends at the "Case Else MsgBox"
View 3 Replies
View Related
Nov 17, 2013
I did a survey of what kind of clothes people like to wear and why. So there are two things that people have to write down. ex) jeans and cus they're comfortable / shirts and cus they look good
The data that I received was organized as followed
I just put in random things just so you can get the idea of whats what
Id
jeans
shirts
cardigans
[Code].....
Okay so what I want to know is how I can get the responses from the data spreadsheet I showed you before into this organized data table above.
View 3 Replies
View Related
Dec 12, 2013
I am writing a simple application that allows users to enter an item ID and execute a find. If the data is found, the UserForm populates with the pertinent data for the requested ID otherwise a message indicates Item not on file. The file being interrogated is an Excel workbook with multiple functions, unrelated to my task.
The problem: When my application opens the workbook to perform the Find, the screen displays a message generated by Excel, informing the user that the workbook contains links to other data sources and requesting to choose to either Update or Don't Update those links.
I used the Application.DisplayAlerts=False line but it has no effect on above. The choice I always make is Don't Update and the macro continues to the end without further ados.
Is there a way to either cancel such a screen request or automatically select a given option?
View 2 Replies
View Related
Dec 19, 2013
I am trying to create a simple order entry worksheet. In cell M1 I need a dropdown box that lets the user select which options go on the product. You can have multiple options. The list of options is contained in column A of the Options worksheet. Depending on which options are selected, I want to put a 1 in column B of the Options worksheet. how to do this or have a sample workbook that I can look at.
View 1 Replies
View Related
May 7, 2009
I am trying to create a msgprompt but instead of using the default yes or no, I need 3 options, so if the user clicks the first option, it will check a certain box. It will look like this.
"What envelopes do we use?
Choice 1. Branded Choice 2. Unbranded Choice 3. Client Branded
View 9 Replies
View Related
May 29, 2013
I was just trying to work around a problem with multiple UserForms in project. I have assigned Object variables oUserForm1 and oUserForm2 to represent UserForms of specific names.
VB:
Dim oUserForm1 As Object
Dim oUserForm2 As Object
Set oUserForm1 = VBA.UserForms.Add("Data" & CStr(X))
oUserForm1.Y = Y
[Code] .....
When oUserForm1 shows new data are inserted and another macro runs with a line to hide the opened UserForm.
In my project manager this user form name is i.e. Data1 (for x = 1), but the syntax Data1.Hide returns error. After that line it ask me to close the TOP most modal UserForm.
But When I use Me.Hide all works well.
My question is: Does VBA not see the name of the userform ("Data1") because I have used the oUserForm1 variable to give it a focus to it?
View 1 Replies
View Related
Aug 26, 2009
I have a formatting macro that I recorded, nothing fancy just bringing in a few different spreasheets, and formatting them. I made this for someone who really doesn't know excel.
I linked this button to the macro and it works great, except at the bottom of the code I would like to put something that when this has run, it hides the button, so it can't be run again.
View 4 Replies
View Related