#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default RANDBETWEEN

I have a worksheet which generates a random number between two base numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen, the
workbook won't recognise the function. I go into the add-ins and check the
Analysis Toolpak option, reset my number and it works fine - until I open it
after closing. Again I have to go in and recheck the Analysis Toopak. Any
suggestions as to what is going on.

Regards - Peterk
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default RANDBETWEEN

Don't have any suggestions about what's happening with the ATP.

As an alternative to the ATP RANDBETWEEN function, try this:

=INT((top_number-bottom_number+1)*RAND()+bottom_number)

For example:

=RANDBETWEEN(1,100)
=INT((100-1+1)*RAND()+1)

Note that this is still a *volatile* function

Biff

"pkeegs" wrote in message
...
I have a worksheet which generates a random number between two base numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen, the
workbook won't recognise the function. I go into the add-ins and check the
Analysis Toolpak option, reset my number and it works fine - until I open
it
after closing. Again I have to go in and recheck the Analysis Toopak. Any
suggestions as to what is going on.

Regards - Peterk



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default RANDBETWEEN

Another way:

=Int(Rand()*100+1)


T. Valko เขียน:
Don't have any suggestions about what's happening with the ATP.

As an alternative to the ATP RANDBETWEEN function, try this:

=INT((top_number-bottom_number+1)*RAND()+bottom_number)

For example:

=RANDBETWEEN(1,100)
=INT((100-1+1)*RAND()+1)

Note that this is still a *volatile* function

Biff

"pkeegs" wrote in message
...
I have a worksheet which generates a random number between two base numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen, the
workbook won't recognise the function. I go into the add-ins and check the
Analysis Toolpak option, reset my number and it works fine - until I open
it
after closing. Again I have to go in and recheck the Analysis Toopak. Any
suggestions as to what is going on.

Regards - Peterk


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default RANDBETWEEN

That's pretty limited.

What if the range was 50 to 100 ?

Biff

wrote in message
ups.com...
Another way:

=Int(Rand()*100+1)


T. Valko ?????:
Don't have any suggestions about what's happening with the ATP.

As an alternative to the ATP RANDBETWEEN function, try this:

=INT((top_number-bottom_number+1)*RAND()+bottom_number)

For example:

=RANDBETWEEN(1,100)
=INT((100-1+1)*RAND()+1)

Note that this is still a *volatile* function

Biff

"pkeegs" wrote in message
...
I have a worksheet which generates a random number between two base
numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen,
the
workbook won't recognise the function. I go into the add-ins and check
the
Analysis Toolpak option, reset my number and it works fine - until I
open
it
after closing. Again I have to go in and recheck the Analysis Toopak.
Any
suggestions as to what is going on.

Regards - Peterk



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default RANDBETWEEN

Ranbetween 50-100

=Int(Rand()*(50+1)+50) or

=Int(Rand()*51+50)

Santipong

T. Valko เขียน:
That's pretty limited.

What if the range was 50 to 100 ?

Biff

wrote in message
ups.com...
Another way:

=Int(Rand()*100+1)


T. Valko ?????:
Don't have any suggestions about what's happening with the ATP.

As an alternative to the ATP RANDBETWEEN function, try this:

=INT((top_number-bottom_number+1)*RAND()+bottom_number)

For example:

=RANDBETWEEN(1,100)
=INT((100-1+1)*RAND()+1)

Note that this is still a *volatile* function

Biff

"pkeegs" wrote in message
...
I have a worksheet which generates a random number between two base
numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen,
the
workbook won't recognise the function. I go into the add-ins and check
the
Analysis Toolpak option, reset my number and it works fine - until I
open
it
after closing. Again I have to go in and recheck the Analysis Toopak.
Any
suggestions as to what is going on.

Regards - Peterk




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default RANDBETWEEN

are you sure the checkmark is showing in the box before you leave the add-in
box?

"pkeegs" wrote:

I have a worksheet which generates a random number between two base numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen, the
workbook won't recognise the function. I go into the add-ins and check the
Analysis Toolpak option, reset my number and it works fine - until I open it
after closing. Again I have to go in and recheck the Analysis Toopak. Any
suggestions as to what is going on.

Regards - Peterk

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default RANDBETWEEN

Good Question bj. I admit I move around the options pretty quick, and am sure
that the box was checked before I exited, but will focus on that next time,

Regards

"bj" wrote:

are you sure the checkmark is showing in the box before you leave the add-in
box?

"pkeegs" wrote:

I have a worksheet which generates a random number between two base numbers
using the RANDBETWEEN Function. Whenever I close the sheet and reopen, the
workbook won't recognise the function. I go into the add-ins and check the
Analysis Toolpak option, reset my number and it works fine - until I open it
after closing. Again I have to go in and recheck the Analysis Toopak. Any
suggestions as to what is going on.

Regards - Peterk

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
RANDBETWEEN Michel AUDIFFREN Excel Discussion (Misc queries) 0 February 26th 06 11:02 PM
randbetween function Tracey Excel Discussion (Misc queries) 5 February 11th 06 12:23 AM
randbetween [email protected] Excel Discussion (Misc queries) 1 November 21st 05 01:25 PM
Randbetween Gbonda Excel Discussion (Misc queries) 1 June 30th 05 02:39 PM
randbetween gives ?NAME Kristjan_Thor Excel Discussion (Misc queries) 5 March 14th 05 11:41 PM


All times are GMT +1. The time now is 03:37 AM.

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

About Us

"It's about Microsoft Excel"