+ Reply to Thread
Results 1 to 5 of 5

creating addition/subtraction wksht

  1. #1
    Registered User
    Join Date
    03-21-2008
    Posts
    3

    creating addition/subtraction wksht

    I'm a technology facilitator in an elementary school, and have created addition "worksheet generators" for my teachers in the past using the RANDBETWEEN function. I'm now trying to create a worksheet that prints as a single page that has addition and subtraction problems using numbers 0-10. I want to randomize whether each problem is addition or subtraction; and randomize so the numbers are from 1-10. I understand how to do this with an addition problem, since it doesn't matter if the first number is smaller than the second number. However, I'm not sure how to use Excel functions to create subtraction problems to make sure the second number is always less than the first number while allowing the numbers 1-10, and how to randomize whether the operator sign is addition or subtraction. Each number and the operator sign (the addition or subtraction sign) are in individual cells. Thanks for any help!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: help w/creating addition/subtraction wksht

    Addition or subtraction would be a random INT(RAND()*2)+1 and maybe a CHOOSE to decide which operator the cell should be + or -

    First number should always be GREATER than second and within range 1 to 10.
    You mention numbers 0-10 first then change it to 1-10 in your description. Need to clarify which you want. Taken literally you mean second number should be GREATER than and NOT equal to first.

    First number should be INT(RAND()*9)+2
    Second should be INT(RAND*()*(9-"first"))+"first"
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    03-21-2008
    Posts
    3

    Re: help w/creating addition/subtraction wksht

    Thanks so much for the speedy response. Sorry about the confusion....I want 0-10. I used the functions you gave, but the second function sometimes returns a number over 10, and sometimes the second number is greater than the first number. I've attached a spreadsheet with my sample using your functions. Thanks for any add'l help you can provide!
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: help w/creating addition/subtraction wksht

    In A4, =RANDBETWEEN(1,10)

    In A5, =RANDBETWEEN(-A4, A4)

    Requires the Analysis ToolPak add-in.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: creating addition/subtraction wksht

    Lemoineer - You've duplicated the formula in the second calculation.
    It should be

    INT(RAND*()*(9-A4))+A4

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1