how to convert COUNTIF() into VBA macro

Joined
May 2, 2011
Messages
1
Reaction score
0
I sincerely appreciate whoever's help on this question,,,,

I've a problem with countif(),
I want to convert the function as macro,

so here's the case..

hqvrpylv.jpg


alternate :

Name math Bio chemistry 100 90 80
george 80 50 75 0 0 1
mark 70 80 80 0 0 2
hans 90 90 60 0 2 0

I want to count the grade which looks like the example above,
If I want to count 80 of george's then the value of the column will be the same as total the 80 of george's grade (1),

here's the formula

COUNTIF(B2 : D2,100), and so on....

I want to convert the condition into macro but no like if we record a macro, because it can't be dynamic...

thanks in advance...
 

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