VLOOKUP Multiple Criteria

cookeetree

Board Regular
Joined
Mar 2, 2015
Messages
52
G'day Excel Gods,

I need to look up a value based on multiple criteria.

In column A, I have a list of training course numbers and in column C I have a list of dates of those courses, past and future. If an employee's training is overdue, I want the formula to find the date of the NEXT training course. A standard VLOOKUP just gives me the first date, which is in the past.

Any help you could provide would be greatly appreciated.

Thanks, Jason.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi Cookeetree,

Does this do what you want?

Book1
ABCDEFGH
1Course NumberTitleDateCourse NeededNext Date
2CX748Hamster Grooming5/6/2020CX748Hamster Grooming4/16/2020
3CX245Mole Wrangling12/30/2018
4CX463Turtle Tickling Level 311/27/2020
5CX245Mole Wrangling12/6/2019
6CX463Turtle Tickling Level 37/8/2018
7CX748Hamster Grooming9/16/2019
8CX245Mole Wrangling4/13/2018
9CX463Turtle Tickling Level 36/12/2020
10CX748Hamster Grooming4/16/2020
11CX245Mole Wrangling3/21/2020
12CX463Turtle Tickling Level 310/30/2020
13CX748Hamster Grooming5/2/2019
14CX463Turtle Tickling Level 310/17/2019
15
Sheet1
Cell Formulas
RangeFormula
G2G2=IFERROR(INDEX(B:B,MATCH($F$2,$A$1:$A$999,0)),"")
H2H2=IFERROR(AGGREGATE(15,6,$C$2:$C$999/(($C$2:$C$999>TODAY())*($A$2:$A$999=$F$2)),1),"")
 
Upvote 0
And with Dynamic Array formula FILTER()

=MIN(FILTER(C:C,(A:A=F2)*(C:C>TODAY())))

2020-02-13_15-46-43.png


Available in Excel 365 only.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top