Hi kersplash, thanks for your reply. This is my attempt so far:
Sub DeleteMatches()
'Declare variables
Dim Direction As Variant
Dim OrderType As Variant
Dim Amount As Variant
Dim CCY As Variant
Dim Rate As Variant
Dim RowCount As Integer
Dim RowCt As Integer
Dim Formula As Variant
Dim iRow As Integer
Dim colNum As Variant
Sheets("EXTRACT").Select
RowCount = Cells(Rows.Count, 1).End(xlUp).Row - 1 'creating variable for total rows in deleted data set
RowCt = Cells(Rows.Count, 11).End(xlUp).Row - 1 'creating variable for toral rows in another deleted data set
iRow = 2
Direction = Range("K" & iRow)
OrderType = Range("L" & iRow)
Amount = Range("M" & iRow)
CCY = Range("N" & iRow)
Rate = Range("P" & iRow)
'colNum = Application.Match(1,((B1:B2=OrderType)*(C1:C2=Direction)*(D:D=Amount)*(E:E=CCY)*(H:H=Rate)),0)
'Formula = "MATCH(1,((B:B="" & OrderType & "")*(C:C="" & Direction & "")*(D:D="" & Amount & "")*(E:E="" & CCY& "")*(H:H="" & Rate & "")),0)"
Formula = "MATCH(1,((B:B=OrderType)*(C:C=Direction)*(D:D=Amount)*(E:E=CCY)*(H:H=Rate)),0)"
'Formula = "MATCH(1,((B:B=L2)*(C:C=K2)*(D:D=M2)*(E:E=N2)*(H:H=P2)),0)"
'colNum = 0
'colNum = Worksheets("KOOLTRA RAW").Evaluate("MATCH(1,((B:B=OrderType)*(C:C=Direction)*(D:D=Amount)*(E:E=CCY)*(H:H=Rate)),0)")
None of the formulas work at the bottom when I try using the variables in order to loop through the list with iRow = iRow + 1. Once I am able to do this, I believe I will have finished. Instead colNum = Formula(Evaluate) returns an error. Any advice? I have tried searching extensively. Similarly used the Watcher tab to see what the value was while executing.
Bookmarks