+ Reply to Thread
Results 1 to 12 of 12

Perfect Match Column A and B then highlights duplicates single time

  1. #1
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Perfect Match Column A and B then highlights duplicates single time

    Hi All,

    i need your help to find out duplicates Column A and B. but i used simple CF and highlight duplicates value, in this same column values highlights.
    i need to perfect match single value column B to match column A. example 280 value column B lies 40 time and column A 43 time so i want highlight 40 values match column A and 2 time values column A is extra after using filter.

    i used formula =ISNUMBER(MATCH(B2,$A$2:$A$385,0)) for perfect match but this is also showing TRUE.
    can you tell me how i can do highlights duplicates values exact match. if any value not lies in column A not highlight

    hope you understand my point.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Perfect Match Column A and B then highlights duplicates single time

    In "D2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy paste down.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Perfect Match Column A and B then highlights duplicates single time

    Hi Avk,
    in your formula apply in E2 but value 937, 2 time in column B and 1 time for column A. please check, only one 937 value will be "ok" or highlight.

    Thanks.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Perfect Match Column A and B then highlights duplicates single time

    Try in D2

    =AND(COUNTIF(A:A,B2)>0,COUNTIF(B$1:B2,B2)>1)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Perfect Match Column A and B then highlights duplicates single time

    Thanks for the reply Ace-XL,
    i am using this your formula, but there is little confusion, value 280 when apply filter column B to check count value excel show 40 time then apply column A its show 43 time,
    i apply formula column C and D to both side, formula FALSE filter column D only one value 280 show on there, one is missing.
    can you help where is the problem.
    second value 937 show FALSE value both column D and column C formula perfect show one TRUE one FALSE.
    please see the file
    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Perfect Match Column A and B then highlights duplicates single time

    May be it is because the = is not included in provided formula.

    Try

    C2=AND(COUNTIF(A:A,B2)>0,COUNTIF(B$1:B2,B2)>=1)
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  7. #7
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Perfect Match Column A and B then highlights duplicates single time

    Hi Shukla.ankur281190,
    Thanks for the reply,
    i applied your formula, so many values are disturb, value 937 double time in column B BOTH are TRUE, its wrong because one TRUE and second must be wrong, column A only one value 937.

    Thanks.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Perfect Match Column A and B then highlights duplicates single time

    Maybe this?

    =COUNTIF(B$1:B2,B2)<=COUNTIF(A:A,B2)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  9. #9
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Perfect Match Column A and B then highlights duplicates single time

    Hi AliGW,
    i used formula column E, working perfect to check value 280 after filter column B, 40 time TRUE Perfect,same of value 937, when i applied column F wise versa to check column F, =COUNTIF(A$1:B2,A2)<=COUNTIF(B:B,A2)
    after using filter column A, 24 time value FALSE column F , why this, only 3 time value increase by column B,
    column A = 43 and Column B = 40 value "280"

    Thanks

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Perfect Match Column A and B then highlights duplicates single time

    Please find the attached file
    use below formula to match Sales-Tax-Credit Vs Credit Actual
    =COUNTIF(A$2:A2,A2)<=COUNTIF(B$2:B$449,A2)
    and
    =COUNTIF(A$2:A$385,B2)>=COUNTIF(B$2:B2,B2)
    to match Credit Actual Vs Sales-Tax-Credit Vs
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,981

    Re: Perfect Match Column A and B then highlights duplicates single time

    Time to attach your workbook again.

  12. #12
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Perfect Match Column A and B then highlights duplicates single time

    Thanks Samba_ravi.
    its really perfect. thanks a lot.

    Thanks

+ 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. VLOOKUP Not returning a perfect match
    By IPR Crew in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-15-2018, 09:32 AM
  2. [SOLVED] Macro: average and highlights single value 5% above it
    By isasa74 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-26-2015, 04:42 AM
  3. Macro doesn't run first time but the second time it runs perfect
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-19-2013, 11:00 AM
  4. [SOLVED] Transpose a single column to a single row with duplicates removed
    By ggilzow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-07-2013, 10:50 AM
  5. Removing approximate duplicates in single column in '03
    By silvergrahm in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-03-2013, 12:03 AM
  6. Conditional Formatting Help-highlights a single row
    By Tommy1005 in forum Excel General
    Replies: 1
    Last Post: 02-22-2011, 02:22 PM
  7. How to change existing code that highlights duplicates?
    By simonwilliams in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2009, 10:47 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