![]() |
|
#12
|
|||
|
|||
|
Give this a shot
Code:
Sub CombineData_v3()
Dim i As Long, lr As Long, helpCol As Long
Dim firstFcst As Long
With Sheets("Vendor Report")
lr = .Range("S" & Rows.Count).End(xlUp).Row
firstFcst = .Cells(1, .Columns.Count).End(xlToLeft).Column
helpCol = 30 'AD
For i = lr To 3 Step -1
If .Cells(i, helpCol) = "A" And .Cells(i, "S") = .Cells(i - 1, "S") Then
.Cells(i - 1, "F").Resize(, firstFcst - 6).Value = .Cells(i, "F").Resize(, firstFcst - 6).Value
.Rows(i).Delete
End If
Next i
End With
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to combine multiple rows in to one through an equation on EXCEL? | emitb | Excel | 1 | 07-31-2018 04:22 PM |
| Combine multiple 'form data' into one all-encompassing Word document | Padraig Clarke | Word | 1 | 04-19-2017 05:28 AM |
| Summarising data from multiple rows | mardecl1 | Excel | 5 | 01-06-2017 04:05 AM |
| Macro to Combine Multiple Rows into One Row | brunssl2 | Excel Programming | 10 | 01-13-2015 01:56 PM |
data roll up under unique identifier
|
NewGirl | Mail Merge | 1 | 11-15-2012 04:47 PM |