From: Steve Bedard Steve on
How do you randomly generate numbers from 1 to 84 without duplicates in Excel
2007?
From: מיכאל (מיקי) אבידן on
1) Download and Install "MoreFunc" add-in.
http://www.download.com/Morefunc/3000-2077_4-10423159.html
2) In cell A1 type: =MRAND(,1,84) and copy down all the way to A84 (incl.)
Micky


"Steve Bedard" wrote:

> How do you randomly generate numbers from 1 to 84 without duplicates in Excel
> 2007?
From: Niek Otten on
http://www.mcgimpsey.com/excel/udfs/randint.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Steve Bedard" <Steve Bedard(a)discussions.microsoft.com> wrote in message
news:E773B7DC-96DC-474D-81C3-29BB7A0D0353(a)microsoft.com...
> How do you randomly generate numbers from 1 to 84 without duplicates in
> Excel
> 2007?

From: Mike H on
Hi,

the question isn't clear but try this. Select the cells you want the numbers
in and run this code. Because you are in the range 1 to 84 you mest selevt 84
cells or less

Sub Unique_Rands()
Dim FillRange As Range
Set FillRange = Selection
For Each c In FillRange
Do
c.Value = Int((84 * Rnd) + 1)
Loop Until WorksheetFunction.CountIf(FillRange, c.Value) < 2
Next
End Sub
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"Steve Bedard" wrote:

> How do you randomly generate numbers from 1 to 84 without duplicates in Excel
> 2007?
From: מיכאל (מיקי) אבידן on
Well..., I don't know how much of a "gambler" you are - but as a "Gimmick"
you are invited to try the proposal in the picture.
Any cell - in range F1:F84 must be blank.
An "X" points that that value was generated more than once.
Cells A1, B1 and F1 should be copied down all the way until row 84.
http://img717.imageshack.us/img717/5083/nonamesi.png
Micky


"Steve Bedard" wrote:

> How do you randomly generate numbers from 1 to 84 without duplicates in Excel
> 2007?