Using Excel Worksheet functions in Arrays

  • Thread starter Thread starter The Roon
  • Start date Start date
T

The Roon

I have populated a multidimensional array, part of which is exampled as
follows:

JAN05 Q105 45.3 12.5 16.6 88.9 etc
FEB05 Q105 55.6 23.6 58.4 65.2
MAR05 Q105 25.7 36.5 98.5 45.7
APR05 Q205 98.4 25.7 23.9 59.7
MAY05 Q205 39.5 56.8 89.2 25.7
etc

I want to be able find and average all numbers in a particular column that
match a designation in Column 2, eg Q105, in the array. This array is not
populated in a worksheet, and nor do I want it to be.

I can do this by looping through every row in the array for a specific
column, but the array is 150 rows by 20 columns but it seems a cumbersome
approach.

Can I do this using the Dbase Worksheet functions that can be used in VBA ?

Advice appreciated.
 
150 x 20 is a tiny matrix. If you know how to loop through it just do
so.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
 

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