Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
B Millar via OfficeKB.com
 
Posts: n/a
Default Help with what should be a simple formula

I have created some simple sheets that I can run and print to create sheets
for my daughter to practice her math. The addition and multiplication was
simple but I am struggling with the subtraction.

Basically I am choosing a random (whole) number between 1 and 100 for the
numerator, using ROUNDDOWN((RAND()*100), 0).

I have used round down because on a parallel sheet I have the same numbers
appear in the same places, and then answer calculated below it. That way she
can easily mark her work and without the round down some answers were
slightly off due to the decimal places.

I have been having problems creating the denominator because I do not want
the number to be larger than the numerator, as I do not want her into
negative numbers yet.

I was trying to use an if statement that will leave the number if it is less
than the numerator but to pick again if it is more. I was thinking this was
so simple but when I actually went to do it I ran into circular errors and
other problems.

I know it can be done without much trouble but I am having brain fade.

Any help is appreciated.

Bryan
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

Say your numerator comes on cell A1 using your rounddow... ...formula and
you wan the denominator to be always lower than A1 then
=randbetween(1,A1)
will generate numbers lower that numerator


"B Millar via OfficeKB.com" wrote in message
...
I have created some simple sheets that I can run and print to create sheets
for my daughter to practice her math. The addition and multiplication was
simple but I am struggling with the subtraction.

Basically I am choosing a random (whole) number between 1 and 100 for the
numerator, using ROUNDDOWN((RAND()*100), 0).

I have used round down because on a parallel sheet I have the same numbers
appear in the same places, and then answer calculated below it. That way
she
can easily mark her work and without the round down some answers were
slightly off due to the decimal places.

I have been having problems creating the denominator because I do not want
the number to be larger than the numerator, as I do not want her into
negative numbers yet.

I was trying to use an if statement that will leave the number if it is
less
than the numerator but to pick again if it is more. I was thinking this
was
so simple but when I actually went to do it I ran into circular errors and
other problems.

I know it can be done without much trouble but I am having brain fade.

Any help is appreciated.

Bryan



  #3   Report Post  
Greg Neill
 
Posts: n/a
Default

"B Millar via OfficeKB.com" wrote in message
...
I have created some simple sheets that I can run and print to create sheets
for my daughter to practice her math. The addition and multiplication was
simple but I am struggling with the subtraction.

Basically I am choosing a random (whole) number between 1 and 100 for the
numerator, using ROUNDDOWN((RAND()*100), 0).

I have used round down because on a parallel sheet I have the same numbers
appear in the same places, and then answer calculated below it. That way
she
can easily mark her work and without the round down some answers were
slightly off due to the decimal places.

I have been having problems creating the denominator because I do not want
the number to be larger than the numerator, as I do not want her into
negative numbers yet.

I was trying to use an if statement that will leave the number if it is
less
than the numerator but to pick again if it is more. I was thinking this
was
so simple but when I actually went to do it I ran into circular errors and
other problems.

I know it can be done without much trouble but I am having brain fade.

Any help is appreciated.

Bryan


Choose your "Denominator" (actually the "subtrahend") first, then
form the minuend:

Subtrahend: ROUNDDOWN((RAND()*100), 0)
Minuend: Subtrahend+ ROUNDDOWN((RAND()*(100 - Subtrahend)), 0)

(use appropriate cell references in place of "Subtrahend" and "Minuend")

Then Minuend - Subtrahend will be 0, and the numbers will be
between 0 and 100.





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
Howdo U copy a formula down a column, that uses data in another w. Need Help pasting a formula Excel Worksheet Functions 1 February 25th 05 06:04 PM
Howdo U copy a formula down a column, that uses data in another w. brantty Excel Worksheet Functions 0 February 25th 05 10:11 AM
Excel Miscalculates simple formula..Help!! Dave Excel Worksheet Functions 1 January 12th 05 03:30 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 11:10 PM.

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"