set value in column based on value in ajoining column

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

Guest

I update a spread sheet with a name in one column that uses letters and
numbers and then manually put in a numeric value in the ajoining column. I'd
like to automate this process. I need to be able to search a list of 35-40
names and then have excel place a predefined number in the next column.
 
Set up a table somewhere in your spreadsheet (assume X1:Y40 on the
same sheet), made up of your list of names in column X and the
corresponding number in column Y. Then, if you enter your name in A2,
put this formula in B2:

=IF(A2="","",VLOOKUP(A2,X$1:Y$40,2,0))

The formula can be copied down column B for as many items as you are
likely to input in column A.

Hope this helps.

Pete
 

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