# Index Match using 2 critereria with one being a text wildcard all located on a different worksheet

#### neostand

##### New Member
The title pretty much says it. The formula I'm trying to use is:

=INDEX('Bank Statements'!\$A\$4:\$D\$750,MATCH(1,INDEX(('Bank Statements'!\$A\$4:\$A\$750=F5)*('Bank Statements'!\$B\$4:\$B\$750="*GIRO*"),),FALSE)) as an array.

Bank Statements row A is a list of Dates
Bank Statements row B is a list of transactions some of which will include the letters GIRO
Bank Statements row D is a list of Currency Values

F5 refers to a date cell in the worksheet I am entering the formula into

I am trying to return the currency value in Bank Statements row D

I sure thought I had this one figured out but I cannot get any information to return.
Any help is appreciated.

### Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The Wildcard doesn't work when using the = to compare...

Try:

=INDEX('Bank Statements'!\$A\$4:\$D\$750,MATCH(1,INDEX(('Bank Statements'!\$A\$4:\$A\$750=F5)*(ISNUMBER(FIND("GIRO",'Bank Statements'!\$B\$4:\$B\$750))),),FALSE))

Thanks,
That got me a #Ref error on the correct match so that is a start.
I think I may be approacing my second criteria incorrectly

Let me try to reword it.

If F5 matches a date in Column A and cell B in the same row also contains the letters GIRO then I want to return the value of cell D in the same row

Sort of like a Vlookup but that also checkes for GIRO in the adjacent cell before returning a True/False

I hope that makes sense.

The Ref error is because you are missing the Column Num part in the INDEX function. What column in A:D are you trying to extract? that is the number to put in the red part below

=INDEX('Bank Statements'!\$A\$4:\$D\$750,MATCH(1,INDEX(('Bank Statements'!\$A\$4:\$A\$750=F5)*(ISNUMBER(FIND("GIRO",'Bank Statements'!\$B\$4:\$B\$750))),),FALSE),COLUMN_NUM)

Looks like you need column 4... so

=INDEX('Bank Statements'!\$A\$4:\$D\$750,MATCH(1,INDEX(('Bank Statements'!\$A\$4:\$A\$750=F5)*(ISNUMBER(FIND("GIRO",'Bank Statements'!\$B\$4:\$B\$750))),),FALSE),4)

BINGO!
Thanks NBVC!

Replies
1
Views
127
Replies
18
Views
478
Replies
4
Views
153
Replies
8
Views
176
Replies
3
Views
307

1,211,887
Messages
6,104,585
Members
447,917
Latest member
cbacba

### 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.

### Which adblocker are you using?

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

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