stuartmacdonald
New Member
- Joined
- May 26, 2009
- Messages
- 48
I'm struggling to get a VLOOKUP formula with a wild card to work.
I have a list of 2,000 physical assets with a text name in Col A, e.g. Wholesale market, XYZ primary school, ZYX secondary school.
I want to categorize them with a code, so any asset name that contains the text 'market' is coded as 1, and any asset name with the text 'school' is coded a 2 etc
Have set up a second named table range called 'Category' where these text identifiers (type) are listed in the first column and codes (codes) are located in the 2nd column.
My formula looks at the asset name, seeks to make a partial match with my category types, and then return the code for that category.
=VLOOKUP(A2,"*"&Category[Type]&"*",2,FALSE)
Not working. What am I doing wrong?
I have a list of 2,000 physical assets with a text name in Col A, e.g. Wholesale market, XYZ primary school, ZYX secondary school.
I want to categorize them with a code, so any asset name that contains the text 'market' is coded as 1, and any asset name with the text 'school' is coded a 2 etc
Have set up a second named table range called 'Category' where these text identifiers (type) are listed in the first column and codes (codes) are located in the 2nd column.
My formula looks at the asset name, seeks to make a partial match with my category types, and then return the code for that category.
=VLOOKUP(A2,"*"&Category[Type]&"*",2,FALSE)
Not working. What am I doing wrong?