+ Reply to Thread
Results 1 to 3 of 3

never matching numbers

  1. #1
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    never matching numbers

    Hello all,
    If i have 16 numbers in col A,
    what i want to do is in cols C,D show the numbers 8 in each column,but the numbers can never match.what i mean if number 7 is in C2 it can not appear again in either column until i hit F9.
    Then in cols E,F do the same for numbers 1 to 8.

    I have attach a sample if you like to view it.Thanks
    Attached Files Attached Files
    Last edited by mdshotgun; 09-08-2010 at 04:21 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: never matching numbers

    Here's one way. Insert two blank columns in front of column A. In the new column B, B1:B16 type =RAND()
    In Cell A1, put the formula (dragged down)
    =RANK(B1,$B$1:$B$16)

    In E2 (dragged down)
    =VLOOKUP(ROW(A1),$A$1:$C$16,3,FALSE)
    In F2 (dragged down)
    =VLOOKUP(ROW(A9),$A$1:$C$16,3,FALSE)
    You can hide columns A and B if you like. The values in E and F will change with F9
    Does this work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    05-16-2010
    Location
    glasgow scothland
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: never matching numbers

    Yes it's perfect.

    Thank you very much chemistB.

+ 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