View Single Post
  #1   Report Post  
mike
 
Posts: n/a
Default looking to assign different numbers in column B to different words in column A

Hi,

I am having a fairly simple issue but can't figure it out. Please see
example.


A B
food
food
food
food
drink
drink
drink
drink
fruit
fruit
fruit
fruit

In B column I am looking for a formula which I can drag down, that
will assign a 5 for food a 10 for drink and 15 for fruit so at the end
it will look something like this:

A B
food 5
food 5
food 5
drink 10
drink 10
drink 10
fruit 15
fruit 15
fruit 15

I pretty much want to tell it that if A is fruit then B should be 5,
if A is drink then B should be 10 and if A is fruit then B should be
15. I would like to have all that in the same formula. Now obviously
my situation is more complicated than this so other advice than what
Im asking for may not work for me.

Please help

Mike