Minimize Cost By Calculating Best Binomial Distribution
Apr 8, 2008
I'm working on a problem that calculates data using a binomial distribution. The data derived from the binomial distribution is then used to calculate a cost. I would like to minimize cost by changing the number of " reservations". Can excel solver do this or is it too complicated? I have attached the file with what I'm working on. (Changing E1 to minimize E2 while Cells A9:A102 are calculating a binomial distribution)
View 7 Replies
ADVERTISEMENT
Sep 10, 2008
I have been working on a problem that requires being able to calculate the chances of any winnng a series of coin tosses with a weighted coin.
The coin has for arguments sake a 65% / 35% chance of landing heads or tails and to win the game you need to hit your side 9 times.
Can you use excel to calculate things like: If heads takes the lead 1-0, what does that mean the its overall percentage chance of winning? If the score is 7-3 to tails, what are the chances of either side gaining victory? etc, etc.
I thought that there would be a way of setting up a spreadsheet that listed the goal (first to 9, 12, 15 or whatever) and below this the percentage chance of heads and the percentage chance of tails. Then somewhere would be a box to enter the current score (0-0, 3-5, 1-1 or whatever) and beside this the current chance of heads or tails gaining victory.
I've tried setting up something like this but am a bit of a dufus when it comes to knowing how, where and when to use the different functions of excel.
View 13 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
Oct 25, 2007
I'm trying to make a worksheet where I can calculate the cost of a mobile postpaid subscription. It is charged per minute and the cost differs depending on which of the 2 available networks the customer is calling to. The first 20 minutes are free, not depending on network.
Edit:
Charges to network A is 1,79,- per minute after the first 20 minutes are spent.
Charges to network B is 2,29,- per minute after the first 20 minutes are spent.
To sum up:
1. The customer makes a call.
2. If there there are available free minutes, these should be spent first.
3. The customer is charged per minute, depending on network called.
View 14 Replies
View Related
Apr 17, 2009
Problem - billing spreadsheet for prisoner fee.
1 - 8 hrs = $55
9 - 24 hrs = $55 + $65 or $120
Anything over 24 hrs - $65 for each additional (24 hrs) ($185)
So if you were locked up for 6 hrs it is $55. If you were locked up for 18 hrs it is $120. If you were locked up for 28 hrs it is $185. And if you were locked up for 49 hrs it is $250. Cell F5 contains number of hours locked up - I would like cell I5 to calculate the cost of the stay. I am proud of myself for figuring out the date and time subtraction - but this part has me stumped.
View 5 Replies
View Related
May 8, 2014
I am trying to create vba macro that allows me to calculate cost per month.
I have created a basic table with two columns
Cost
Month
200
Jan
300
March
150
Jan
470
April
150
March
I have another sheet , that has two columns
Month - Cost
Jan
Feb
March
April
I am trying to sum up the value on sheet1 and input into sheet2 on the allocated month.
So far logic , that I have came up with is.
I create a For loop statement that looks column and sort each month into an array.
Than the second loop will use the array to find the cost with the allocated array value to sum it.
View 2 Replies
View Related
Jan 7, 2009
i. I currently have a spreadsheet which is used to forecast resource cost for a project. The forecasted cost is calculated on a few factors - rate, allocation, contract start and end date, and expected days worked per month. One of the mods actually helped me out with this a few weeks ago.
I now have been told that there is a possibility that certain resource costs may change in the new year and that will need to be reflected in the sheet whilst keeping the historic information.
For example - XXX has a rate of £200 p/d, allocation is 1, working 18.83 days p/m and is working from 01/01/09 to 01/06/09. The current formula will work out his cost per month until contract end. Now say his rate will be changed to £150 p/d from the 01/03 and all other info remains the same, I need the sheet to calculate his revised cost from 01/03 onwards and not change the calculation previous to that month.
Now Ive actually managed to figure that part out myself by adding in two columns (over-ride rate and over-ride date) using a nested IF statement. The only problem is that if the new rate starts mid month then it will still calcuate the original amount for the full month and the revised amount from the next month.
Edit - Also, could someone advise as to how do I remove my old attachments as I have almost used up my allocation.
View 10 Replies
View Related
May 21, 2014
I am a Supply Chain intern at a company for the summer. One project I have been given is to create a tool in excel that allows our purchasing people to type in certain inputs (origin, destination, etc.) to calculate the total cost of shipping an item from a supplier in anywhere from china, to somewhere locally. I am gathering quotes for shipping via ocean and truck. How can I get where I enter in one location, say shanghai, china, shipping to another location, say Norfolk, VA, and get the total mileage difference to show?
View 1 Replies
View Related
Aug 6, 2009
I need to calculate the total cost of outbound calls based on the total duration of outbound calls multiplied by cost per minute. For example, in a given month, the total duration of outbound calls is 261:16:34 being 216 hours, 16 minutes and 34 seconds. I have this figure in cell A1 with the format [h]:mm:ss. I then convert this to minutes in cell B1 by saying B1=A1, but having the format [m], which gives me 15676. In cell C1, I have the cost per minte value of £0.026. But when I apply the formula D1=B1*C1, I get £0.283, when 15676*£0.026 should in fact be £407.58.
View 2 Replies
View Related
Aug 12, 2009
I am having trouble trying to calculate cost for a specific task. I know this is something simple and I am going to kick myself when it gets solved, but I have total brain lock right now! Here is the example of what I am trying to do.
A B C D E F
# of people start finish time man hours labor cost
3 1:35 2:05 :30 1.5 $15.00
I am entering the values in A, B and C, with B & C formatted as TIME. D is calculated by =(C3-B3), but I am lost trying to calculate E and F.
View 2 Replies
View Related
May 11, 2006
I have a sheet with 3 columns. First one is a date in the format dd/mm/yy, second is category type (numerical 1-40) and then the final column is cost in the format 0.00. These columns will need to run from A2:A65536, B2:B65536 & C2:C65536 to cover all later additions. I need to work out a cost total for each of the categories in each month.
View 5 Replies
View Related
Dec 29, 2007
I'm trying to do a binomial distribution summation as part of a VBA function, and have been using the Application.WorksheetFunction.BinomDist function, which works fine until the numbers get large - the binomial coefficients used in the calculation end up being larger than can be held in a double floating-point number in VBA, so excel can't handle it. The final result of the calculation is a probability, so it's not a huge number! I was wondering if anyone knows an alternate way of calculating binomial probabilities which avoid any huge number intermediates.
View 7 Replies
View Related
Mar 15, 2007
In a financial environment we have a calculator which uses iteration to allow for a cost being added to loan amount where the cost is based on the total loan amount. Iteration is set to 100 iterations with max change .001
On one PC the first time the calculator is opened it gives a particular (incorrect) result. If the input cells are cleared and the data re-entered, it gives the correct result. This only happens on one particular PC. Is there some other setting , other than the iteration setting, that would cause this?
View 5 Replies
View Related
Feb 13, 2007
I have vba code that opens Outlook so I can run code to send emails...
Application.ActivateMicrosoftApp (xlMicrosoftMail)
But I don't want it to be visible, I want it to be minimized.
If I try:
Set olApp = CreateObject("Outlook.Application")
olApp.WindowState = xlMinimized
I get an error "Object doesn't support this property or method" referring to:
olApp.WindowState = xlMinimized
I've tried:
Set olApp = CreateObject("Outlook.Application")
followed later with code to send emails,
Set objol = New Outlook.Application
Set objmail = objol.createitem(olmailitem)
With objmail
.To = EMTo
.cc = EMCC
.Subject = EMSubject
.Body = EMBody
.NoAging = True
.Attachments.Add EMFile
.Send
End With
But I get an error "You don't have appropriate permission to perform this operation" referring to:
Set objmail = objol.createitem(olmailitem)
Because of the way our network is designed, the only code that works to send emails is:
Application.ActivateMicrosoftApp (xlMicrosoftMail)
Set objol = New Outlook.Application
Set objmail = objol.createitem(olmailitem)
With objmail
.To = EMTo
.cc = EMCC
.Subject = EMSubject
.Body = EMBody
.NoAging = True
.Attachments.Add EMFile
.Send
End With
but Outlook remains open the whole time the emails are being sent until it's closed by code later on.
Is there a way to minimize outlook AND use the code above?
View 9 Replies
View Related
Feb 13, 2007
i want to minimize the excel application and show a userform on startup.
View 2 Replies
View Related
Mar 29, 2009
I want to UserForm.Show and minimize Excel at the same time then restore Excel when the Form is closed.
View 4 Replies
View Related
Nov 25, 2007
is there a way to make a macro that runs on startup
and prompts with a yes/no question, if the user
wants to multiply all new data values time 1.0825,
and after having selected if they do or dont want
to allow that, would it be possible to have the
prompt minimize itself but still be present in
case they decide to toggle that on/off?
View 14 Replies
View Related
Mar 18, 2009
I have tried searching for this code but just cant find (or remember) how i did it before.
I have a regular workbook (which changes name upon start up). In this workbook is a button that opens a linked database of products.
I want this button
1. to open the database C:/Database/db.xls
2. Minimize it
3. Maximize my regular workbook to its original state (this is where I am having the problem because the workbook name constantly changes)
View 23 Replies
View Related
Jun 5, 2008
My file is currently about 70,000 mb,consisting of 10 spreadsheets.
Can i decrease the size by combining the spreadsheets?
Also, will nested formula take longer to load compare to 3 different cells referencing upon each other?
list that tells us how much each and different formula affects the size of the file?
View 4 Replies
View Related
Dec 28, 2010
I need minimize button on the excel form. How can i do this?
View 9 Replies
View Related
Mar 4, 2009
I have to questions...
1. I have a form that I setup to open when my excel db is opened. How do I get the excel db to minimize or hide so that only the form is open.
2. How to I add minimize and maximize buttons to the forms I have created?
View 9 Replies
View Related
Oct 24, 2006
Is there a way to minimize Excel when a userform is launched, so just the userform is showing? I've tried using "Application.WindowState = xlMinimized" in the UserForm initialization procedure, but it minimizes both the workbook/application and the UserForm. I can click on the Excel window on the taskbar and just the UserForm will display--which is the goal--but I'm hoping there's a way to do it automatically without needing to click the taskbar icon after it's minimized.
View 2 Replies
View Related
Oct 13, 2007
Is there a way to have the excel window minimized while a userform is open so it looks tidy in VB?
View 3 Replies
View Related
Dec 18, 2007
I have an excel file that is about 1,400 kB in size. This file is the backend for a complex model with many inputs, and I now want to build a front end for it using userforms and VBA. However, when i created the first userform, my excel filesize blew out to about 7,000 kB. When I added all of my userforms (about 16 of them because there are lots of inputs, organised into categories), the filesize grew to 77,000 kB.
I have tried everything to reduce file size, including clearing all unused cells, avoiding pivot tables of any sort, and have also exported then re-imported all of my VBA modules and userforms. But the situtation stays the same: no userforms or VBA and my filesize is about 1,400kB, add in all the userforms, and filesize is 77,000 kB. Is there a way to keep file size down with userforms, or is that just the way it is? Is the only way to keep file size down to have a single userform, all questions on that one form, perhaps with visible and invisible controls depending on the 'page' of questions being viewed?
View 7 Replies
View Related
Jun 27, 2014
I'm working on an Excel workbook that is opened by a batch file, updates information, copy and pastes that information to PowerPoint, and closes itself after spending two minutes idle. This is all for an employee communication monitor that runs 24/7. However, I don't like that the Excel spreadsheet displays on the monitors for two minutes every time it opens and runs.
Right now I was using the bit of code below to minimize the workbook when it was done copying and pasting the information. It works fine for the monitors, but the application is not visible in the Taskbar.
Sub Workbook_Open()
...
Application.Visible = False
End Sub
Is there anyway to minimize the workbook while keeping the window visible in the taskbar?
View 6 Replies
View Related
Feb 26, 2012
I want to disable the three buttons (minimize, restore and close) excel.
[URL]
View 14 Replies
View Related
Aug 31, 2007
Edges of worksheet have gone - no tabs, no minimise/maximise.
View 7 Replies
View Related
Feb 22, 2009
I would like to be able to automatically minimize the Excel 2007 ribbon on opening a particular workbook. My preference is to be able to apply that minimization to certain worksheets only, but if that's not possible then minimizing the ribbons on all sheets in the workbook will be ok.
Will I also need a BeforeClose code as well to reinstate the ribbon so that it is visible when opening subsequent workbooks?
View 5 Replies
View Related
Apr 30, 2012
I have created a userform template and is working fine, the problem is the users are not able to minimize the template nor open any other excel files.
How to allow the template to open any other excel files or macro enabled files and also to minimize the windows.
View 1 Replies
View Related
Sep 9, 2012
I have a macro-enabled workbook, in sheet1 i have two columns Country and Codes, they are in column C and D respectively. I used vlookup formula in generating the codes of the countries pasted in column C, they are being looked-up in sheet2 in column C and D as well. I already have 100000+ rows in sheet 2 under column C and D that's why the file is now heavy. Is it possible to encode column C and D in sheet 2 but still can be looked-up? or is there any other way to minimize the file size.
View 7 Replies
View Related