Hi guys,
I've been reading this forum everytime I needed help with excel and you guys are awesome!!
ray:
I had a problem when trying to use vlookup but matching a string within a cell.
I came accross this thread in a forum that illustrates the problem (and has a great solution)
http://tinyurl.com/5j6s2n
The questions is:
I've got a spreadsheet of my bank transactions. If the transaction description contains a keyword from another list, I'd like to assign it a category from the next column over.
For example:
Sheet1 has transaction descriptions like:
POS DB WAL-MART # 9100 08/09 1030 HUNTERS CO
THE OLIVE GARD KNOXVILLE TN
POS DB TARGET T20 9100 08/04 4700 NEW HARVES
Sheet2 has a list of keywords and categories like:
Column A Column B
WAL-MART Entertainment - Toys
TARGET Entertainment - Toys
OLIVE GARD Food - Dinner
I was using vlookup but there are problems because many vendors include
the transaction date in the description like the walmart and target
items above.
Any suggestions?
The answer is (the penultime post in the thread)
The list on Sheet2, beginning in cell A1
* no match
wal-mart Entertainment - Toys
target Entertainment - Toys
olive gard Food - Dinner
Note: I added the asterisk item (*) at the TOP of the list.
Then....on Sheet1
A1: POS DB WAL-MART # 9100 08/09 1030 HUNTERS CO
B1:
=LOOKUP(10^99,MATCH("*"&Sheet2!$A$1:$A$10&"*",A1,0)/(Sheet2!$A$1:$A$10<>"")<wbr>,Sheet2!$B$1:$B$10)
Note: That formula is durable against unmatched items (e.g. new accounts).
It returns "no match" in those instances.
Could anyone explain this formula please?
I know the lookup and match formula, but the look_up_values (10^99 and the one in MATCH) look unusual. What's the division for?
I know it's a wird question but i'm trying to improve my understanding of excel, i do't want to just copy paste formulas that work.
Help would be highly appreciated
I've been reading this forum everytime I needed help with excel and you guys are awesome!!

I had a problem when trying to use vlookup but matching a string within a cell.
I came accross this thread in a forum that illustrates the problem (and has a great solution)
http://tinyurl.com/5j6s2n
The questions is:
I've got a spreadsheet of my bank transactions. If the transaction description contains a keyword from another list, I'd like to assign it a category from the next column over.
For example:
Sheet1 has transaction descriptions like:
POS DB WAL-MART # 9100 08/09 1030 HUNTERS CO
THE OLIVE GARD KNOXVILLE TN
POS DB TARGET T20 9100 08/04 4700 NEW HARVES
Sheet2 has a list of keywords and categories like:
Column A Column B
WAL-MART Entertainment - Toys
TARGET Entertainment - Toys
OLIVE GARD Food - Dinner
I was using vlookup but there are problems because many vendors include
the transaction date in the description like the walmart and target
items above.
Any suggestions?
The answer is (the penultime post in the thread)
The list on Sheet2, beginning in cell A1
* no match
wal-mart Entertainment - Toys
target Entertainment - Toys
olive gard Food - Dinner
Note: I added the asterisk item (*) at the TOP of the list.
Then....on Sheet1
A1: POS DB WAL-MART # 9100 08/09 1030 HUNTERS CO
B1:
=LOOKUP(10^99,MATCH("*"&Sheet2!$A$1:$A$10&"*",A1,0)/(Sheet2!$A$1:$A$10<>"")<wbr>,Sheet2!$B$1:$B$10)
Note: That formula is durable against unmatched items (e.g. new accounts).
It returns "no match" in those instances.
Could anyone explain this formula please?
I know the lookup and match formula, but the look_up_values (10^99 and the one in MATCH) look unusual. What's the division for?
I know it's a wird question but i'm trying to improve my understanding of excel, i do't want to just copy paste formulas that work.
Help would be highly appreciated
