Hi. Sorry to dredge up an old thread.

I was looking to do exactly as the thread describes and found Shg's solution to work nicely. However...

...

How could I make this work by referencing cells instead of hard-coding them into the formula? I have quite a lengthy list of probabilities and outcomes!