Gregorykay
New Member
- Joined
- May 19, 2011
- Messages
- 3
Hi Everyone,
In worksheet 1 I have Colum A which holds names, and column B which holds phone numbers. In workesheet 2 in column A I have every name listed only once.
In worksheet 1 I have lots of duplicates in column A. Most of the time column B has the same phone number for every column A. But sometimes it is different.
I would need a macro that does a lookup of the phone number for each name in worksheet 2 from worksheet 1. If there are repeats of the same number place that number only once in coloumn B, however, if a different phone number exists for that same name place in column C, if still another exists place in coloumn D etc. (Sometimes duplicate names in worksheet 1 have no numbers beside them too)
For example I would want it to look like this
Worksheet 1
ColumnA-----------ColumnB
Name 1----------------123
Name 1- --------------456
Name 1-- --------------678
Name 1----------------678
Name 2----------------444
Name 2----------------444
Worksheet 2
ColumnA-----------ColumnB-----------ColumnC-----------ColumnD
Name 1----------------123- --------------456-- --------------678
Name 2----------------444
Thanks!
In worksheet 1 I have Colum A which holds names, and column B which holds phone numbers. In workesheet 2 in column A I have every name listed only once.
In worksheet 1 I have lots of duplicates in column A. Most of the time column B has the same phone number for every column A. But sometimes it is different.
I would need a macro that does a lookup of the phone number for each name in worksheet 2 from worksheet 1. If there are repeats of the same number place that number only once in coloumn B, however, if a different phone number exists for that same name place in column C, if still another exists place in coloumn D etc. (Sometimes duplicate names in worksheet 1 have no numbers beside them too)
For example I would want it to look like this
Worksheet 1
ColumnA-----------ColumnB
Name 1----------------123
Name 1- --------------456
Name 1-- --------------678
Name 1----------------678
Name 2----------------444
Name 2----------------444
Worksheet 2
ColumnA-----------ColumnB-----------ColumnC-----------ColumnD
Name 1----------------123- --------------456-- --------------678
Name 2----------------444
Thanks!