legendary_popsicle
New Member
- Joined
- Jul 25, 2011
- Messages
- 49
I am a longtime lurker for work-related questions. I can usually find what I need, but now I finally have a question where I feel the need to register and post.
Unfortunately, I deal with a lot of dirty data at work. What I need is a formula that can look within text and return what the user really meant to type. Then I would like to be able to do a vlookup with that value.
Example:
A1: Crapples
A2: Carrots
A3: /Milk
B1: FORMULA (see below)
C1: Apple ; D1: Fruit
C2: Carrot ; D2: Veggie
C3: Milk ; D3: Dairy
I want there to be a formula to look in the range C1:C3 and see if any of those words are in the cell A1. If it is, perform a vlookup in the C1:D3 using the value that was found in the cell.
I've gotten to the point where I have a formula (listed below) that tells me whether or not a word from that range is in the cell, but I can't get to the vlookup portion. Let me know if you guys can help!
=IF(ISNUMBER(LOOKUP(9E+99+307,(SEARCH($C$1:$C$3,A1)))),"Food","Other")
Unfortunately, I deal with a lot of dirty data at work. What I need is a formula that can look within text and return what the user really meant to type. Then I would like to be able to do a vlookup with that value.
Example:
A1: Crapples
A2: Carrots
A3: /Milk
B1: FORMULA (see below)
C1: Apple ; D1: Fruit
C2: Carrot ; D2: Veggie
C3: Milk ; D3: Dairy
I want there to be a formula to look in the range C1:C3 and see if any of those words are in the cell A1. If it is, perform a vlookup in the C1:D3 using the value that was found in the cell.
I've gotten to the point where I have a formula (listed below) that tells me whether or not a word from that range is in the cell, but I can't get to the vlookup portion. Let me know if you guys can help!
=IF(ISNUMBER(LOOKUP(9E+99+307,(SEARCH($C$1:$C$3,A1)))),"Food","Other")