ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Data Validation/Macro Problem (https://www.excelbanter.com/excel-programming/309698-data-validation-macro-problem.html)

andyp161[_4_]

Data Validation/Macro Problem
 
Hi there,

In A2:A100 I have used data validation to insert drop downs of th
names of consultants. Is it possible to set up a macro so that when
consultant's name is selcted in column A, the same consultant's typ
will automatically selected in column B i.e. if Andrew is selected i
A2, New Business Consultant is automatically selected in B2 and s
forth??

Many thanks

And

--
Message posted from http://www.ExcelForum.com


JE McGimpsey

Data Validation/Macro Problem
 
Instead of a macro, set up a table, perhaps in another sheet:


A B
1 Andrew New Business Consultant
2 Lloyd Old Business Consultant
3 Harry Old Consultant
....

Then in your sheet with validation, use

B2: =IF(A2="","",VLOOKUP(A2,Sheet2!A:B,2,FALSE))





In article ,
andyp161 wrote:

Hi there,

In A2:A100 I have used data validation to insert drop downs of the
names of consultants. Is it possible to set up a macro so that when a
consultant's name is selcted in column A, the same consultant's type
will automatically selected in column B i.e. if Andrew is selected in
A2, New Business Consultant is automatically selected in B2 and so
forth??



All times are GMT +1. The time now is 10:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com