vba code to index match multiple criterias and return multiple results

mychi11

Board Regular
Joined
May 11, 2020
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
I knew there is a way to match multiple criterias and return multiple results by using an array function. but this will slow down the sheet I was wondering if it is possible to do it using vba code.
Here is the table 1 where I need to match table 2. I will need to index match the date and text which contain OPU and below is the outcome which I am expecting.
Cell Formulas
RangeFormula
P4P4=M3+1
P5P5=M3
P6P6=M3-1
P7P7=M3-3
P8P8=M3-5
P9P9=M3-6
Cells with Conditional Formatting
CellConditionCell FormatStop If True
T29:T36,M4:P6,M8:P27,M36:P40Celldoes not contain a blank value textNO

Here is the table 2. The table 2 run from A1: NA500
IVF schedule.xlsm
DYDZEAEBECED
15/9/225/10/225/11/225/12/225/13/225/14/22
2
3
4
5OPU- CINDY
6
7OPU-LEEOPU-LYNN
8
9
10
11
12ET-STELLA
13
14
15
16
17
18
2022
Cell Formulas
RangeFormula
DY1:ED1DY1=DX1+1


Many thanks
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
1651999395757.png

this shd be the table one and the expected outcome
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,289
Members
449,149
Latest member
mwdbActuary

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