Hello,
I'm trying to write a Macro to match and display all the states and cities covered by a sales rep in 2 cells and remove any duplicate information at the same time.
In my spread sheet terms:
If the name in worksheet1 Cell A1, match the name in worksheet2 column C, then:
display the State Name from worksheet2 Column B in Worksheet1 Cell A2 removing duplicate state names,
and display the city name from worksheet2 Column A in Worksheet2 in Worksheet1 Cell B2 removing any duplicate city names and separating each city name by a comma and space.
So it would look like:
A1 = Name of Rep
A2 = Texas B2 = Dallas, Fort Worth, Lubbock, Odessa, Houston
Thanks in advance for the help.
I'm trying to write a Macro to match and display all the states and cities covered by a sales rep in 2 cells and remove any duplicate information at the same time.
In my spread sheet terms:
If the name in worksheet1 Cell A1, match the name in worksheet2 column C, then:
display the State Name from worksheet2 Column B in Worksheet1 Cell A2 removing duplicate state names,
and display the city name from worksheet2 Column A in Worksheet2 in Worksheet1 Cell B2 removing any duplicate city names and separating each city name by a comma and space.
So it would look like:
A1 = Name of Rep
A2 = Texas B2 = Dallas, Fort Worth, Lubbock, Odessa, Houston
Thanks in advance for the help.