+ Reply to Thread
Results 1 to 12 of 12

VLOOKUP with 3 conditions

  1. #1
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    VLOOKUP with 3 conditions

    Hello,

    I need to find a solution for the following problem.

    It must find a date, between the interval I2 to J2, has to be OK in the condition 1 and Yes in the condition 2. For instance, for category = Assistant, the result must be 30/07/2020.

    Thank you so much!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: VLOOKUP with 3 conditions

    Try this:
    =INDEX($D$1:$D$22,AGGREGATE(14,6,(($D$3:$D$22>=I2)*(D3:D22<=$J$2)*($C$3:$C$22="yes")*($B$3:$B$22="OK")*($A$3:$A$22=$F$10)*(ROW($D$3:$D$22))),1))

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,988

    Re: VLOOKUP with 3 conditions

    G10=SUMIFS(D3:D22,B3:B22,"oK",C3:C22,"yes",D3:D22,">="&I2,D3:D22,"<="&J2,$A$3:$A$22,F10)

  4. #4
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    Re: VLOOKUP with 3 conditions

    Hi belinda200!

    Thank you for your reply. It didn't manage to make it work...
    Last edited by Markulane; 10-08-2020 at 03:41 PM.

  5. #5
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    Re: VLOOKUP with 3 conditions

    Quote Originally Posted by CARACALLA View Post
    G10=SUMIFS(D3:D22,B3:B22,"oK",C3:C22,"yes",D3:D22,">="&I2,D3:D22,"<="&J2,$A$3:$A$22,F10)
    Brilliant! It worked! Thank you very much!

  6. #6
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: VLOOKUP with 3 conditions

    Quote Originally Posted by Markulane View Post
    It didn't manage to make it work...
    should work...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    Re: VLOOKUP with 3 conditions

    Thank you both for your help. Problem Solved!
    Last edited by Markulane; 10-09-2020 at 01:15 PM.

  8. #8
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: VLOOKUP with 3 conditions

    Hi

    Try this in G10 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by José Augusto; 10-09-2020 at 12:30 PM. Reason: Add a file

  9. #9
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    Re: VLOOKUP with 3 conditions

    Thank you José Augusto!

  10. #10
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    Re: VLOOKUP with 3 conditions

    Hello,

    How can I improve the formula to show the latest date?

    The conditions are: Condition 1 = OK; Condition 2 = Yes; The dates must be between 01/01/2020 and 01/02/2021. For Assistant will list two dates (01/07/2020 and 01/09/2020). How can I improve the formula to show the latest date? On this example is which is 01/09/2020?

    Thank you
    Attached Files Attached Files

  11. #11
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: VLOOKUP with 3 conditions

    =AGGREGATE(14,6,D3:D22/((B3:B22="OK")*($C$3:$C$22="Yes")*($D$3:$D$22>=$I$2)*($D$3:$D$22<=$J$2)*($A$3:$A$22=F10)),1)

  12. #12
    Registered User
    Join Date
    03-17-2019
    Location
    Porto
    MS-Off Ver
    2010
    Posts
    23

    Re: VLOOKUP with 3 conditions

    Quote Originally Posted by davsth View Post
    =AGGREGATE(14,6,D3:D22/((B3:B22="OK")*($C$3:$C$22="Yes")*($D$3:$D$22>=$I$2)*($D$3:$D$22<=$J$2)*($A$3:$A$22=F10)),1)
    Excellent! Thank you!

+ 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] vlookup with 2 conditions
    By rrcrossman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-21-2015, 01:47 PM
  2. Vlookup with 3 Conditions
    By ryanch69 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2013, 07:16 AM
  3. [SOLVED] Vlookup - Country conditions (Multiple conditions)
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-26-2013, 11:42 AM
  4. VLOOKUP & IF Conditions Together ?
    By VICTOR5 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-23-2012, 02:35 AM
  5. [SOLVED] Vlookup with conditions
    By reportnoob in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-26-2012, 03:09 AM
  6. vlookup with some conditions
    By lfmemp in forum Excel General
    Replies: 4
    Last Post: 06-21-2012, 10:41 AM
  7. [SOLVED] Vlookup with 3 or more conditions
    By LondonLion in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-28-2005, 12:10 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