my first experince with MEDIA calculation

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

my first experince with MEDIA calculation

Post by sal21 »

I have 16 element in array, during the loop of array i summ a value of the item 1.
The actual summ is 134.456,89

How to calculate the MEDIA of week, month and year, based the numbers of the 16 elelments?

User avatar
HansV
Administrator
Posts: 78446
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: my first experince with MEDIA calculation

Post by HansV »

Do you mean the average?

And what exactly do you mean by "MEDIA of week, month and year" if you have an array of numbers?
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

Re: my first experince with MEDIA calculation

Post by sal21 »

HansV wrote:Do you mean the average?

And what exactly do you mean by "MEDIA of week, month and year" if you have an array of numbers?

Do you mean the average?
YES, sorry (media is Italian definition)

MEDIA = average

The 16 items into array are refered only for one day in my case for 17/07/2014

User avatar
HansV
Administrator
Posts: 78446
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: my first experince with MEDIA calculation

Post by HansV »

If you're doing this in Excel, you can use

Dim arr ' This is the array variable
Dim Media As Double
' Code to fill array
...
...
' Compute the average
Media = Application.Average(arr)
Best wishes,
Hans