Link to home
Start Free TrialLog in
Avatar of Escanaba
EscanabaFlag for United States of America

asked on

Excel Data Validation List Macro or Formula Help

Hello,

Please see attached sample.  Im hoping someone can recommend either a formula or a macro that will do the following:

Once a position is selected from the data validation drop down list in sheet1, the person/s name and salary will populate starting in columns B15 and C15.  For example, if Waterboy is selected, both John Doe and Brad Pitt's name and salary would appear.  If quarterback is selected, the names would clear and only Tom Cruise's name and salary would appear.

Thank you for any assistance in advance!
EE-Sample.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Saqib Husain
Saqib Husain
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Escanaba

ASKER

One slight change.  If the names in the Filled Position data sheet are actually in column E how would I adjust this macro?
Sorry I mean in Column P.  Not E.
cel is where the position is

cel.Offset(, 6) means 6 cells to the right of cel

cel.Offset(, 12) means 12 cells to the right of cel

You can change the value of 6 or 12 by counting the columns to the right of the position cell
Thank you!!!