+ Reply to Thread
Results 1 to 5 of 5

VLOOKUP using multiple search criteria

  1. #1
    Registered User
    Join Date
    07-08-2022
    Location
    Hamburg
    MS-Off Ver
    Microsoft356
    Posts
    3

    Angry VLOOKUP using multiple search criteria

    Hi their,
    I have a annoying problem. I have two datasets of a different length. One of them (DATA2) contains soil sample data regarding a soil classification (i.e. if it is either sand, clay...). I have to assigned now this soil classification of DATA2 to some other soil samples of DATA1 under the two conditions that both, the bore hole numbering matches exactly -- and if this is they case -- secondly, the sample depth of DATA1 is in between the TOP and BOTTOM sample depth of DATA2.


    A example is attached.


    I am super grateful for your help!
    Attached Files Attached Files
    Last edited by Terouka; 07-08-2022 at 11:29 AM.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: VLOOKUP using multiple search criteria

    There are no identical matches between Column A on DATA1 and Column A on DATA2.

    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    07-08-2022
    Location
    Hamburg
    MS-Off Ver
    Microsoft356
    Posts
    3

    Re: VLOOKUP using multiple search criteria

    Ah sry,
    have changed the example a bit. Now, sample NSPT-01 (D4) of DATA1 should be referred to as "Silty Clay" automatically based on DATA2. D5 up to D23 also. D24 should next be a "Silty Sand". I just need a lookup function doing this now automatically.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,133

    Re: VLOOKUP using multiple search criteria

    Try

    =IFERROR(INDEX(DATA2!$D$2:$D$1000,AGGREGATE(15,6,ROW($A$1:$A$1000)/($A4=DATA2!$A$2:$A$1000)/($B4>=DATA2!$B$2:$B$1000)/($C4<=DATA2!$C$2:$C$1000),1)),"")
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    07-08-2022
    Location
    Hamburg
    MS-Off Ver
    Microsoft356
    Posts
    3

    Re: VLOOKUP using multiple search criteria

    Perfect! This solves the problem.

    Many thanks!

+ 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. If/then & vlookup with running multiple search criteria
    By dhaase in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2016, 01:12 PM
  2. [SOLVED] if/then vlookup with multiple search criteria - new to Excel
    By dhaase in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 05-19-2016, 04:23 PM
  3. Using VLOOKUP to search multiple criteria IN ANY ORDER
    By denialcm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-20-2015, 12:38 PM
  4. Use VLOOKUP to search multiple criteria in any order
    By denialcm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2015, 06:24 PM
  5. Use VLOOKUP to search multiple criteria in any order
    By denialcm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 06:24 PM
  6. Using VLOOKUP to search multiple criteria in ANY ORDER
    By denialcm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 06:20 PM
  7. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM

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