I've just noticed that the last sample csv file you gave me didn't have invoice numbers allocated to some of the transactions. To make sure that all the unreconciled transactions are picked up, change the the 1 to a 3 (in red) in the routine below.
Sub MatchCheque()
Dim ar, i As Long, rw As Long, lr As Long, y As Long
lr = Cells(Rows.Count, 3).End(xlUp).Row
rw = 5
Range("F5:H" & Rows.Count).ClearContents
Range("A5:C" & Rows.Count).Interior.Color = xlNone
For i = 5 To lr
If Cells(i, 3) = Range("f3") Then
Cells(rw, 6) = Cells(i, 1)
Cells(rw, 7) = Cells(i, 2)
Cells(rw, 8) = Cells(i, 3)
rw = rw + 1
Range("A" & i & ":D" & i).Select
Selection.Interior.ColorIndex = 44
Cells(i, 4) = "X"
y = 1
End If
Next
If y = 0 Then
If MsgBox("Not found as a single transaction, do you want to try Dave's multiple function?", vbYesNo, "Sorry...") <> vbYes Then Exit Sub
Dave
End If
Application.EnableEvents = True
End Sub
Alternatively, when loading the CSV data, if the Invoice # is blank then load the Payment #