Thanks for the help Jerry. The part 4 code:
Sub MergeItems()
'Merge QTY column for same items
Dim LastRow As Long, Rw As Long
Dim DelRNG As Range
Application.ScreenUpdating = False
LastRow = Range("A" & Rows.Count).End(xlUp).Row
Set DelRNG = Range("A" & LastRow + 10)
For Rw = 2 To LastRow
If Application.WorksheetFunction.CountIf(Range("A2:A" & Rw), _
Range("A" & Rw)) > 1 Then
Set DelRNG = Union(DelRNG, Range("A" & Rw))
Else
Range("B" & Rw) = Application.WorksheetFunction.SumIf(Range("A:A"), _
Range("A" & Rw), Range("B:B"))
End If
Next Rw
DelRNG.EntireRow.Delete xlShiftUp
Set DelRNG = Nothing
Application.ScreenUpdating = True
End Sub
Seemed to do the trick for what I am doing. However, when I tried using it for data in which column A was a combination of numbers and tex (i.e. EE.1985.DOG), the quantity column had all "0"'s (column A merged successfully).
Outside of that, I had a couple of other questions too.
If I wanted the original data to remain and not be displaced by the new data generated by the subroutine macro (the new stuff appears a column or two to the right, for example), how would I approach that?
Also, what if the data was not in columns A and B, like for example the user had to select the first column and then select the second column?
Thanks for the help, I'm pretty new to VBA and have only really done some basic stuff with functions. I appreciate it.
Bookmarks