+ Reply to Thread
Results 1 to 5 of 5

How do i compute the average value of 100 iterations?

  1. #1
    il_102
    Guest

    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. #2
    Bernie Deitrick
    Guest

    Re: 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" <il_102@discussions.microsoft.com> wrote in message
    news:87CE7217-48B9-471C-9154-754004544A3C@microsoft.com...
    >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. #3
    il_102
    Guest

    Re: 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" <il_102@discussions.microsoft.com> wrote in message
    > news:87CE7217-48B9-471C-9154-754004544A3C@microsoft.com...
    > >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. #4
    Bernie Deitrick
    Guest

    Re: 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" <il102@discussions.microsoft.com> wrote in message
    news:7E989CE9-D41F-4081-80D6-40ED0DC68E68@microsoft.com...
    > 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" <il_102@discussions.microsoft.com> wrote in message
    >> news:87CE7217-48B9-471C-9154-754004544A3C@microsoft.com...
    >> >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. #5
    il_102
    Guest

    Re: 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" <il102@discussions.microsoft.com> wrote in message
    > news:7E989CE9-D41F-4081-80D6-40ED0DC68E68@microsoft.com...
    > > 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" <il_102@discussions.microsoft.com> wrote in message
    > >> news:87CE7217-48B9-471C-9154-754004544A3C@microsoft.com...
    > >> >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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1