Sub macro18()
Sheets("May2019").Cells(2, "N").Value = Application.Match(Sheets("May2019").Cells(2, "B").Value, Sheets("Futures_Data").Range("$B$2:$B$730"), 0)
Sheets("May2019").Cells(2, "O").Value = Application.Match(Sheets("May2019").Cells(2, "C").Value, Sheets("Futures_Data").Range("$C$2:$C$730"), 0)
End sub
I am getting
#N/A
, when I run the above code in marcoI am getting the immediate row number when use the following functions when match found. Is there any wrong with the above VBA. I am checking the dates with same format.
=MATCH(B2,Futures_Data!$B$2:$B$730,0) =MATCH(C2,Futures_Data!$C$2:$C$730,0)