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?
my first experince with MEDIA calculation
-
- PlatinumLounger
- Posts: 4353
- Joined: 26 Apr 2010, 17:36
-
- Administrator
- Posts: 78446
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: my first experince with MEDIA calculation
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?
And what exactly do you mean by "MEDIA of week, month and year" if you have an array of numbers?
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4353
- Joined: 26 Apr 2010, 17:36
Re: my first experince with MEDIA calculation
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
-
- Administrator
- Posts: 78446
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: my first experince with MEDIA calculation
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)
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
Hans