Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sriram
 
Posts: n/a
Default Addition worksheet generator

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



  #2   Report Post  
LanceB
 
Posts: n/a
Default

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


"Sriram" wrote:

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




  #3   Report Post  
Sriram
 
Posts: n/a
Default

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.

"LanceB" wrote in message
...
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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
copyright and worksheet protection dow Excel Discussion (Misc queries) 2 January 3rd 05 03:07 PM
Executing macro for all worksheet from a different worksheet Biti New Users to Excel 3 December 8th 04 10:05 AM
Reference Data in Moved Worksheet tommcbrny Setting up and Configuration of Excel 1 December 1st 04 06:49 PM
Linking items GREATER THAN O on another worksheet in the same Work Eddie Shapiro Excel Discussion (Misc queries) 4 December 1st 04 02:55 PM
Worksheet name and Backward compatibility Rich Excel Discussion (Misc queries) 3 November 30th 04 06:10 PM


All times are GMT +1. The time now is 01:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"