+ Reply to Thread
Results 1 to 26 of 26

Highlight duplicate two column and two column unique value

  1. #1
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Highlight duplicate two column and two column unique value

    Hello Experts

    I have a very unique scenario, i want to highlight the row if Column X has same value, and Column Y has another unique same value.


    I have attached a sample file. and hope that expert will gonna help me.

    Looking Forward from you guys.
    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: Highlight duplicate two column and two column unique value

    Hi, welcome to the forum

    I think you either uploaded the wrong file, or modified the file before the upload, because column X and Y are empty - did you mean D and J?
    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

  3. #3
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Sorry for inconvenience, Column X and Column Y are just Example. Yes I mean Column D and Column J

    Looking Forward from you.

  4. #4
    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: Highlight duplicate two column and two column unique value

    testing post

  5. #5
    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: Highlight duplicate two column and two column unique value

    I think this is what you are after...
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula

  6. #6
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Quote Originally Posted by FDibbins View Post
    testing post
    Thank you I am excited and waiting...

  7. #7
    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: Highlight duplicate two column and two column unique value

    I think this is what you are after...
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter = C O U N T I F S ( $ D $ 1 7 : $ D $ 2 5 , $ D 1 7 , $ J $ 1 7 : $ J $ 2 5 , $ J 1 7 ) > = 2 . . . f o r m a t f i l l a s n e e d e d

  8. #8
    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: Highlight duplicate two column and two column unique value

    Aplogies for all those spaces, the server was not letting me post

  9. #9
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Quote Originally Posted by FDibbins View Post
    I think this is what you are after...
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    Which formula should i used? I have no idea

  10. #10
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    okay let me test.

  11. #11
    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: Highlight duplicate two column and two column unique value

    testing again (please pay no attention to the next few posts)...

    4. enter =COUNTIFS($D$17:$D$25,$D17,$J$17:$J$25,$J17) > =2...format fill as needed

  12. #12
    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: Highlight duplicate two column and two column unique value

    strange. This posts OK...
    I think this is what you are after...
    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula

  13. #13
    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: Highlight duplicate two column and two column unique value

    and this posts OK...

    4. enter =COUNTIFS($D$17:$D$25,$D17,$J$17:$J$25,$J17) > =2...format fill as needed

  14. #14
    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: Highlight duplicate two column and two column unique value

    The formula to use is in post 11 (and 13, same thing)

    Apologies for the confusion, the server is acting up

  15. #15
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    thank this is a great help. and one more question please tell me if i want partial match in Column J, Last Four Digit. than what will be the formula?

  16. #16
    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: Highlight duplicate two column and two column unique value

    The formula to use is in post 11 (and 13, same thing)

    Apologies for the confusion, the server is acting up

  17. #17
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Quote Originally Posted by FDibbins View Post
    The formula to use is in post 11 (and 13, same thing)

    Apologies for the confusion, the server is acting up

    NO PROBLEM SIR, YOU'RE JUST GREAT. thank you for this great help. and one more question please tell me if i want partial match in Column J, Last Four Digit. than what will be the formula?

  18. #18
    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: Highlight duplicate two column and two column unique value

    Try this instead...
    =SUMPRODUCT(--($D$17:$D$25=D17),--(RIGHT($J$17:$J$25,4)=RIGHT(J17,4)))>=2

  19. #19
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Quote Originally Posted by FDibbins View Post
    Try this instead...
    =SUMPRODUCT(--($D$17:$D$25=D17),--(RIGHT($J$17:$J$25,4)=RIGHT(J17,4)))>=2
    this is working but not highlighting the row, only cells in Column A

  20. #20
    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: Highlight duplicate two column and two column unique value

    Apologies again I left off the absoluting (getting late here)

    =SUMPRODUCT(--($D$17:$D$25=$D17),--(RIGHT($J$17:$J$25,4)=RIGHT($J17,4)))>=2

  21. #21
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,525

    Re: Highlight duplicate two column and two column unique value

    mahmudayaz,

    Why would you cross-post here when FDibbins has spent all this time providing you with a solution??
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  22. #22
    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: Highlight duplicate two column and two column unique value

    mahmudayaz I see that you have cross-posted on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.


    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

  23. #23
    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: Highlight duplicate two column and two column unique value

    deleted my duplicate post

  24. #24
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Quote Originally Posted by Trebor76 View Post
    mahmudayaz,

    Why would you cross-post here when FDibbins has spent all this time providing you with a solution??
    that was before FDibbins providing me solution. and i want to my sincerest thank you FDibbins for such a great help. that is why i didn't reply there.

  25. #25
    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: Highlight duplicate two column and two column unique value

    I am happy I was able to assist, but please take note of the cross-posting rules that (pretty much) all forums have

  26. #26
    Registered User
    Join Date
    04-27-2012
    Location
    Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Highlight duplicate two column and two column unique value

    Quote Originally Posted by FDibbins View Post
    deleted my duplicate post
    I m really, really sorry for that and apologies from my heart. i was looking for solution and when no one's replying, and that was before when you start providing me the solution.. again, i am sorry for that this will not happened again. you're such a great help problem is resolved.

+ 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. [SOLVED] Highlight duplicate rows excluding column and vice versa another column
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-07-2016, 02:22 PM
  2. Replies: 1
    Last Post: 03-08-2016, 02:02 PM
  3. Replies: 2
    Last Post: 11-11-2015, 10:25 AM
  4. Replies: 0
    Last Post: 11-10-2015, 05:59 PM
  5. [SOLVED] For every duplicate entry in column D, highlight row if G column value is separate
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2015, 06:02 PM
  6. How To Highlight Duplicate Value Across More Than One Column
    By Kingswood in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-14-2015, 05:05 PM
  7. Highlight column once unique ID found
    By Hnedjari in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2012, 12:20 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