Each day I get in a bank statement, and on there I need to search within the reference column for specific text in the form of invoice numbers. but to get around the fact the invoice numbers and letters are different, I want to make a table with these values in, but have wildcards in between the letters:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]S*IW[/TD]
[/TR]
[TR]
[TD]S*PW[/TD]
[/TR]
[TR]
[TD]U*IW[/TD]
[/TR]
</tbody>[/TABLE]
And so on.
I use this formula to return anything from the Reference column that starts with a 10000 number, and then it returns the number that I need:
I can change the "10000?????" to a cell number (R$2) and use wildcards in the cell, typing them in manually for each instance, but I was wondering if there is a way to use that formula to use a table of possible searches, being able to use wildcards (*) or (?) to return the 1st instance of an invoice number from the Reference column.
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]S*IW[/TD]
[/TR]
[TR]
[TD]S*PW[/TD]
[/TR]
[TR]
[TD]U*IW[/TD]
[/TR]
</tbody>[/TABLE]
And so on.
I use this formula to return anything from the Reference column that starts with a 10000 number, and then it returns the number that I need:
Code:
=MID(B2,SEARCH("10000?????",B2),10)
I can change the "10000?????" to a cell number (R$2) and use wildcards in the cell, typing them in manually for each instance, but I was wondering if there is a way to use that formula to use a table of possible searches, being able to use wildcards (*) or (?) to return the 1st instance of an invoice number from the Reference column.