Formula for: Placing a name in a column if it meets certain criteria
I have a column of food in column A and I need to put the category in column B by looking at Column 1.
Any ideas to a simple formula? I have tried various ones, only able to have up to two variables. My actual data set will have approximately 20 items in Column A and 7 categories.
example:
<table border="0" cellpadding="0" cellspacing="0" height="280" width="337"><colgroup><col style="width:48pt" span="2" width="64"> </colgroup><tbody><tr style="height:14.4pt" height="19"> <td style="height:14.4pt;width:48pt" height="19" width="64">Column A</td> <td style="width:48pt" width="64">Formula goes here: Column B</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Apple</td> <td>Fruit</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Orange</td> <td>Fruit</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Grape</td> <td>Fruit</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Potato
</td> <td>Veggie</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Celery
</td> <td>Veggie</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Carrot</td> <td>Veggie</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Pork</td> <td>Meat</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Chicken</td> <td>Meat</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Steak</td> <td>Meat</td> </tr> </tbody></table>
I have a column of food in column A and I need to put the category in column B by looking at Column 1.
Any ideas to a simple formula? I have tried various ones, only able to have up to two variables. My actual data set will have approximately 20 items in Column A and 7 categories.
example:
<table border="0" cellpadding="0" cellspacing="0" height="280" width="337"><colgroup><col style="width:48pt" span="2" width="64"> </colgroup><tbody><tr style="height:14.4pt" height="19"> <td style="height:14.4pt;width:48pt" height="19" width="64">Column A</td> <td style="width:48pt" width="64">Formula goes here: Column B</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Apple</td> <td>Fruit</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Orange</td> <td>Fruit</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Grape</td> <td>Fruit</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Potato
</td> <td>Veggie</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Celery
</td> <td>Veggie</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Carrot</td> <td>Veggie</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Pork</td> <td>Meat</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Chicken</td> <td>Meat</td> </tr> <tr style="height:14.4pt" height="19"> <td style="height:14.4pt" height="19">Steak</td> <td>Meat</td> </tr> </tbody></table>
Last edited: