I am trying to work out a spreadsheet to fill in my monthly charges from my bank statement.
I have columns for months and rows for different charges.
My data has columns for months, charges and amounts.
I want to fill the amount into my spreadsheet.
The challenge I have is that the charge descriptor in the data has a lot of extraneous bank gibberish. I want to search the cell for the keyword I need (for example, "Discover" for my Discover card bill.
Here is the formula I have that works if I strip out the charge fields to just the keyword I want.
=INDEX($E$2:$E$334,MATCH(1,('2018 Table'!B$1=$A$2:$A$334) * ('2018 Table'!$A$2=$D$2:$D$334),0))
Column E is the amounts, column A is the month and column D is the charge description.
I modified the formula like this to try and get the wildcards to work -
=INDEX($E$2:$E$334,MATCH(1,('2018 Table'!B$1=$A$2:$A$334) * ("*Discover*"=$D$2:$D$334),0))
but it didn't work.
I tried this
=INDEX($E$2:$E$334,MATCH(1,('2018 Table'!B$1=$A$2:$A$334) * ('2018 Table'!$A$2&"*"=$D$2:$D$334),0))
and it also didn't work.
I also tried "*"&'2018 Table'!$A$2&"*"
with no luck.
Could the problem be that I am trying to compare two arrays and that wildcards don't work when using MATCH with two criteria?
Or am I missing something?
Thanks for any help you can provide.
Bookmarks