+ Reply to Thread
Results 1 to 3 of 3

How do I set up a while loop for formulas?

  1. #1
    frustrated
    Guest

    How do I set up a while loop for formulas?

    Someone help me out. I have a few different equations that require iteration
    in order to solve. The variable within the equations are based off of
    inputed data by the user. Is there any way that I can create a while loop
    within excel to calculate the values that I need?

  2. #2
    STEVE BELL
    Guest

    Re: How do I set up a while loop for formulas?

    are you looking for something like

    Do while x < 125
    ' code
    Loop

    --
    steveB

    Remove "AYN" from email to respond
    "frustrated" <[email protected]> wrote in message
    news:[email protected]...
    > Someone help me out. I have a few different equations that require
    > iteration
    > in order to solve. The variable within the equations are based off of
    > inputed data by the user. Is there any way that I can create a while loop
    > within excel to calculate the values that I need?




  3. #3
    Diverse Computing
    Guest

    RE: How do I set up a while loop for formulas?

    First, you need to be more specific with your question. It is extremily hard
    to understand what you want done. Also, I would recommend leaving out lines
    like " Is there any way that I can create a while loop within excel to
    calculate the values that I need?", but rather simply state what you want
    done. It just makes it easier to come up with a solution for you.
    Now on to your problem. If I understand you correctly, you want to take
    data imputed by the user and process it inside an equation? If this is the
    case you can just use an inputbox function.

    Value1 = InputBox("Enter Value 1:")
    Value2 = InputBox("Enter Value 2:")
    Solution = Value1*Value2

    If you have multiple values to enter at once, you can add a while loop and
    modify the last value with a vbhYesNo.

    "frustrated" wrote:

    > Someone help me out. I have a few different equations that require iteration
    > in order to solve. The variable within the equations are based off of
    > inputed data by the user. Is there any way that I can create a while loop
    > within excel to calculate the values that I need?


+ 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