Addition worksheet generator

S

Sriram

I thought it would be simple to set-up an addition exercise generator for my
class of young Abacus students. The exercises typically involve adding a
series of numbers (more than two) for a positive result.

The student adds from top to bottom, and should not encounter a negative sum
at any point. To illustrate,
5
-4
-7
8
3


is not acceptable (summing through the third number results in a negative)
but
5
4
-7
8
3

is OK.

I tried to use the RANDBETWEEN() function to generate random numbers for the
problems, but the results are not usable because of this constraint.

I'm hoping for some clever way to ensure that the numbers all line up nicely
so I always get a positive figure at each step of the summation? Negative
numbers do need to be allowed however.

Sriram
 
L

LanceB

How about this

in a1

=ROUND(RAND()*10,0)*IF(RAND()>0.5,-1,1)

in a2

=IF(SUM($A$1:A1)>10,ROUND(RAND()*10,0)*IF(RAND()>0.5,-1,1),ABS(SUM($A$1:A1))+ROUND(RAND()*(10-ABS(SUM($A$1:A1))),0))

drag formula down for as many rows as you want for your sum

Lance
 
S

Sriram

That appears to work nicely, except I changed it slightly to restrict the
first number to be positive; one of the rules of the game.

In the meanwhile, I had worked out a slightly different approach which also
fits the need, something like this:
A1 =RANDBETWEEN(1,10)
A2 =RANDBETWEEN(-1*A1,10)
A3 =RANDBETWEEN(-1*(A1+A2),10)

and so on.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top