Hi
I am creating my first bit of excel code to help me with some bookkeeping and so far so good. However, I have a question regarding the calculation of a cell's own value which I would appreciate some help with.
For example, let's say I have a hand entered value in column A1 (for eg "11") which I want to increase by 1 point (to 12) on the outcome of a random event. In this instance, the value will increase by 1 if a random roll from 1 to 20 is higher than the current value, so on any roll of 12 or more. I know how to create a random number and I'm fairly sure of the logic to make the calculation, but I don't know how you make a cell "look" at itself and increment it's own data based on the logic outcome.
Back in the mists of time using Amiga basic I'd do something like IF (random number)>A1 THEN A1=A1+1 but this is not an Amiga
thanks
Andy
Bookmarks