PC Review


Reply
Thread Tools Rate Thread

How to control updating of random numbers

 
 
JC Home
Guest
Posts: n/a
 
      24th Feb 2007
I have created a simple worksheet to help my kids practice math facts using
the "randbetween" function, but I also have an IF-THEN-ELSE to show them if
they are right. The problem is that as soon as they enter their values, new
values are generated and their answer is no longer correct. I went into the
options and made calculations manual, but then the answer is not updated
either.

Is there an easy way to select cells to update automatically (or after
pressing a button with a macro) while leaving the others with their original
values?
=randbetween(-12,12)
x =randbetween(-12,12)

=IF(B3=B1*B2,"Great!","Try Again")

I would like cells B1 and B2 to only be updated manually, but I would like
B4 to be updated either automatically or when they are finished with a sheet
and hit a button that says "Check answers" or something like that.

Thanks!

--
Jeff Ciaccio
Sprayberry High School
Physics & AP Physics Teacher
770-578-3200
AP Physics Site: http://home.bellsouth.net/p/PWP-shsphysics


 
Reply With Quote
 
 
 
 
JMay
Guest
Posts: n/a
 
      24th Feb 2007
With Calculation set to Manual
From the Immediate Window:

? Range("B4").Calculate

Seems to work, So you could
Add a Forms Command Button
and assign the Macro named

UpdateB4

In a standard Module as follows

Sub UpdateB4
Sheets("Sheet1").Range("B4").Calculate
End Sub





"JC Home" <(E-Mail Removed)> wrote in message
news:#UM#(E-Mail Removed):

> I have created a simple worksheet to help my kids practice math facts using
> the "randbetween" function, but I also have an IF-THEN-ELSE to show them if
> they are right. The problem is that as soon as they enter their values, new
> values are generated and their answer is no longer correct. I went into the
> options and made calculations manual, but then the answer is not updated
> either.
>
> Is there an easy way to select cells to update automatically (or after
> pressing a button with a macro) while leaving the others with their original
> values?
> =randbetween(-12,12)
> x =randbetween(-12,12)
>
> =IF(B3=B1*B2,"Great!","Try Again")
>
> I would like cells B1 and B2 to only be updated manually, but I would like
> B4 to be updated either automatically or when they are finished with a sheet
> and hit a button that says "Check answers" or something like that.
>
> Thanks!
>
> --
> Jeff Ciaccio
> Sprayberry High School
> Physics & AP Physics Teacher
> 770-578-3200
> AP Physics Site: http://home.bellsouth.net/p/PWP-shsphysics


 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      24th Feb 2007
Jeff,
I made up a "Math Practice" worksheet using macros.
It provides random numbers between -12 and 12 in B5:C20
with column D for answers (multiplication) and column E with
the answer prompt.
Has two buttons on the sheet: New Test and Check Answers.
It might be of some help or give you some ideas for your own solution.
Glad to send it along. Email me at (E-Mail Removed)XX
(remove XXX from email address)
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"JC Home" <(E-Mail Removed)>
wrote in message
I have created a simple worksheet to help my kids practice math facts using
the "randbetween" function, but I also have an IF-THEN-ELSE to show them if
they are right. The problem is that as soon as they enter their values, new
values are generated and their answer is no longer correct. I went into the
options and made calculations manual, but then the answer is not updated
either.

Is there an easy way to select cells to update automatically (or after
pressing a button with a macro) while leaving the others with their original
values?
=randbetween(-12,12)
x =randbetween(-12,12)

=IF(B3=B1*B2,"Great!","Try Again")

I would like cells B1 and B2 to only be updated manually, but I would like
B4 to be updated either automatically or when they are finished with a sheet
and hit a button that says "Check answers" or something like that.

Thanks!

--
Jeff Ciaccio
Sprayberry High School
Physics & AP Physics Teacher
770-578-3200
AP Physics Site: http://home.bellsouth.net/p/PWP-shsphysics


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting numbers divisible by 4 from random numbers in ascending order ramana Microsoft Excel Worksheet Functions 6 19th Jun 2007 06:41 PM
how good is .NET's Random for making random numbers? Zytan Microsoft C# .NET 41 21st May 2007 03:58 PM
Can Excel pick random numbers from 1-300 and not repeat numbers? =?Utf-8?B?SnVsaWFu?= Microsoft Excel Misc 1 7th Jun 2006 07:17 AM
Non-random numbers generated by excel's data analysis random gener =?Utf-8?B?QWxsaWU=?= Microsoft Excel Worksheet Functions 10 17th Sep 2005 06:19 AM
Re: Non-random numbers generated by excel's data analysis random gener Harlan Grove Microsoft Excel Misc 2 13th Sep 2005 04:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:54 AM.