Hi ppawle, I hope this will helpe youe .
Sub Test() Dim rngData As Range Dim lngRow As Long Dim lngrow1 As Long Dim strItem As String With ThisWorkbook.Worksheets("Sheet1") Set rngData = Intersect(.Range("A1").CurrentRegion, .Range("A1").CurrentRegion.Offset(1)) For lngRow = 1 To rngData.Rows.Count If rngData.Cells(lngRow, 2) = "" Then strItem = rngData.Cells(lngRow - 1, 3).Value lngrow1 = lngRow While (rngData.Cells(lngrow1, 2) = "" And rngData.Cells(lngrow1, 3) <> "") strItem = strItem & " " & rngData.Cells(lngrow1, 3) lngrow1 = lngrow1 + 1 Wend rngData.Cells(lngRow - 1, 4).Value = strItem strItem = vbNullString lngRow = lngrow1 End If Next End With End Sub Regards Prince On Thursday, December 20, 2012 6:26:13 PM UTC+5:30, ppawle.excel wrote: > > Dear Experts, > > Please let me know any formula or macro to merge text together . Query is > it should conditionally merge text. > > In the Sample file attached , I want Col C texts are merged in Col D, as > long as there is no data in Col A > > Regards > PP > -- Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 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) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To post to this group, send email to excel-macros@googlegroups.com. To unsubscribe from this group, send email to excel-macros+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros?hl=en.