Application.CounIf

M

Manish

Hi all,

How can I use a formula in VB to something like:

Application.CountIf(Range(ActiveCell.offset(-
1,0):"A2"),ActiveCell)<>0

To see whether th same text is there in the range i row
above active cell thru A2 with activecell text..

any help?

Thanks

Manish
 
J

JohnI

Manish,

Try something like-

Application.CountIf (Range(ActiveCell.Offset(-1, 0), Range("A2"))) <> 0


regards,

JohnI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top