+ Reply to Thread
Results 1 to 4 of 4

Thread: i need 40 random numbers in 40 cell with no matches

  1. #1
    henry
    Guest

    i need 40 random numbers in 40 cell with no matches

    can someone help me with this in excel 2003 st. ed

  2. #2
    JE McGimpsey
    Guest

    Re: i need 40 random numbers in 40 cell with no matches

    one way:

    http://www.mcgimpsey.com/excel/randint.html

    In article <CE2DF4A4-629E-4274-A2E3-7ACA577BBA4A@microsoft.com>,
    "henry" <henry@discussions.microsoft.com> wrote:

    > can someone help me with this in excel 2003 st. ed


  3. #3
    Peo Sjoblom
    Guest

    RE: i need 40 random numbers in 40 cell with no matches

    If you with no matches mean no duplicates and 40 numbers only it won' really
    be random? You can use a simplistic approach and put let's say 1000 from
    1-1000 in A1:A1000, then in B1 put =RAND(), copy down to B1000, now select
    both columns and sort by column B, then select the first 40 numbers in A and
    copy somewhere else.



    Regards,

    Peo Sjoblom


    "henry" wrote:

    > can someone help me with this in excel 2003 st. ed


  4. #4
    Bob Phillips
    Guest

    Re: i need 40 random numbers in 40 cell with no matches

    or you could turn iteration on and put this formula in B1 and copy down to
    B40

    =IF((B1>0)*(COUNTIF($B$1:B1,B1)=1),B1,(INT(RAND()*40+1)))

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Peo Sjoblom" <PeoSjoblom@discussions.microsoft.com> wrote in message
    news:20CB6A55-9451-4818-9392-630F56E0652E@microsoft.com...
    > If you with no matches mean no duplicates and 40 numbers only it won'

    really
    > be random? You can use a simplistic approach and put let's say 1000 from
    > 1-1000 in A1:A1000, then in B1 put =RAND(), copy down to B1000, now select
    > both columns and sort by column B, then select the first 40 numbers in A

    and
    > copy somewhere else.
    >
    >
    >
    > Regards,
    >
    > Peo Sjoblom
    >
    >
    > "henry" wrote:
    >
    > > can someone help me with this in excel 2003 st. ed




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0