newyorknix
New Member
- Joined
- Aug 28, 2011
- Messages
- 16
Hi,
I have addresses like this:
Each in one cell as a row
Name, phone number, address and zip code
XYZ Ltd 2233223 345, Church Road, NY 8999
XYZ Ltd 2233224 345, Church Road, NY 8999
XYZ Ltd 2233225 345, Church Road, NY 8999
XYZ Ltd 2233226 345, Church Road, NY 8999
ABC Ltd 2345644 34, Bridge line, NJ 8998
ABC Ltd 2345645 34, Bridge line, NJ 8998
ZXY Ltd 5423455 34, Bridge line, NJ 8998
I want a macro to move phone number to adjacent cells in the same row, if say name or address matches... And it may either empty the "phone number" cell or remove the row...
This should be only up to three phone numbers. It may either empty the "phone number" cell or remove the following rows...
Rows with no match or single phone number rows should be unaffected.
Like this:
XYZ Ltd 2233223 2233224 2233225 345, Church Road, NY 8999
ABC Ltd 2345644 2345645 34, Bridge line, NJ 8998
ZXY Ltd 5423455 34, Bridge line, NJ 8998
Thanks in advance
Regards,
Nicks
I have addresses like this:
Each in one cell as a row
Name, phone number, address and zip code
XYZ Ltd 2233223 345, Church Road, NY 8999
XYZ Ltd 2233224 345, Church Road, NY 8999
XYZ Ltd 2233225 345, Church Road, NY 8999
XYZ Ltd 2233226 345, Church Road, NY 8999
ABC Ltd 2345644 34, Bridge line, NJ 8998
ABC Ltd 2345645 34, Bridge line, NJ 8998
ZXY Ltd 5423455 34, Bridge line, NJ 8998
I want a macro to move phone number to adjacent cells in the same row, if say name or address matches... And it may either empty the "phone number" cell or remove the row...
This should be only up to three phone numbers. It may either empty the "phone number" cell or remove the following rows...
Rows with no match or single phone number rows should be unaffected.
Like this:
XYZ Ltd 2233223 2233224 2233225 345, Church Road, NY 8999
ABC Ltd 2345644 2345645 34, Bridge line, NJ 8998
ZXY Ltd 5423455 34, Bridge line, NJ 8998
Thanks in advance
Regards,
Nicks
Last edited: