+ Reply to Thread
Results 1 to 5 of 5

Can I add a 2nd criteria to VLookup

  1. #1
    Registered User
    Join Date
    11-21-2021
    Location
    Madison,Wisconsin
    MS-Off Ver
    Professional Plus 2016
    Posts
    3

    Can I add a 2nd criteria to VLookup

    =VLOOKUP(D2,'Download Data Page'!A2:P2300,16,FALSE)
    This current formula does not allow me to chose a second criteria.
    1. Criteria 1 look up city name in column A.
    2. Criteria 2 look up date & time in column B.
    3. Find the conditions in column P.

    Is there a way to add a 2nd criteria to VLookup?
    Thanks
    Attached Files Attached Files

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

    Re: Can I add a 2nd criteria to VLookup

    I usually use the Chandoo "trick" from here: https://chandoo.org/wp/multi-condition-vlookup/

    That would make your formula in D4:

    Please Login or Register  to view this content.
    Entered with Ctrl+Shift+Enter to create an array formula. Similar across the table. See attached where I had to change some of the data to get sensible results.

    WBD
    Attached Files Attached Files
    Office 365 on Windows 11, looking for rep!

  3. #3
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,266

    Re: Can I add a 2nd criteria to VLookup

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

    Entered with Ctrl+Shift+Enter.

    Good luck!

  4. #4
    Registered User
    Join Date
    11-21-2021
    Location
    Madison,Wisconsin
    MS-Off Ver
    Professional Plus 2016
    Posts
    3

    Re: Can I add a 2nd criteria to VLookup

    The formula works nice but when I put it into my spreadsheet it keeps the link to my C drive. How do I break that link?

    =VLOOKUP(D$2&$B6,CHOOSE({1,2},'C:\Users\mbrey\Downloads\[TestForecast 2.xlsx]Download Data Page'!$A$2:$A$3100&'C:\Users\mbrey\Downloads\[TestForecast 2.xlsx]Download Data Page'!$B$2:$B$3100,'C:\Users\mbrey\Downloads\[TestForecast 2.xlsx]Download Data Page'!$P$2:$P$3100),2,0)

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

    Re: Can I add a 2nd criteria to VLookup

    Either:

    1. Remove all the instances of "C:\Users\mbrey\Downloads\[TestForecast 2.xlsx]" from the formula
    or
    2. Just copy the formula from post #2 and paste it into your sheet

    WBD

+ 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. 2 Vlookup Criteria
    By anujteetwal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2020, 10:57 AM
  2. Replies: 4
    Last Post: 02-17-2019, 05:43 PM
  3. [SOLVED] Vlookup with 2 criteria?
    By guitarguy1685 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-16-2018, 12:06 PM
  4. Vlookup with several criteria
    By Human2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-21-2018, 02:16 PM
  5. [SOLVED] VLOOKUP with two criteria
    By Yossarian17 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-04-2014, 02:42 PM
  6. Large multi criteria / Vlookup/Choose Multi criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2014, 01:48 AM
  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

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