coding a list

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi.

I have a survey that I have to enter on excel, and I wanted to know if there was a way to code the choices (ie: 1=health center, 2=hospital, 3=health department, etc). I've done this before, but I just can't seem to remember how! Please let me know if you can help.

Thanks,
Angela
 
Angela,

You can make up a list like this, in cells A1:B3

1 health center
2 hospital
3 health department

Then when you enter a 1, say in cell D1, you can use a formula in E1:

=VLOOKUP(D1,$A$1:$B$3,2,FALSE)

to convert the number to the words.

HTH,
Bernie
MS Excel MVP

ABE25 said:
Hi.

I have a survey that I have to enter on excel, and I wanted to know if
there was a way to code the choices (ie: 1=health center, 2=hospital,
3=health department, etc). I've done this before, but I just can't seem to
remember how! Please let me know if you can help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top