Results 1 to 4 of 4

Thread: Detect Duplicates In Named Ranges With Cross Check

  1. #1
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0

    Cool Detect Duplicates In Named Ranges With Cross Check

    I have a table of cells located from A1 to I9. The table is broken down into 9 named ranges. range1, range2 ect. Each range is a 3x3 cell block. I have code that populates a random amount of cells in each range with a random number. My goal is to detect any duplicates not only in each range but by column and by row for each range.

    Example.

    x = a blank cell

    x 5 4
    4 x x
    x x x

    x 5 x
    2 2 x
    x x x

    The first 3x3 block of cells is range1. Range2 is the second. Range1 has two 4's in the same range. It also has two 5's in the same Column of the 2nd range. And two 2's in the same row.

    Basically I can only have one of the same number in a row and in a column.

    I need a code that will run my code until that condition is met.

    Thanks in advance for any insight.

  2. #2
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi Yegarboy,

    Welcome to ExcelFox!!!

    Are you looking for Sudoku ?
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    Its the same idea now that I think about it.

  4. #4
    Junior Member
    Join Date
    Oct 2012
    Posts
    3
    Rep Power
    0
    But it's not the same still. I still need some ideas.

Similar Threads

  1. Replies: 4
    Last Post: 07-02-2013, 11:32 AM
  2. Replies: 10
    Last Post: 05-23-2013, 12:30 PM
  3. Automatically Create Multiple Dynamic Named Ranges Using VBA
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 0
    Last Post: 04-24-2013, 03:49 PM
  4. Add Named Ranges To Multiple Workbooks Using VBA
    By Stalker in forum Excel Help
    Replies: 5
    Last Post: 04-23-2013, 12:20 PM
  5. Replies: 14
    Last Post: 01-26-2013, 04:58 AM

Posting Permissions

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