+ Reply to Thread
Results 1 to 3 of 3

Look up for duplicate values in column table

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Look up for duplicate values in column table

    Hi there!

    I use the following code to look up for duplicate values in column B, table1, sheet"2015"


    Application.WorksheetFunction.CountIf(Worksheets("2015").Range("B2:B5000"), TextBox1.Text)
    How do I set the range for looking only in table's column B and not in the entire column B of the sheet?

    Thx so much!

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Look up for duplicate values in column table

    Range("Table1[Column2]")

    substitute COLUMN2 with the header of the appropriate column
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Forum Contributor
    Join Date
    02-12-2013
    Location
    Brussel
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Look up for duplicate values in column table

    Thank you Glenn!
    Nice job!

    I tried that before, but I didn't know that I have to substitute column2 .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 12-07-2013, 02:33 PM
  2. Replies: 0
    Last Post: 09-11-2013, 09:54 AM
  3. Create a row (or column) of non-duplicate values from a column containing duplicate values
    By 777volkov777 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2013, 11:11 AM
  4. [SOLVED] Need Urgent help on Adjacent values of Duplicate column values should be be in single row.
    By anto_01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2012, 09:55 PM
  5. [SOLVED] Vlook up when duplicate values in the array table and lookup column
    By vinodt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-02-2012, 10:28 PM

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