How can I emulate MROUND in VBA

J

Jay Fincannon

Hey All;

How can I convert this formula to VBA?

=MROUND((COUNT($B$1:$B413)/COUNT($B:$B)*100),5)
using the result of VBA's Find function as the changeable row number.

win98 excel2002

Thanks, Jay
 
M

Myrna Larson

If X contains your number, and Multiple is the 2nd argument to MROUND,

x = Round(x / Multiple, 0) * Multiple
 

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