Vlookup with multiple criteria + skip blank and find the next value

Jana excel

New Member
Joined
Jun 19, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I want to do a vlookup on a range where I have duplicate values in Column A & B and I want to return the values in column C
Also if the values is blank, I want to search in the next row.
RegionResponsibleNext appointment
MalvernKZ01/01/2024
East BurwoodKZ
East BurwoodSE05/06/2024
SouthlandKZ
SouthlandPT15/07/2024
SouthlandSE
SouthlandSE17/06/2024

I want my formula to return the date that Responsible "SE" will visit region "Southland" and not the blank value -> 17/06/2024
When I use formula: =INDEX($C$19:$C$25;MATCH(D19;IF(ISNUMBER($C$19:$C$25);$A$19:$A$25);0)) the result is: 15/07/2024, it takes the first date for that region (so not taken into account the responsible)
When I use formula: =INDEX($C$19:$C$25;MATCH(D19&D18;A19:A25&B19:B25;0)) the result = blank (0/01/1900 in date format)

I would need a combination of those two formulas.
I want an index match formula that will match D19&D18 with column A & B, and the result should be a number (date)

Does anyone have a solution or formula that can resolve my problem?

Thanks
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to the Forum!

Perhaps something like this:

ABCDEFG
1RegionResponsibleNext appointmentRegionResponsibleNext appointment
2MalvernKZ1 Jan 2024MalvernKZ1 Jan 2024
3East BurwoodKZEast BurwoodKZ
4East BurwoodSE5 Jun 2024East BurwoodSE5 Jun 2024
5SouthlandKZSouthlandKZ
6SouthlandPT15 Jul 2024SouthlandPT15 Jul 2024
7SouthlandSESouthlandSE
8SouthlandSE17 Jun 2024SouthlandSE17 Jun 2024
9SouthlandSE1 Jul 2024
10FINDSouthlandSE24 Jun 2024
11SouthlandSE17 Jun 2024
12FIND
13SouthlandSE24 Jun 2024
Sheet1
Cell Formulas
RangeFormula
C11C11=FILTER(C2:C8,(A2:A8=A11)*(B2:B8=B11)*LEN(C2:C8),"n/a")
G13G13=TAKE(SORT(FILTER(G2:G10,(E2:E10=E13)*(F2:F10=F13)*(G2:G10>=TODAY()),"n/a")),1)

The first example is based on your simple dataset you posted. The second picks the first appointment on or after TODAY(), where today it's 20 June 2024.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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