+ Reply to Thread
Results 1 to 5 of 5

Finding matches inside a whole column?

  1. #1
    Registered User
    Join Date
    07-14-2008
    Location
    NJ
    Posts
    3

    Finding matches inside a whole column?

    Hi, I have a 4 column excel sheet that I am working with.

    Col A: Values of Circuits (1)
    Col B: Values of Circuits (2)
    Col C: Values of possible values

    In Column D, I want to find the matching Value of Circuit 1 (column A) that exist in the whole column C.

    For example

    A1 = aaa C1 = aa1
    C2 = aa2
    C3 = aa3
    C4 = aaa

    A2 = aa2 C1 = aa1
    C2 = aa2
    C3 = aa3

    etc, etc, etc for each A
    I would want D1 to say aaa

    This would be the same with Column E, except instead of using the data for Column A, it would be the data from Column B still running through all the values of the entire Column C

    This would be done for C1 --> C9999.... etc, etc

    Thanks!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    I don't think we have enough information. How do you get aaa in D1 when aaa only exists in C4? Is it simply that once you find a match you report it?

    What data is in column B?

    How about extracting a unique list of values from column A, in say column D, then using the Match function

    =IF(MATCH(D1,C:C,False)>0,D1,"")


    It might be better if you could upload an actual workbook with all the values, or at least a reasonable sample of them, and manually note what you want in each cell and how you make that decision.

    Rgds

  3. #3
    Registered User
    Join Date
    07-14-2008
    Location
    NJ
    Posts
    3
    Thanks for the reply. Here is the excel doc. Thanks!

    It has over 1000+ fields but I deleted it to simplify what I'm looking to get done. Thanks again!
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    If I understand your request correctly, your problem is caused by the fact that the column F values have trailing spaces, whereas the test values in cols A & D don't

    Either get rid of them or change the vlookup formula to:

    =VLOOKUP(TRIM(F2),A$2:A$30,1,FALSE)

    HTH

  5. #5
    Registered User
    Join Date
    07-14-2008
    Location
    NJ
    Posts
    3
    Thanks a lot! I will try that with the full spreadsheet!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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