Mardy McFly
New Member
- Joined
- Nov 27, 2016
- Messages
- 2
Hello Eveyone,
I have a customer list from which I am trying to create mailing labels. The list is generated with 1 line per customer (First Name, Last Name, Address). I need to have the output of the names on the label different depending on the situation.
1. If the same address has all the same last name then I need the out put to be "The [Last Name] Family"
2. If the same address has more than one last name then I need the out put to be "[First Name] [Last Name] & [First Name] [Last Name]..." for as many names as are at the address
I have tried If AND/OR formulas, but I cannot get the 2. scenario to out put if there are more than 2 last names at an address. I'm wondering if there is a macro that could do it?
Any help would be appreciated.
Sample Data:
[TABLE="width: 641"]
<tbody>[TR]
[TD]first_name[/TD]
[TD]last_name[/TD]
[TD]Address[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]Zip[/TD]
[/TR]
[TR]
[TD]Nicholas[/TD]
[TD]Robertson[/TD]
[TD]0 Barnett Circle[/TD]
[TD]Waco[/TD]
[TD]TX[/TD]
[TD="align: right"]76796[/TD]
[/TR]
[TR]
[TD]Benjamin[/TD]
[TD]Robertson[/TD]
[TD]0 Barnett Circle[/TD]
[TD]Waco[/TD]
[TD]TX[/TD]
[TD="align: right"]76796[/TD]
[/TR]
[TR]
[TD]Maria[/TD]
[TD]Woods[/TD]
[TD]0 Bluestem Junction[/TD]
[TD]Mobile[/TD]
[TD]AL[/TD]
[TD="align: right"]36622[/TD]
[/TR]
[TR]
[TD]Karen[/TD]
[TD]Kelly[/TD]
[TD]0 Browning Crossing[/TD]
[TD]Pasadena[/TD]
[TD]CA[/TD]
[TD="align: right"]91199[/TD]
[/TR]
[TR]
[TD]Theresa[/TD]
[TD]Lawrence[/TD]
[TD]0 Browning Crossing[/TD]
[TD]Pasadena[/TD]
[TD]CA[/TD]
[TD="align: right"]91199[/TD]
[/TR]
[TR]
[TD]Ruby[/TD]
[TD]Carter[/TD]
[TD]0 Browning Crossing[/TD]
[TD]Pasadena[/TD]
[TD]CA[/TD]
[TD="align: right"]91199[/TD]
[/TR]
[TR]
[TD]Julia[/TD]
[TD]Scott[/TD]
[TD]0 Dorton Trail[/TD]
[TD]Corpus Christi[/TD]
[TD]TX[/TD]
[TD="align: right"]78465[/TD]
[/TR]
[TR]
[TD]Carlos[/TD]
[TD]Black[/TD]
[TD]0 Fairfield Plaza[/TD]
[TD]Las Vegas[/TD]
[TD]NV[/TD]
[TD="align: right"]89150[/TD]
[/TR]
[TR]
[TD]Kathryn[/TD]
[TD]Black[/TD]
[TD]0 Fairfield Plaza[/TD]
[TD]Las Vegas[/TD]
[TD]NV[/TD]
[TD="align: right"]89150[/TD]
[/TR]
[TR]
[TD]Gerald[/TD]
[TD]Black[/TD]
[TD]0 Fairfield Plaza[/TD]
[TD]Las Vegas[/TD]
[TD]NV[/TD]
[TD="align: right"]89150[/TD]
[/TR]
[TR]
[TD]Eugene[/TD]
[TD]Hernandez[/TD]
[TD]0 Hanover Plaza[/TD]
[TD]Wilmington[/TD]
[TD]DE[/TD]
[TD="align: right"]19897[/TD]
[/TR]
[TR]
[TD]Anne[/TD]
[TD]Ortiz[/TD]
[TD]0 Hoepker Parkway[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92110[/TD]
[/TR]
[TR]
[TD]Cynthia[/TD]
[TD]Howard[/TD]
[TD]0 Manufacturers Center[/TD]
[TD]San Antonio[/TD]
[TD]TX[/TD]
[TD="align: right"]78260[/TD]
[/TR]
[TR]
[TD]Louis[/TD]
[TD]Burke[/TD]
[TD]0 Manufacturers Center[/TD]
[TD]San Antonio[/TD]
[TD]TX[/TD]
[TD="align: right"]78260[/TD]
[/TR]
[TR]
[TD]Rachel[/TD]
[TD]Patterson[/TD]
[TD]0 Meadow Valley Avenue[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92170[/TD]
[/TR]
[TR]
[TD]Jonathan[/TD]
[TD]Bradley[/TD]
[TD]0 Novick Pass[/TD]
[TD]Dallas[/TD]
[TD]TX[/TD]
[TD="align: right"]75372[/TD]
[/TR]
[TR]
[TD]Annie[/TD]
[TD]Bradley[/TD]
[TD]0 Novick Pass[/TD]
[TD]Dallas[/TD]
[TD]TX[/TD]
[TD="align: right"]75372[/TD]
[/TR]
[TR]
[TD]Timothy[/TD]
[TD]Bradley[/TD]
[TD]0 Novick Pass[/TD]
[TD]Dallas[/TD]
[TD]TX[/TD]
[TD="align: right"]75372[/TD]
[/TR]
[TR]
[TD]Barbara[/TD]
[TD]Spencer[/TD]
[TD]0 Sachs Plaza[/TD]
[TD]Detroit[/TD]
[TD]MI[/TD]
[TD="align: right"]48232[/TD]
[/TR]
[TR]
[TD]Amanda[/TD]
[TD]Gomez[/TD]
[TD]0 Spohn Parkway[/TD]
[TD]North Port[/TD]
[TD]FL[/TD]
[TD="align: right"]34290[/TD]
[/TR]
[TR]
[TD]Billy[/TD]
[TD]Kim[/TD]
[TD]0 Sutteridge Trail[/TD]
[TD]Camden[/TD]
[TD]NJ[/TD]
[TD="align: right"]8104[/TD]
[/TR]
[TR]
[TD]Cheryl[/TD]
[TD]Nichols[/TD]
[TD]0 Sutteridge Trail[/TD]
[TD]Camden[/TD]
[TD]NJ[/TD]
[TD="align: right"]8104[/TD]
[/TR]
[TR]
[TD]Jacqueline[/TD]
[TD]Rodriguez[/TD]
[TD]0 Sutteridge Trail[/TD]
[TD]Camden[/TD]
[TD]NJ[/TD]
[TD="align: right"]8104[/TD]
[/TR]
[TR]
[TD]Antonio[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
[TR]
[TD]Dorothy[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
[TR]
[TD]Albert[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
[TR]
[TD]Jean[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
</tbody>[/TABLE]
I have a customer list from which I am trying to create mailing labels. The list is generated with 1 line per customer (First Name, Last Name, Address). I need to have the output of the names on the label different depending on the situation.
1. If the same address has all the same last name then I need the out put to be "The [Last Name] Family"
2. If the same address has more than one last name then I need the out put to be "[First Name] [Last Name] & [First Name] [Last Name]..." for as many names as are at the address
I have tried If AND/OR formulas, but I cannot get the 2. scenario to out put if there are more than 2 last names at an address. I'm wondering if there is a macro that could do it?
Any help would be appreciated.
Sample Data:
[TABLE="width: 641"]
<tbody>[TR]
[TD]first_name[/TD]
[TD]last_name[/TD]
[TD]Address[/TD]
[TD]City[/TD]
[TD]State[/TD]
[TD]Zip[/TD]
[/TR]
[TR]
[TD]Nicholas[/TD]
[TD]Robertson[/TD]
[TD]0 Barnett Circle[/TD]
[TD]Waco[/TD]
[TD]TX[/TD]
[TD="align: right"]76796[/TD]
[/TR]
[TR]
[TD]Benjamin[/TD]
[TD]Robertson[/TD]
[TD]0 Barnett Circle[/TD]
[TD]Waco[/TD]
[TD]TX[/TD]
[TD="align: right"]76796[/TD]
[/TR]
[TR]
[TD]Maria[/TD]
[TD]Woods[/TD]
[TD]0 Bluestem Junction[/TD]
[TD]Mobile[/TD]
[TD]AL[/TD]
[TD="align: right"]36622[/TD]
[/TR]
[TR]
[TD]Karen[/TD]
[TD]Kelly[/TD]
[TD]0 Browning Crossing[/TD]
[TD]Pasadena[/TD]
[TD]CA[/TD]
[TD="align: right"]91199[/TD]
[/TR]
[TR]
[TD]Theresa[/TD]
[TD]Lawrence[/TD]
[TD]0 Browning Crossing[/TD]
[TD]Pasadena[/TD]
[TD]CA[/TD]
[TD="align: right"]91199[/TD]
[/TR]
[TR]
[TD]Ruby[/TD]
[TD]Carter[/TD]
[TD]0 Browning Crossing[/TD]
[TD]Pasadena[/TD]
[TD]CA[/TD]
[TD="align: right"]91199[/TD]
[/TR]
[TR]
[TD]Julia[/TD]
[TD]Scott[/TD]
[TD]0 Dorton Trail[/TD]
[TD]Corpus Christi[/TD]
[TD]TX[/TD]
[TD="align: right"]78465[/TD]
[/TR]
[TR]
[TD]Carlos[/TD]
[TD]Black[/TD]
[TD]0 Fairfield Plaza[/TD]
[TD]Las Vegas[/TD]
[TD]NV[/TD]
[TD="align: right"]89150[/TD]
[/TR]
[TR]
[TD]Kathryn[/TD]
[TD]Black[/TD]
[TD]0 Fairfield Plaza[/TD]
[TD]Las Vegas[/TD]
[TD]NV[/TD]
[TD="align: right"]89150[/TD]
[/TR]
[TR]
[TD]Gerald[/TD]
[TD]Black[/TD]
[TD]0 Fairfield Plaza[/TD]
[TD]Las Vegas[/TD]
[TD]NV[/TD]
[TD="align: right"]89150[/TD]
[/TR]
[TR]
[TD]Eugene[/TD]
[TD]Hernandez[/TD]
[TD]0 Hanover Plaza[/TD]
[TD]Wilmington[/TD]
[TD]DE[/TD]
[TD="align: right"]19897[/TD]
[/TR]
[TR]
[TD]Anne[/TD]
[TD]Ortiz[/TD]
[TD]0 Hoepker Parkway[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92110[/TD]
[/TR]
[TR]
[TD]Cynthia[/TD]
[TD]Howard[/TD]
[TD]0 Manufacturers Center[/TD]
[TD]San Antonio[/TD]
[TD]TX[/TD]
[TD="align: right"]78260[/TD]
[/TR]
[TR]
[TD]Louis[/TD]
[TD]Burke[/TD]
[TD]0 Manufacturers Center[/TD]
[TD]San Antonio[/TD]
[TD]TX[/TD]
[TD="align: right"]78260[/TD]
[/TR]
[TR]
[TD]Rachel[/TD]
[TD]Patterson[/TD]
[TD]0 Meadow Valley Avenue[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92170[/TD]
[/TR]
[TR]
[TD]Jonathan[/TD]
[TD]Bradley[/TD]
[TD]0 Novick Pass[/TD]
[TD]Dallas[/TD]
[TD]TX[/TD]
[TD="align: right"]75372[/TD]
[/TR]
[TR]
[TD]Annie[/TD]
[TD]Bradley[/TD]
[TD]0 Novick Pass[/TD]
[TD]Dallas[/TD]
[TD]TX[/TD]
[TD="align: right"]75372[/TD]
[/TR]
[TR]
[TD]Timothy[/TD]
[TD]Bradley[/TD]
[TD]0 Novick Pass[/TD]
[TD]Dallas[/TD]
[TD]TX[/TD]
[TD="align: right"]75372[/TD]
[/TR]
[TR]
[TD]Barbara[/TD]
[TD]Spencer[/TD]
[TD]0 Sachs Plaza[/TD]
[TD]Detroit[/TD]
[TD]MI[/TD]
[TD="align: right"]48232[/TD]
[/TR]
[TR]
[TD]Amanda[/TD]
[TD]Gomez[/TD]
[TD]0 Spohn Parkway[/TD]
[TD]North Port[/TD]
[TD]FL[/TD]
[TD="align: right"]34290[/TD]
[/TR]
[TR]
[TD]Billy[/TD]
[TD]Kim[/TD]
[TD]0 Sutteridge Trail[/TD]
[TD]Camden[/TD]
[TD]NJ[/TD]
[TD="align: right"]8104[/TD]
[/TR]
[TR]
[TD]Cheryl[/TD]
[TD]Nichols[/TD]
[TD]0 Sutteridge Trail[/TD]
[TD]Camden[/TD]
[TD]NJ[/TD]
[TD="align: right"]8104[/TD]
[/TR]
[TR]
[TD]Jacqueline[/TD]
[TD]Rodriguez[/TD]
[TD]0 Sutteridge Trail[/TD]
[TD]Camden[/TD]
[TD]NJ[/TD]
[TD="align: right"]8104[/TD]
[/TR]
[TR]
[TD]Antonio[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
[TR]
[TD]Dorothy[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
[TR]
[TD]Albert[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
[TR]
[TD]Jean[/TD]
[TD]Weaver[/TD]
[TD]00 Lunder Pass[/TD]
[TD]San Diego[/TD]
[TD]CA[/TD]
[TD="align: right"]92160[/TD]
[/TR]
</tbody>[/TABLE]