Sum a changing Value

Yalankelo

New Member
Joined
Feb 25, 2015
Messages
2
Hi,

I am currently working on a simulation in excel using and add-on called Crystal ball. What this basically does is change cells depending on a given assumption that is user defined.
What i am looking to do is sum the value of the cell whose value will fluctuate when the simulation runs. Eg. a cell can fluctuate from 3-5 when the simulation runs. Over 10 runs the cell's value is 3,5,3,4,3,5,5,4,3,4. I would like a cell that at the end of the simulation has summed all those values together so would return 39.
Is this even possible??

Cheers,

Yal
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I believe i have found a solution to this problem now.
Within the stack flow of the way crystal ball simulation works you can call specific macros as long as they are named appropriately.
So if i use:

Sub CBAfterRecalc

x = cells(coordinates here)

y = cells(coordinates here)

z = x + y

cells(same coordinates are y) = z

End Sub

Then every time it is called it adds x to y then puts the new number back in to cell y. Works well for me.

Cheers.
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,037
Members
448,543
Latest member
MartinLarkin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top