I have multiple product families I'm working with, and each family has multiple products within. Some families have more products than others, all product names are unique. On one sheet named "prod fams", I have a lookup table like this:
| Product names | Product family |
|:---- |:------: |
| Prod1, Prod2 | Gizmos |
| Thing1, Thing2, Thing3, Thing4 | Widgets |
In another sheet I have a database of field failures. Each row is a failure instance and has a product associated with it like this:
| Case number | Date | Product Name |
|:---- |:------:|:------: |
| 1 | 2/21/22| Prod2 |
| 2 | 2/22/22| Thing3 |
I want to add a fourth column to this database for Product Family. My formula is a Vlookup like so:
=VLOOKUP("*"& C2 &"*",'prod fams'!A$1:B$12,2,FALSE)
So I find Prod2 (in this case) in the Product Names column in the look-up table - note the asterisk wildcards - and return the Product Family. This works for "Gizmos" not for "Widgets." For Widgets, I get #N/A. What is going on here?