A macro approach. Sub lineemupSAS() Dim i As Long Dim j As Integer Application.ScreenUpdating = False For i = 1 To Cells(Rows.Count, 2).End(xlUp).Row Step 4 For j = 1 To 4 Cells(i, j + 2).Value = Cells(j + 1, 2).Value Next j Next i ‘clean up Columns("c").SpecialCells(xlCellTypeBlanks).EntireRow.Delete Columns("a").Delete Columns.AutoFit Application.ScreenUpdating = True End Sub
Don Guillett Microsoft MVP Excel SalesAid Software dguille...@gmail.com From: Gulam Hameed Sent: Monday, March 12, 2012 3:17 AM To: excel-macros@googlegroups.com Subject: RE: $$Excel-Macros$$ Add business address in a single row Dear Lokesh Please find attached it may helpful for you. Thanks & Regards Hameed From: excel-macros@googlegroups.com [mailto:excel-macros@googlegroups.com] On Behalf Of Lokesh Loki Sent: Sunday, March 11, 2012 5:41 PM To: excel-macros@googlegroups.com Subject: $$Excel-Macros$$ Add business address in a single row Hi Experts, I need to add these business addresses in a single row, so could you please provide me a formula so that I can do further needful action. Example :- Shapers Hair Salon & Spa, 27- 565 Bernard Ave., Kelowna, British Columbia, V1Y 8R4, Kelowna, NULL Name: Shapers Hair Salon & Spa Address: 27- 565 Bernard Ave., Kelowna, British Columbia, V1Y 8R4 City: Kelowna State: NULL Regards Lokesh.M -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com -- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com