Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
il_102
 
Posts: n/a
Default How do i compute the average value of 100 iterations?

I need to compute the avg of all 100 iteraions. I set the iterations in the
Tool-options-calculation-iteration. Now i need to compute the avg of all
100 iterations. Any help would be greatly appreciatted.
Thanks,
Il
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default How do i compute the average value of 100 iterations?

Il,

You would need to use VBA to do the actual calc....

HTH,
Bernie
MS Excel MVP


"il_102" wrote in message
...
I need to compute the avg of all 100 iteraions. I set the iterations in the
Tool-options-calculation-iteration. Now i need to compute the avg of all
100 iterations. Any help would be greatly appreciatted.
Thanks,
Il



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
il_102
 
Posts: n/a
Default How do i compute the average value of 100 iterations?

Is there an example of something that i can use to do this?
thanks

"Bernie Deitrick" wrote:

Il,

You would need to use VBA to do the actual calc....

HTH,
Bernie
MS Excel MVP


"il_102" wrote in message
...
I need to compute the avg of all 100 iteraions. I set the iterations in the
Tool-options-calculation-iteration. Now i need to compute the avg of all
100 iterations. Any help would be greatly appreciatted.
Thanks,
Il




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default How do i compute the average value of 100 iterations?

Try something like the sub below, for a formula in cell A1.

HTH,
Bernie
MS Excel MVP

Sub Macro1()
Dim i As Integer
Dim mySum As Double

With Application
.Iteration = True
.MaxIterations = 1
End With

For i = 1 To 100
Range("A1").Calculate
mySum = mySum + Range("A1").Value
Next i

MsgBox "The average is " & mySum / 100

With Application
.Iteration = False
End With

End Sub

"il_102" wrote in message
...
Is there an example of something that i can use to do this?
thanks

"Bernie Deitrick" wrote:

Il,

You would need to use VBA to do the actual calc....

HTH,
Bernie
MS Excel MVP


"il_102" wrote in message
...
I need to compute the avg of all 100 iteraions. I set the iterations in
the
Tool-options-calculation-iteration. Now i need to compute the avg
of all
100 iterations. Any help would be greatly appreciatted.
Thanks,
Il






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
il_102
 
Posts: n/a
Default How do i compute the average value of 100 iterations?

Thank you very much!!! it helped a lot

"Bernie Deitrick" wrote:

Try something like the sub below, for a formula in cell A1.

HTH,
Bernie
MS Excel MVP

Sub Macro1()
Dim i As Integer
Dim mySum As Double

With Application
.Iteration = True
.MaxIterations = 1
End With

For i = 1 To 100
Range("A1").Calculate
mySum = mySum + Range("A1").Value
Next i

MsgBox "The average is " & mySum / 100

With Application
.Iteration = False
End With

End Sub

"il_102" wrote in message
...
Is there an example of something that i can use to do this?
thanks

"Bernie Deitrick" wrote:

Il,

You would need to use VBA to do the actual calc....

HTH,
Bernie
MS Excel MVP


"il_102" wrote in message
...
I need to compute the avg of all 100 iteraions. I set the iterations in
the
Tool-options-calculation-iteration. Now i need to compute the avg
of all
100 iterations. Any help would be greatly appreciatted.
Thanks,
Il








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Excel Discussion (Misc queries) 1 July 6th 05 07:37 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 PM
average function in Excel 2002 Sherry New Users to Excel 13 May 8th 05 01:49 PM


All times are GMT +1. The time now is 05:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"