Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3698864
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:02:00+00:00 2026-05-19T05:02:00+00:00

I have a parameter in A1 that influences TOTAL in a random and very

  • 0

I have a parameter in A1 that influences “TOTAL” in a random and very high standard deviation. Lets say A1 is 2…then TOTAL Values could be 1…5…17…3…2..2…etc If A1 is 1 then TOTAL Values could be 1….3…5..15…9…10..etc

I would like solver to figure out which value in A1 would equate to the best AVERAGE of TOTAL after X runs. Where I can define X.

In my example you can tell that A1=1 is better on average after 6 runs. However, if you run solver normally it would say A1=2 is the best, because it produced a value of 17.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T05:02:01+00:00Added an answer on May 19, 2026 at 5:02 am

    This doesn’t seem to be the kind of problem you solve with solver. Why not write a macro that loops through the values of A1, X times, keeping a running sum of the TOTAL values for each A1? When it’s all over, the largest sum is also the largest average.

    The inner loop will be something like this:

    Redim tSum(1 to maxA1)
    for i = 1 to maxA1
        tSum(i) = 0
        for j = 1 to X
            [A1] = i
            Application.calculate
            tSum(i) = tSum(i) + TOTAL
        next j
    next i
    'now step through tSum. The index of the largest value 
    ' is the value of A1 desired. Put it in a handy cell.
    

    It has to be a macro, not a function because it changes A1.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just have one parameter that can take two values. I would like to
I have a parameter called VoucherType that can multiple values selected by the user
I have an sql query that has a parameter that can be null in
I have a method with an out parameter that tries to do a type
I have a const char arr[] parameter that I am trying to iterate over,
I have methods with more than one parameter that are guarded against bad input
The only SET parameter that I have found specific guidance for is SET TRANSACTION
I have a report with a parameter that is populated by a list of
If I have a method with a parameter that's an interface, whats the fasts
So I have a Sybase stored proc that takes 1 parameter that's a comma

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.