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

neostand

New Member
Joined
Jan 7, 2014
Messages
3
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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
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))
 

neostand

New Member
Joined
Jan 7, 2014
Messages
3
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.
 

NBVC

Well-known Member
Joined
Aug 31, 2005
Messages
5,828
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)
 

Watch MrExcel Video

Forum statistics

Threads
1,129,754
Messages
5,638,170
Members
417,011
Latest member
Amaden95

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
Top