+ Reply to Thread
Results 1 to 14 of 14

duplicates; finding entries in column A which match any of column C entries

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    duplicates; finding entries in column A which match any of column C entries

    Hello! I'm new here and with excel functions in general too. What I need to do is sort certain entries in longer list (column A, it is in .csv format and needs to be in it so coordinates and names and ID, all sorted with commas) and I have another list (column C) which is shorter list of certain IDs. I googled and tried and got some results for the basic structure but the fuction seems to fail. It doesn't matter how I get that third list done, but there is only one criteria: since the list in column A is really long and those entries need to keep the .csv formatting, the function should copy that info what is in the matching cells.

    Let me try to put it simple: .csv cells from column A that have matching ID from column C should be copied to column B (or N).

    the function I'm working with right now is

    =IF(ISERROR(FIND($C:$C; A1))=TRUE;"0";A1)

    what I'm afraid of is that the find fuction can't use a list (column) as substring. Am I right or is there some other mistake, if not, please a bit of help would be appriciated.

    ajn90

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: duplicates; finding entries in column A which match any of column C entries

    IF(MATCH(A1,$C:$C,0)>0,"Found","not found")
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: duplicates; finding entries in column A which match any of column C entries

    unfortunately its not working. It gives error about missing the search value A1. The table of entries is the same and I tried "*"&A1&"*" instead of just A1, same results.

    I think there is something going on with the long .csv info on column A, the data is in form "coordinates, coordinates, ID, name" and I need to compare it to just the column C which has only the IDs.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: duplicates; finding entries in column A which match any of column C entries

    Maybe if you upload your sample workbook, more clear to us how to solve the problem..

    Click "Go Advance" button and then find "Paperclip" button to attach your file

    Thanks

  5. #5
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: duplicates; finding entries in column A which match any of column C entries

    Okey I put a simple example in this - I needed to re-write everything since the data in original is private. Also at this computer I don't have excel 2010 at my use, I hope libreoffice sample saved in excel format will do...

    the goal was to find and print entries from column A that have the ID from column C to column B.

    Thanks for replies so far!
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: duplicates; finding entries in column A which match any of column C entries

    =COUNT(FIND(C3,$A$3:$A$20)) based on your example in b3 to b8. You need to press ctrl shift and enter for this type of formula.

  7. #7
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: duplicates; finding entries in column A which match any of column C entries

    nathansav, that fuction is not working as intented I think: it prints 0 or 1 and as I tried it, it gave "1" for almost every entry and all of column C entries are in the column A values. As far as I know your function compares C values to all A which is the opposite as intented?

    Thanks
    ajn

  8. #8
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: duplicates; finding entries in column A which match any of column C entries

    Something like this maybe? PLease check the file

    Cheers
    Azumi
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: duplicates; finding entries in column A which match any of column C entries

    Thanks azumi for helping with this. However, why is value "-" printed to all in column B? There are matches in my example sheet, ie C3 ID(100117) is a part of A20(23.3,27,4,100117,set18). What I was thinking was to copy the whole cell from column A if it has the ID from column C.

    cheers
    ajn90

  10. #10
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: duplicates; finding entries in column A which match any of column C entries

    in your sample file from post #5, put the following array formula in cell B3 and drag-fill down:

    Please Login or Register  to view this content.
    within your sample file, you should also provide expected results in order to help others understand your need.

    UPDATE:

    in B3, drag-filled down, simple ENTER (non-array).

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    Last edited by icestationzbra; 05-11-2014 at 10:26 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  11. #11
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: duplicates; finding entries in column A which match any of column C entries

    Oh yes sorry my bad. Here is new examplerefined. Btw I couldn't get your formula to work icestationzbra.
    Attached Files Attached Files

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

    Re: duplicates; finding entries in column A which match any of column C entries

    Btw I couldn't get your formula to work icestationzbra.
    That is an ARRAY formula (as Ice said) and needs to be entered using CTRL SHIFT ENTER, not just enter
    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

  13. #13
    Registered User
    Join Date
    05-07-2014
    Location
    Kemijärvi, Finland
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: duplicates; finding entries in column A which match any of column C entries

    I used ctrl shift enter.

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

    Re: duplicates; finding entries in column A which match any of column C entries

    Try this, copied down...
    =IF(ISERROR(VLOOKUP(--MID(A3,11,6),$C$3:$C$8,1,0)),"-",A3)

+ 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. Column duplicates - how to clear cell entries three columns to the right
    By HankMcSpank in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 01:32 PM
  2. finding real entries in a column, and shifting them to the top
    By stealthbadger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 03:20 PM
  3. [SOLVED] Removing Duplicates Entries from each column with a for loop.
    By TonyM-2010 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2013, 10:28 AM
  4. Replies: 1
    Last Post: 02-01-2013, 03:38 PM
  5. Finding duplicate entries within a column
    By mazalam in forum Excel General
    Replies: 1
    Last Post: 08-29-2005, 04:56 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