found this code that does half what im trying to do.
[vba]
Sub alex()
Application.ScreenUpdating = False
Dim cell, cell2 As Range
Dim lr, lr2, r As Long
Sheets.Add After:=Sheets(Sheets.Count)
ActiveSheet.Name = "result"
Sheets(1).Activate
lr = Range("A" & Rows.Count).End(xlUp).row
For Each cell In Range("A1:A" & lr)
ActiveWorkbook.Sheets(2).Activate
lr2 = Range("A" & Rows.Count).End(xlUp).row
For Each cell2 In Range("A1:A" & lr2)
If cell2.Text = cell.Text Then
cell2.EntireRow.Copy Destination:=Sheets("result").Range("A" & r)
r = r + 1
End If
Next cell2
Next cell
Application.ScreenUpdating = True
End Sub
[/vba]
the match and copy to new sheet would be useful.
but also when no match copy those cells of the row to the next empty row and leave the cells to left or right blank in the new sheet
I'm comparing data on same sheet in column F and G.
If F has no match in G add cells from A to F and leave G to I empty
If G has no match in F add cells G to I and leave A to F empty.
any takers?
Your help is greatly appreciated
Found this code in post
http://www.vbaexpress.com/forum/showthread.php?t=43277