Create Spreadsheet That Use Monte Carlo Simulation?

Sep 22, 2005

Has ever created a spreadsheet that used Monte Carlo Simulation?

I've been able to create one that works using the random number generator in conjunction with discrete probability distributions - that's fairly easy, just assign a probability to each discrete value in the distribution and then decide whether or not to select it using a randomly generated number.

However, I want to perform a Monte Carlo simulation that uses a continuous (not discrete) probability distribution, but how I would use the random number generator to then select a value from the distribution based on its probability of occurance.

View 3 Replies


ADVERTISEMENT

Simular Monte Carlo Sim

Jun 25, 2008

I am trying to derive a formula to calculate a final value of an account.

The accounts initial value is say $2000. After 1 trade, I either lose 2% of the account value, there is 20% chance that may happen, or I have 80% chance of the account increasing by 0.8%. The win or loss is either added or subtracted to the original account.

The second trade has the same probability of win loss, but the percetages are based on the new account figure.

What is the account value after 'n' trades?

I originally started by using the compounding interest formula, after calculating an expectancy.

View 9 Replies View Related

Offset Down One Row And Loop (Monte Carlo)

Jun 20, 2009

I need to copy the value from cell Z18 and then use the function 'paste values' to input the data in cell B24.

Having done this I need the sheet to recalculate and generate a new set of random numbers. I then require the new value in cell Z18 to be copied and pasted in the next row of column B, cell B25.
I need this process repeating for 10,000 iterations so that the range B24:B1023 is filled.

Here is my code, it will recalculate cell Z18 and return the value in cell B24, but will not offset down one row and loop.

View 12 Replies View Related

Simulation Model For Inventory

Nov 15, 2006

I am having a very difficult time determining how to get started with this problem in VBA. I am not sure how to generate the failures, or start the array. I have been racking my brain for quite some time. Company B makes a product that has two component parts. The results of reliability testing for each component shows that the components fail according to an exponential distribution with the following mean time between failure (mtbf).

ComponentMTBF(months)
115
224

Below are Company B's sales records for the past 36 months.

MonthSalesMonthSalesMonthSales...............................

View 5 Replies View Related

Excel - Automate Simulation With Crystal Ball Add-in

Aug 14, 2012

I am trying to automate a simulation with the crystal ball add-in. Specifically the simulation will go through a set of workbooks in a directory - run the simulation (monte carlo x1000) and extra the "trial values" data in another spreadsheet.

I have tried to find crystal ball documentation but I'm not having any luck.

View 2 Replies View Related

Stopping A Counting Process In Dice Simulation

Oct 6, 2008

I am newbie in Excel so i got limited knowledge of programming in excel. I need to perform a dice simulation. I will toss a die repeatedly until I got all six outcomes, then record the numbers of tosses.

I tried to use the function RANDBETWEEN() in to simulate the toss of the die but I don't know how to stop my simulation.

For example, I can generate a sequence like this:
1 3 5 3 4 3 2 1 2 3 6 5 6

but I need to stop at the 11th generation since I achieve all possible outcomes (1,2,3,4,5,6) there.

View 9 Replies View Related

Hedging Simulation, Solver To Obtain A Maximum Profit

Apr 18, 2007

Im setting up a fixed hedging simulation using excel and want to use solver to obtain a maximum profit. I have taken historical stock prices and then predicted future prices using the random walk process. To create the hedge I am using european calls and puts in both long and short positions. The simulation has been set up so that the options are being brought/sold when the historical data ends and then sold/payed when the predicted data finishes.

I am letting solver change the values of the strike of each of the options and also the amount purchased/sold for each of the options too! My constraints are that all the strike prices have to be >= 0, all the amounts of each particular option has to be >= 0 and that profit has to be >= 0. It is worth noting that as well as the values already mentioned, d1 and d2 values are also being calculated on the sheet which are then used to calculate the value of the options being used (using Black-Scholes model), this value is then given a realistic spread value and then 3% is added on as the brokers fee. All of the values mentioned are being taken into consideration when caluclating profit.

View 6 Replies View Related

Create A Spreadsheet Where A Certain Value Is Added?

Apr 11, 2014

I need to create a Spreadsheet where a certain Value is added to the from of the data I enter into the cell. For example: All of my MAC Addresses start with 00:80:64. I want to be able to just type in the last three entries into the cell and have Excell automatically add the value 00:80:64 So I want to be able to add a specified value to ebvery entry in a collumn.

View 1 Replies View Related

Vba To Create A New File From Spreadsheet

Mar 27, 2008

I have the following spreadsheet:

A-------------B
File No.-----PRODUCT TYPE
123456-----NDT
123456-----NDT
123456-----NDT
123456---------
123456---------
789110---------
789110---------
789110---------

What I need is if there is an NDT in Column B and 123456 in Column A then I need to eliminate all rows which contain 123456.

End result

A
789110
789110
789110

View 9 Replies View Related

Automatically Create New Row With New Entry From Different Tab / Spreadsheet?

Mar 24, 2014

I've got a master spreadsheet grabbing data from 12-13 different tabs/spreadsheets.

One of those has a table, and I was wondering:

Is it possible for the master spreadsheet to automatically add a new line every time someone adds a new line and creates a new entry in a different spreadsheet?

In other words,

If there is a table in the master spreadsheet, and someone adds a new line, is there a formula which allows the master spreadsheet to add a new line in order to autopopulate?

View 7 Replies View Related

Create A Find Button In The Spreadsheet

Jan 15, 2009

I'd like to create a button that makes the "Find and Replace" popup come up when pressed. How to do this? (Ctrl + F is the shortcut for it)

View 3 Replies View Related

Create A Spreadsheet In Which The Cell Will Tell How Many Hours, More Or Less

Nov 14, 2009

I'm trying to create a spreadsheet in which the cell will tell me how many hours, more or less, i have worked a week.

Below is what I’m trying to create - but I'm having trouble.

- if the total = 35 (in cell A1) then display -2 (in A3),
- if the total = 36 (in cell A1) then display -1 (in A3),
- if the total = 37 (in cell A1) then display 0 (in A3),
- if the total = 38 (in cell A1) then display 1 (in A3),
- if the total = 39 (in cell A1) then display 2 (in A3), etc (and so on)

View 2 Replies View Related

Macro To Create CSV Files From Spreadsheet

Jan 27, 2010

How do I create VBA macro to create CSV files out of Excel spread sheet for each tab? Right now I am manually opening the spreadsheet and saving each tab as CSV file. But it is taking lot of time if we have lot of tabs.

View 14 Replies View Related

Create Excel Spreadsheet For Investments?

Jun 17, 2012

I have a small loan business funded by multiple investors. A spreadsheet that could calculate each investors monthly share of cash flow. Can a party familiar with Excel create this custom sheet with my input. How would your charges be determined.

View 2 Replies View Related

How To Create Buttons To Navigate Around A Spreadsheet

Feb 23, 2007

I was wondering how to create buttons such that when the user clicks on the button they are automatically taken to a different part of the workbook.

I'd like to do this because my spreadsheet is now large enough such that navigating just using the sheet tabs at the bottom is not ideal.

I can create a hyperlink, but I think a button just looks nicer.

View 9 Replies View Related

How To Create Multiple Spreadsheets From One Master Spreadsheet

Apr 16, 2014

I am trying to find a code that will allow me to generate multiple sheets depending on what is selected in one specific column. I have found a code that is perfect for this however I can't seem to set the range. For example instead of copying all of column headings I only need to copy up to column AN2.

View 1 Replies View Related

Create Splash Screen With Filter Spreadsheet

Mar 26, 2008

i have a spreadsheet which i have attached, currently users have to filter each column to get the end result

I would instead, like to create a screen where by they answer questions, for example. a drop down box where they choose flow rate, ie. 0-5l/min 6-10 l/min and so on for each option and then they end up with the list of choices which meet their criteria

View 12 Replies View Related

Create Clone Copy Of Spreadsheet For A New Year

Sep 11, 2009

I have an Excel spreadsheet containing a large amount of formulas applicable to 2009. I want to create a duplicate workbook for 2010. I want to maintain all cell formatting, ie A1=sum(whatever) without retyping it all. When I attempt to use copy-and-paste (or paste special) from 2009 to 2010, the cell values maintain a reference to the 2009 workbook. For example on 2010 workbook, A1=[2009]sum(whatever). Therefore the values from 2009 print in cells. I only want to maintain cell formula formatting, not a reference back to 2009 workbook.

View 5 Replies View Related

Multiple If Conditions - Create Spreadsheet When Certain Score Is Given

Jul 30, 2012

I am trying to create a spreadsheet where when certain conditions are met, a certain score is given. For example, if the condition is >= 300, the score is 15. If the condition is >= 290, the score is 14. All the way down to a score of zero.

I tried...
=if(A2>= 300, "15", if(A2>= 290, "14", if(A2>= 280, "13"))) etc.

View 7 Replies View Related

Merge 2 Tabs Into 1 Spreadsheet To Create Pivot Table?

Jul 9, 2014

I would like to combine 2 tabs into one spreadsheet. I was not able to do so, because it exceeds the max rows allowed in excel. I have installed powerpivots but not sure how to combine data using powerpivots.

View 3 Replies View Related

Create Spreadsheet Where First Page Allows To Input Number Of Teams?

Apr 24, 2014

What i'm looking to do is create a spreadsheet where the first page allows me to input the number of teams in the group.The teams cannot play others in the group except the ones they are paired with. eg. "Enter number of team pairs in set" (in this case 4)

Team 1a vs Team 1b
Team 2a vs Team 2b
Team 3a vs Team 3b
Team 4a vs Team 4b

After number of teams in set is established click a start button on the first tab of the spreadsheet.

this auto generates a new tab with all the possible win/loss combinations of 4 team pairs.

New Picture.jpg

if the number of teams on Tab 1 is changed (say to 6) and the start button is clicked, another new tab is generated with all possible win loss combinations of a 6 team set.

remember 1a vs 1b can only be win or lose and the win lose combinations are for the set of 4 matches ( or more matches if specified on the first tab and clicked).

if you put 7 in for the number of team pairs then it would be win loss combos for 7 pairs of teams.

View 7 Replies View Related

Create Basic Leaderboard In Excel / Google Spreadsheet

Jan 3, 2014

I would simply like to know how to create a basic ranked leaderboard through EXCEL or Google Spreadsheet, which i will later on implement on a community forum. I would like 2 entries for the leaderboard column titles, being:

Column A: PLAYERS
Column B: POINTS

Then under A i will be typing all players manually, and similarly for B with points.

View 3 Replies View Related

Macro To Create Multiple Tabs With Same Spreadsheet On And Date Them

Jul 20, 2014

I am trying to create a workload spread sheet for work I need to have the same looking spread sheet 365 times but also need each sheet to be dated, EG (tue,01/04/2014 through to tue,31/03/2015) I can create 365 tabs that have the same spread sheet on and I can create dates but not do both at the same time, it isn't fun doing copy and paste 365 time.

View 1 Replies View Related

Create Macro To Insert Monthly P&L Figures Into Spreadsheet

Sep 29, 2013

I am trying to create a macro to insert monthly P&L figures into a spreadsheet.

I am needing the macro to insert a column to the left of a column titled 'movement' each month and copy&paste my monthly figures in.

I have recorded the below macro but my inserted column is always moving into column E and pushing the prior month to the right, where I need it to always be situated to the immediate left of the movement column, e.g. if the macro is inserting September P&L data I need it to be situated between August data (currently in column E and movement data currently in row F and so on.

Column C D E FItem
July
August
Movement

Fees
26,500
28,000
2,000

Assets Ongoing
150,000
160,000
10,000

Columns("E:E").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Sheets("P&L Current Month").Select
Range("D11:D127").Select

[Code] ...

View 1 Replies View Related

How To Create Spreadsheet To Calculate Macro Nutrient Ratio Of Foods

Aug 7, 2008

I am trying to create a spreadsheet to calculate the macro nutrient ratio of foods based on carbohydrates, proteins, and fats and how many units/servings I eat of each. I've attached the file I've started. It's fairly straightforward and simple, thus far.

I would like to be able to associate a food with its various nutritional data in its row (fat, carbs, sugar, fiber, sat. fats, protein.. etc.). With all of my food items entered, I would like to be able to choose from a list, have it prompt me for how many units I've eaten then plug it into my formula to calculate totals and ratios.. The final flow should go soemthing like this...

1. Select a food from a list (each food on the list has its associated characteristics)..

2. Select how much ( each food will have an associated serving size i.e. 1/2 cup, 1oz..) ---- (4) oz VS. entering each unit in A1

3. Make these totals of each characteristic feed into my final chart with which to track and graph.

View 4 Replies View Related

Create Spreadsheets That Auto Populate Using Information From Main Spreadsheet?

Aug 9, 2013

I have a main spreadsheet that I am consistenty adding information to. The columns are : Company name, Contact, Territory, and Status. The main spreadsheet is titled "Main". I want 5 additional spreadsheets in the same workbook that are automatically pulling information from the "Main" spreadsheet, and populating the appropriate spreadsheet . For example...I have 500 entries of different companies in "Main". All of these companies are either categorized as "North, South, East, West, Offshore" in the Territory column. So, I would like my workbook to have 6 tabs...one "Main, North, South, East, West, Offshore." As of right now, I am Sorting the column, then copy and pasting into correct spreadsheet manually.

View 14 Replies View Related

Create A Spreadsheet That Will Automatically Increase The Work Order Number By 1?

Jun 20, 2014

I am trying to create a spreadsheet that will automatically increase the work order number by 1. The cell will always be in the same place. The idea is that when the file is opened it populates the number. After being closed and reopened the number will be 1 higher than the previous.

The page will reused by various people to create and print work requests for my mechanics, I want it to assign the W/O automatically.

View 11 Replies View Related

Create A Macro That Find And Calculate Based On Details Of 4 Columns On Same Spreadsheet

Jul 21, 2012

create a macro that will find and calculate based on the details of 4 columns on the same spreadsheet.

Basically, here is what I need to do:

1. Need to calculate how many QTY IN (Column F) and PALLETS IN (Column I) of a specific PART# (Column A) and LOT CODE (Column B) For example if enter a PART # and LOT CODE, it will calculate how many QTY IN and PALLET IN of that PART # and LOT CODE.

2. Need to do the same for QTY OUT (Column G) and PALLETS OUT (Column J) also.

3. Output should contain the PALLET # , QTY IN and PALLETS IN based on the PART # and LOT CODE search. I just want to simplify the search function in this spreadsheet because it is very cumbersome if you need to find how many items left for that PART # and LOT CODE.

Attached is the spreadsheet..

View 9 Replies View Related

Create A Spreadsheet That Will Calculate Total Money Spent And Total Savings?

Mar 5, 2014

I need to set up an easy to use spread sheet for my office. It needs to be able to calculate the running total spent of fuel, as well as include any discounts we get and then calculate our total savings.So basically, total spent and total saved.

View 3 Replies View Related

Create A Spreadsheet That Will Keep Track Of Budget Spent And Budget Remaining?

Dec 17, 2013

I am trying to create a spreadsheet that will keep track of budget spent and budget remaining.

I need the values to take what is spent from expenses claim forms that are filled out,

Each budget category has a code and within that code there are sub heddings

View 2 Replies View Related







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