Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default with random No's calc how can I stop two different columns predic.

I have used the Randbetween calculation in four columns, however on a few
occasions the same number is predicted in two different columns, how can I
overcome this problem
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default with random No's calc how can I stop two different columns predic.

Randbetween does not generate unique random numbers. Just random numbers.

the solution would be to write you own routine to generate unique random
numbers or query Google for posts in this group where such code has been
produced many times.

http://groups-beta.google.com/advanced_search

--
Regards,
Tom Ogilvy


"Excel Problems" <Excel wrote in message
...
I have used the Randbetween calculation in four columns, however on a few
occasions the same number is predicted in two different columns, how can I
overcome this problem



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default with random No's calc how can I stop two different columns predic.

It is the nature of a random number: if it is random, there is a random
chance of a match with another number. A simple way to deal with this is to
just recalculate the specific cells that repeat until you eliminate any
matches. There are more sophisticated ways but they would involve complex
coding.
--
- K Dales


"Excel Problems" wrote:

I have used the Randbetween calculation in four columns, however on a few
occasions the same number is predicted in two different columns, how can I
overcome this problem

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,071
Default with random No's calc how can I stop two different columns predic.

For ideas that *I* like (and you will find more if you follow Tom's
suggestion {grin}) see
Random Selection
http://www.tushar-mehta.com/excel/ne...ion/index.html

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article , "=?
Utf-8?B?RXhjZWwgUHJvYmxlbXM=?=" <Excel
says...
I have used the Randbetween calculation in four columns, however on a few
occasions the same number is predicted in two different columns, how can I
overcome this problem

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default with random No's calc how can I stop two different columns pre

Tom,
Many thyanks but you sugest writting my own routine, can you provide example
of a routine please

thanking you in anticipation regards

Bernie

"Tom Ogilvy" wrote:

Randbetween does not generate unique random numbers. Just random numbers.

the solution would be to write you own routine to generate unique random
numbers or query Google for posts in this group where such code has been
produced many times.

http://groups-beta.google.com/advanced_search

--
Regards,
Tom Ogilvy


"Excel Problems" <Excel wrote in message
...
I have used the Randbetween calculation in four columns, however on a few
occasions the same number is predicted in two different columns, how can I
overcome this problem






  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default with random No's calc how can I stop two different columns pre

Tushar provided a great link:

http://www.tushar-mehta.com/excel/ne...ction/vba.html

--
Regards,
Tom Ogilvy

"Excel Problems" wrote in message
...
Tom,
Many thyanks but you sugest writting my own routine, can you provide

example
of a routine please

thanking you in anticipation regards

Bernie

"Tom Ogilvy" wrote:

Randbetween does not generate unique random numbers. Just random

numbers.

the solution would be to write you own routine to generate unique random
numbers or query Google for posts in this group where such code has been
produced many times.

http://groups-beta.google.com/advanced_search

--
Regards,
Tom Ogilvy


"Excel Problems" <Excel wrote in

message
...
I have used the Randbetween calculation in four columns, however on a

few
occasions the same number is predicted in two different columns, how

can I
overcome this problem






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
Calc to show difference in numbers in two columns malycom Excel Discussion (Misc queries) 3 February 2nd 10 10:08 AM
How to stop calc using un-rounded data Annie New Users to Excel 4 April 19th 07 12:22 AM
help with percentage of yes or no's [email protected] Excel Discussion (Misc queries) 6 September 18th 06 04:44 AM
NETWORKDAYS calc with 3 columns of dates Mendz5 Excel Worksheet Functions 26 August 18th 06 09:21 PM
Formulas stop calculating at random times when editing a few spreadsheets. Luke MacNeil Excel Discussion (Misc queries) 3 November 30th 04 03:21 PM


All times are GMT +1. The time now is 10:22 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"