I have a macro for comparing two columns using MATCH, IF,ISNA - TopicsExpress



          

I have a macro for comparing two columns using MATCH, IF,ISNA functions .I have to run this macro for many workbooks of which no.of entries in columns may vary from files to files. So I put common range from 2 to 20000. Can I set a range from 2 to the last data cell of each columns? Range(Q2).Select ActiveCell.FormulaR1C1 = =MATCH(RC[-16],C[-9],0) Range(Q2).Select Selection.AutoFill Destination:=Range(Q2:Q20000), Type:=xlFillDefault Range(Q2:Q20000).Select Range(D2).Select ActiveCell.FormulaR1C1 = =IF(ISNA(RC[13]),MISSING,MATCHED) Range(D2).Select Selection.AutoFill Destination:=Range(D2:D20000), Type:=xlFillDefault Range(D2:D20000).Select
Posted on: Wed, 01 Oct 2014 19:07:49 +0000

Trending Topics



Recently Viewed Topics




© 2015