+ Reply to Thread
Results 1 to 6 of 6

Find and Get Column Letter and Row Number from Duplicates in Range of Cells

  1. #1
    Registered User
    Join Date
    04-11-2013
    Location
    RC
    MS-Off Ver
    Excel 2007
    Posts
    10

    Find and Get Column Letter and Row Number from Duplicates in Range of Cells

    Trying to get the column letter and row number for any duplicates in a range of cells.

    In this example:

    A B C D E F G H
    tony 1
    steve 1
    bruce 1
    don 1
    peter 1
    logan 1
    matt 1
    Basically the above chart can only have 1 entry per column, otherwise it's an error.

    [Column C] shows a duplicate entry (Row 3 aka "Steve" and Row 5 aka "Don").

    Need to see if VBA can basically give me an output that says the error is in [Column C], and the rows with the error are found in [Row 3] and [Row 5].

    If it'll be easier, just an output of the Cell Address would be great, since formatting it to find the Column/Row wouldn't be a problem.

    Any help would be greatly appreciated, thank you.
    Last edited by WITJ; 06-13-2013 at 06:02 PM.

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Get Column Letter and Row Number from Duplicates in Range of Cells

    Try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-11-2013
    Location
    RC
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Find and Get Column Letter and Row Number from Duplicates in Range of Cells

    Thanks. There seems to be a small miscalculation since it seems to also be picking up blanks as duplicate, rather than just the value of "1".

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Find and Get Column Letter and Row Number from Duplicates in Range of Cells

    See if this is what you wanted.
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Find and Get Column Letter and Row Number from Duplicates in Range of Cells

    Hmm. It didn't pick up duplicates blanks for me on my test workbook.

  6. #6
    Registered User
    Join Date
    04-11-2013
    Location
    RC
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Find and Get Column Letter and Row Number from Duplicates in Range of Cells

    Quote Originally Posted by jindon View Post
    See if this is what you wanted.
    Please Login or Register  to view this content.
    Thank you jindon!

    Works!

    P.S.
    I was able to use both yours and stnkynt's formulas for parts of my work, so thank you.
    Last edited by WITJ; 06-13-2013 at 06:02 PM.

+ 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