A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yes, Ideally there won't be any blanks for Category_1 for this example there are blanks but no need to include blanks filter in the code.
For Category_2 Column T and Column U has the required data.
For Category_3 just the Column T
For Category_4 nothing to lookup it stays N/A
For Category_2 and Category_3 there are no blanks same is the case with Category_1
I must have missed to fill in all the rows.
Category_3 Columns A to E rows are merged if the rows values are the same.
I attempted to write the code after setting the filter based on the wsSource rows. I need to create empty rows to paste the data. I might be doing it in a lengthy manner. I better leave it to you.
The below code is incomplete, code has yet to determine the numbers of rows based on COUNTA that was used earlier in the code.
Sub add_rows()
Dim wb As Workbook
Dim ws As Worksheet
Dim ws3 As Worksheet
Dim LastRow As Long
Set wb = ActiveWorkbook
Set ws = wb.Sheets(4)
Set ws3 = wb.Sheets(3)
LastRow = wb.Sheets(3).Range("A" & Rows.Count).End(xlUp).Row - 3
For r = 7 To LastRow
ws.Cells(r, 1).EntireRow.Insert
Next r
End Sub