+ Reply to Thread
Results 1 to 2 of 2

if formula for presence of duplicate in a selection of two column

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    41

    if formula for presence of duplicate in a selection of two column

    Excel sample file is attached.

    I have two column B and D. Both have data from row 3 to 1817. So the selection is large. Also I have duplicate conditional formatting in those two column.

    Like in this case, only one duplicate is there in B114 and D269.

    I want to use "if" formula in cell, say G5, to display yes or no, if there is atleast one duplicate in them.

    Thank you.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: if formula for presence of duplicate in a selection of two column

    Not sure which way round - or how - you want this, but see if this will get you started...
    G5=IF(COUNTIF($B$3:$B$1817,D5)>0,"Yes","No")

    Copied down

    I would suggest that, if you use this, you change teh No to just "" that way, the duplicates will stand out better...
    =IF(COUNTIF($B$3:$B$1817,D5)>0,"Yes","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 6
    Last Post: 12-08-2014, 12:45 PM
  2. Replies: 1
    Last Post: 08-30-2014, 10:05 AM
  3. [SOLVED] counting blanks in open range based on presence of data in another column
    By dmorl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2014, 11:46 AM
  4. extract row based on presence of value in cell column
    By figsology in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2013, 04:19 AM
  5. Replies: 2
    Last Post: 10-10-2012, 05:03 PM
  6. [SOLVED] Formula to calculate sum of column range based on presence of value in another column
    By abreet in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-23-2012, 10:37 PM
  7. Identifying presence in another column
    By Redder Lurtz in forum Excel General
    Replies: 5
    Last Post: 03-08-2011, 04:52 AM

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