My query is very simple but seriously it takes a hell lot of time to execute.
SELECT * 
FROM MASTER 
WHERE MASTER.ID NOT IN (SELECT SLAVE.ID 
                        FROM SLAVE 
                        WHERE SLAVE.ID IS NOT NULL)
"Query means that I need all the rows in MASTER sheet which are not present in the slave sheet and I do that by comparing ID of both."
Another option is to use NOT EXISTS instead of NOT IN.
Master has 2000 rows and Slave has 800 rows. It takes like 5-7 minutes in VBA to compute this. Can anyone point out to some better methods or inbuilt functions that I can use please. Thanks.
 
     
     
    