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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
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,215,106
Messages
6,123,124
Members
449,097
Latest member
mlckr

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