xl macro

  • Thread starter Thread starter mcb
  • Start date Start date
M

mcb

How do i write a macro that will move to each cell in a
column and, if the value meets a certain "IF" requirement,
select it and add it to the data range for the "average
function" to evaluate? (for xl 97)
 
How about using worksheet functions to calculate average as follows:

=SUMIF(A1:A1000,"apples")/COUNTIF(A1:A1000,"apples")
 
JWolf,

Thanks a million for your help. I didn't know those
functions existed. It sure simplified things didn't it?
You saved me a lot of grief!

Thanks again,
mcb
 

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

Back
Top