+ Reply to Thread
Results 1 to 6 of 6

Random Numbers Not Equal to

Hybrid View

  1. #1
    Dave R.
    Guest

    Re: Random Numbers Not Equal to

    Cool, though this always results in 8 being the last selected. It seems to
    work OK with this in A1;

    =MID(B1,ROUNDUP(RAND()*(LEN(B1)),0),1)*1


    "Jason Morin" <jasonjmorin@OPPOSITEOFCOLDmail.com> wrote in message
    news:001c01c4f1c6$00c36300$a601280a@phx.gbl...
    > One very limited way:
    >
    > B1: 12345678
    > B2: =SUBSTITUTE(B1,A1,"")
    > A1: =MID(B1,RAND()*(LEN(B1)-1)+1,1)*1
    >
    > Copy the the formula in A1 down to A8, and the one in B2
    > down to B8.
    >
    > HTH
    > Jason
    > Atlanta, GA
    >
    > >-----Original Message-----
    > >Hi,
    > >
    > >I have 8 cells that I want to contain a unique whole

    > number from 1 to
    > >8. I don't want any of the 8 numbers to repeat.
    > >
    > >Any ideas?
    > >
    > >Joe
    > >.
    > >




  2. #2
    Jason Morin
    Guest

    Re: Random Numbers Not Equal to

    You're right. Should be:

    =MID(B1,RAND()*(LEN(B1))+1,1)*1

    I rarely use RAND - just RANDBETWEEN.

    Jason

    >-----Original Message-----
    >Cool, though this always results in 8 being the last

    selected. It seems to
    >work OK with this in A1;
    >
    >=MID(B1,ROUNDUP(RAND()*(LEN(B1)),0),1)*1
    >
    >
    >"Jason Morin" <jasonjmorin@OPPOSITEOFCOLDmail.com> wrote

    in message
    >news:001c01c4f1c6$00c36300$a601280a@phx.gbl...
    >> One very limited way:
    >>
    >> B1: 12345678
    >> B2: =SUBSTITUTE(B1,A1,"")
    >> A1: =MID(B1,RAND()*(LEN(B1)-1)+1,1)*1
    >>
    >> Copy the the formula in A1 down to A8, and the one in

    B2
    >> down to B8.
    >>
    >> HTH
    >> Jason
    >> Atlanta, GA
    >>
    >> >-----Original Message-----
    >> >Hi,
    >> >
    >> >I have 8 cells that I want to contain a unique whole

    >> number from 1 to
    >> >8. I don't want any of the 8 numbers to repeat.
    >> >
    >> >Any ideas?
    >> >
    >> >Joe
    >> >.
    >> >

    >
    >
    >.
    >


+ 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.6.0 RC 1