K
K
Hi all, does any friend know that how can I make below formula work
MATCH(A2,$K$2:$M$30,0)
MATCH(A2,$K$2:$M$30,0)
I'd just insert the formula into the macro:
Dim wks as worksheet
dim LastRow as long
set wks = worksheets("Sheet1")
with wks
lastrow = .cells(.rows.count,"A").end(xlup).row
with .range("B2:B" & lastrow)
.formula = "=if(countif($k$2:$M$30,a2)=0,""no match"",""match"")"
.value = .value 'convert formulas to values???
end with
end with
Notice that the double quotes in the formula string are doubled. Something to
watch out for if/when you change that formula.
--
Dave Peterson- Hide quoted text -
- Show quoted text -