+ Reply to Thread
Results 1 to 18 of 18

Find the duplicate from a column of a excel of text string in colm b

  1. #1
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Find the duplicate from a column of a excel of text string in colm b

    GOOD AFTERNOON DEAR TEAM:-

    This is my first Thread in this forum, i attached a simple file I want to know the duplicate value in col "B" in section I already highlighted and it is a
    very huge find I want to know through formula
    Kindly help me
    Thanks in advance
    Attached Files Attached Files

  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 2403
    Posts
    43,986

    Re: Find the duplicate from a column of a excel of text string in colm b

    What makes them duplicates? They have the same number after UFONE.

    What makes other duplicates in your data? The same number after UFONE, or the same number after XYZ, or after ABC, or what? What identifying feature can we use?
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Thanks a lot Sir,
    Actually I want to trace out the duplicate like the section have similar entries like this:
    SMNBD: Police station to fazlia colony to Chowk Rehmanpura
    GTN: OLT to DC-64 Salar Road Salamat Pura Kotlakhpat
    Bahria OLT2 to Canal Garden Bahria Town
    GTN-OLT to DC-64 Salar Road Salamat pura
    FRZD: BLT-16 LDA Quarter More Walton Road to B-13 Opposite PEL Factory
    BTN: OLT2 to Canal Garden Bahria town
    BTN: OLT2 to Canal Garden Bahria town
    SMD OLT-2 to MSAG Met Office
    SMD: DC-34 Fazlia Colony to C-40 Chowk Rehmanpura & B-43 Opp. Police Station Ichra
    Kahna ROB IV to Green Cap

    So kindly help me
    Last edited by AliGW; 02-24-2022 at 04:29 AM. Reason: PLEASE don't quote unnecessarily!

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

    Re: Find the duplicate from a column of a excel of text string in colm b

    Are you saying that all of the lines in your last post are duplicates???

    They have nothing in common!!! Some contain OLT... others do not... Some contain BTN... others do not.

    Excel needs to have a pattern... one (or several) keywords to look for in a string that will identify strings as being duplicates. Can you provide the keywords for your data? Then I might be able to help. Without keywords... this is impossible.

  5. #5
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Thanks a lot Sir,
    These are the sections of an OFC cable route and when the cable is faulty from these section
    in a month:
    These sections and many more repeated again and again in a month like the attachment which shows the date and time,
    I need like this:-

    Police station to fazlia colony to Chowk Rehmanpura
    DC-64 Salar Road Salamat Pura Kotlakhpat
    Bahria OLT2 to Canal Garden Bahria Town
    DC-64 Salar Road Salamat pura
    LDA Quarter More Walton Road to B-13 Opposite PEL Factory
    OLT2 to Canal Garden Bahria town
    OLT2 to Canal Garden Bahria town
    OLT-2 to MSAG Met Office
    DC-34 Fazlia Colony to C-40 Chowk Rehmanpura & B-43 Opp. Police Station Ichra
    Kahna ROB IV to Green Cap

    These are the section which is duplicated and repeated so i need a formula which trace out these text string and found it.
    Thanks a lot once again.

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

    Re: Find the duplicate from a column of a excel of text string in colm b

    Your explanation makes no sense to me, so I'll step back at this point. Good luck!!

  7. #7
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Quote Originally Posted by Glenn Kennedy View Post
    Your explanation makes no sense to me, so I'll step back at this point. Good luck!!
    Sir, I already clear the point keyword like this:-

    Chowk Rehmanpura
    Salar Road Salamat Pura
    Kotlakhpat
    Canal Garden Bahria Town
    Salar Road Salamat pura
    LDA Quarter More Walton Road
    Canal Garden Bahria town
    Met Office
    Chowk Rehmanpura
    Police Station Ichra
    Kahna ROB IV to Green Cap

    These are the keywords and many more in the original file.
    Thanks a lot once again.

  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,472

    Re: Find the duplicate from a column of a excel of text string in colm b

    Provide an updated sample workbook with more than ONE set of duplicates identified AND the expected results mocked up manually. You know what all this means and should look like - we don't, and your explanatiosn aren't getting us any closer - sorry.
    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
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Thanks a lot Mom:-
    I again upload a new sample:
    Attached Files Attached Files
    Last edited by AliGW; 02-24-2022 at 06:42 AM. Reason: PLEASE don't quote unnecessarily!

  10. #10
    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,472

    Re: Find the duplicate from a column of a excel of text string in colm b

    Really sorry - as there is no logic I could apply to tell Excel how to decide what is a duplicate, I am unable to help you on this occasion.

  11. #11
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Quote Originally Posted by Glenn Kennedy View Post
    Your explanation makes no sense to me, so I'll step back at this point. Good luck!!
    If we like a table of strings and then using the formula we pull out the strings which match this table like this:-

    C-40 Chowk Rehmanpura
    Salamat Pura
    Canal Garden
    Salamat Pura
    Inside-Pel-factory
    Canal Garden
    Canal Garden
    Met Offic
    C-40 Chowk Rehmanpura
    Green Cap
    Salamat Pura
    Shaheen Block
    Met Offic
    Lead Club Defence Road
    Shaheen Block
    Inside-Pel-factory
    Shaheen Block
    Green Cap
    Inside-Pel-factory

    Thanks for your help

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

    Re: Find the duplicate from a column of a excel of text string in colm b

    One last try...

    Can you now post a sample file with some data which contain/do not contain these phrases (or tell me which post to look at...)

  13. #13
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Thanks a lot Sir, post#9 I think help you other wise i will be share a new data file.
    Last edited by AliGW; 02-25-2022 at 05:21 AM. Reason: PLEASE don't quote unnecessarily!

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

    Re: Find the duplicate from a column of a excel of text string in colm b

    OK. So I am still not sure exactly what you want.

    However, your list of key words at Post 11 containe a lot of duplicates (e.g. Canal garden was there twice, etc, etc). So I cleansed it and wound up with eight unique keywords.

    You never really explained (or maybe I got lost in the lengthy exchange of messages)... exactly what you wanted to see. So this may/many not be what you want.

    =IFERROR(LOOKUP(2,1/(--ISNUMBER(SEARCH($R$3:$R$10,B3))),$R$3:$R$10),"")

    identifies which (if any) keyword is present.

    =IF(K3="","",COUNTIF(K$3:K3,K3))

    incrementally counts the occurrence of each one. So the first instance of keyword XXX returns 1... the second 2.... and so on

    =IF(AND(L3>1,L3<>""),"Duplicate","")

    identifies the second (and subsequent) instances of each keyword.

    Does this help??
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Thanks a lot Sir, it is very near which is i needed, if you have more ideas then kindly help me.
    Once again thanks for your help.
    Last edited by AliGW; 02-25-2022 at 11:42 AM. Reason: PLEASE don't quote unnecessarily!

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

    Re: Find the duplicate from a column of a excel of text string in colm b

    What does "very nearly" mean? Either it works or it doesn't... If you don't tell me what's not working, how can I have any ideas about fixing it...

  17. #17
    Registered User
    Join Date
    02-22-2022
    Location
    ASIA
    MS-Off Ver
    2016
    Posts
    21

    Re: Find the duplicate from a column of a excel of text string in colm b

    Quote Originally Posted by Glenn Kennedy View Post
    What does "very nearly" mean? Either it works or it doesn't... If you don't tell me what's not working, how can I have any ideas about fixing it...
    Sir, it's work fine, i mean if you have more formulas like these problems also share.
    Thanks a lot for your kind help.

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

    Re: Find the duplicate from a column of a excel of text string in colm b

    OK. If you have specific Q's feel free to ask them here. for now...


    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

+ 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] VBA Macro to find text string in one column and replace specific text in another column if
    By bmahfood in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2017, 11:15 AM
  2. Replies: 4
    Last Post: 03-30-2015, 03:20 PM
  3. Replies: 5
    Last Post: 02-11-2015, 10:41 PM
  4. Find duplicate text in cells in column, then give names of cells containing duplicate text
    By spelunkerforlife in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 10:13 AM
  5. [SOLVED] VBA to Search a Text String, Find a Value listed in another column and replace the text
    By Jschrod303 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-16-2012, 08:56 PM
  6. Replies: 2
    Last Post: 02-27-2011, 11:59 AM
  7. Replies: 1
    Last Post: 08-15-2005, 05:05 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