+ Reply to Thread
Results 1 to 4 of 4

Multiple criteria lookup return row range

  1. #1
    Registered User
    Join Date
    05-12-2018
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Multiple criteria lookup return row range

    I've got a list of data, let's say 10 columns and 1500 rows.
    I would like to write code to lookup value A in column 3, or value B in column 4. If there is a match, single row/entire column is copied to location in new work sheet.

    I have not started yet, but would like to know what's a good approach. VLookup type code is useless I found.
    From an excel formula point of view, INDEX & MATCH looks promising.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Multiple criteria lookup return row range

    The Find Method is versatile.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-12-2018
    Location
    UK
    MS-Off Ver
    2010
    Posts
    9

    Re: Multiple criteria lookup return row range

    Thanks, such a useful method.

    This is a slight tangent, but what if one of the values is found in cell E18, what method/function would I use to copy and paste the range A18:J18?

    I guess I've attached a sample of what I mean.
    Example looks up "Pear" in column I and number "15" in column J and returns/copy and pastes row range to new location.
    Attached Images Attached Images

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: Multiple criteria lookup return row range

    Try pasting the following into cell N3, then dragging down and across. (Untested):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If it doesn't work, I suggest uploading the spreadsheet from which the screenshot is taken by clicking on the GO ADVANCED button below the Quick Reply window and then scrolling down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Lookup multiple criteria in multiple columns in multiple rows; return true if exists
    By ufdlim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2019, 02:03 PM
  2. [SOLVED] Lookup a value within a range with 2 additional criteria, return a value
    By gaker10 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-12-2018, 08:17 PM
  3. [SOLVED] Lookup to match multiple criteria and return multiple results excluding duplicates.
    By kris3012 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-13-2018, 11:06 AM
  4. [SOLVED] Multiple Criteria Lookup and Return
    By mphillips in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2015, 05:29 PM
  5. [SOLVED] lookup and return multiple criteria
    By Sedge in forum Excel General
    Replies: 2
    Last Post: 07-05-2014, 07:08 PM
  6. [SOLVED] Lookup multiple criteria to return a value
    By Nitaa in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2013, 04:34 AM
  7. Replies: 10
    Last Post: 02-19-2013, 12:05 PM

Tags for this Thread

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