Hello chad portman,
The macro below has been added to the the attached workbook. There is a button on the "Desired Output" to run it. It uses 2 For Each Next loops to create the "Desired Output".
While this macro works with your sample data, it may not with your actual data unless the following conditions apply...- There are no column headers used.
- There is at least one blank row and column around the input and output data areas
Macro Code
Sub Macro1()
Dim DstRng As Range
Dim CellA As Range
Dim CellB As Range
Dim SrcRng As Range
Set SrcRng = Sheet1.Range("A1").CurrentRegion
Set DstRng = Sheet2.Range("A1:C1")
DstRng.CurrentRegion.ClearContents
For Each CellA In SrcRng.Columns(1).Cells
For Each CellB In SrcRng.Columns(2).Cells
If Not IsEmpty(CellA) Then
DstRng.Value = Array(CellA, CellB, CellA.Offset(0, 2))
Set DstRng = DstRng.Offset(1, 0)
End If
Next CellB
Next CellA
End Sub
Bookmarks