+ Reply to Thread
Results 1 to 3 of 3

Multiple column search

  1. #1
    Registered User
    Join Date
    12-20-2016
    Location
    Melbourne, Australia
    MS-Off Ver
    Windows 10
    Posts
    9

    Multiple column search

    Hi All,

    Thanks for any help that comes my way.

    A bit of background on the problem to hopefully provide context. I have over 200,000 records of wildlife collected from over 200 sites over the last few years. Unfortunately the person putting the cameras out called many of the sites different names at different times. This means I have a list of over 200,000 records where I am not sure if the site code is right. I have translated all the site code data so I now know what site was what but now I need to link this table with the table with all the records.

    What I have.
    Table 1 has the correct site code in the far left column and then another 5 columns with the incorrect site codes in them (yes some sites were called four different things)
    Table 2 has over 200,000 records in it with the far right column being the site code (the unadulterated and sometimes wrong site code.

    What I want to do is add the right site code to table 2. I have tried vlookup and nested if functions but I can't get anything to lookup the multiple columns in table 1 to see if there is a match in one column and then return the far left value for the corresponding row.

    In essence I need a formula that will match the site code in table 2 with the site code in one of the columns in table 2 and return the right site code back to me.

    Thanks for any assistance.
    Chris

  2. #2
    Valued Forum Contributor PFDave's Avatar
    Join Date
    05-17-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2013
    Posts
    1,067

    Re: Multiple column search

    Hi Chris,

    You can use multiple Index and Match for this. May be a leaner way but this will do the job. Where I have placed M1 This is an assumption for your far right column being the site code. Please amend as appropriate.

    You will need to consider the location of the table (e.g. sheet name) and apply this in, or you can advise and I can help with that. As I don't the know the headers for your tables I cannot write in that way.

    Hopefully this will help you on the right solution:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-20-2016
    Location
    Melbourne, Australia
    MS-Off Ver
    Windows 10
    Posts
    9

    Re: Multiple column search

    Thanks Dave.

    I had to change the IFNA to IFERROR as 2010 doesn't know IFNA and it kept giving me a #Name error. Other than that it worked well.

    Thanks for your help.
    Chris

+ 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. Multiple search terms in same column?
    By getmemickey in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-04-2016, 08:23 PM
  2. Multiple column search, index etc.
    By strangedenial in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2015, 07:29 PM
  3. [SOLVED] Search and count a word (*delay*) from 3rd Column with multiple criteria from row/column
    By suchetherrah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2015, 06:00 PM
  4. [SOLVED] Search multiple Text Criteria in one column, and if found, rename it in a different column
    By gbloemke in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-24-2014, 07:18 AM
  5. [SOLVED] Search for value in multiple column and Row array and return value in first column
    By Grimace in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-19-2013, 09:39 PM
  6. Multiple search of terms in one column to create data in another column
    By verdemedia in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-10-2012, 10:47 PM
  7. Replies: 2
    Last Post: 07-27-2009, 10:48 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