By example

table1

Position     Salary
Seller       150
Management   200
Technical    120
Maintenance  100

table2 (in same sheet or diferent, doesn't matter)

Name     Position          salary
John     Seller             ?
Paul     Technical          ?
Julia    Management         ?
Martha   Seller             ?
George   Technical          ?
Ringo    Maintenance        ?

How can I put the salary corresponding in third colum??

I've already selected Data->Validation->List for Position in table2 but how can I fill the "salary" column automatically??

thank you for any help

link|improve this question
feedback

1 Answer

up vote 3 down vote accepted

Do a VLOOKUP

=VLOOKUP(B2,Sheet2!$A$2:$B$5,2, FALSE) Given your stated tables, assuming the first one is Sheet2 and your second is Sheet1.

link|improve this answer
+1 @JNK Thank you very much! (couldn't give you the +1, still have less than 15 reputation) – Hernan Sep 7 '10 at 20:03
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.