+ Reply to Thread
Results 1 to 3 of 3

Iterative Formula Calculations with Randomly Generated Variable Values

  1. #1
    Registered User
    Join Date
    04-05-2017
    Location
    London, England
    MS-Off Ver
    2016
    Posts
    1

    Iterative Formula Calculations with Randomly Generated Variable Values

    Good day,

    First off, I would like to state that I am not a proficient user of Excel. I've done some research online in an attempt to find a solution to my problem, but to no avail. I would appreciate any kind of assistance and I'd like to thank everyone in advance for their time and efforts.

    My problem is as follows:

    I have 3 cells, lets name them A1, B1 and C1
    C1 contains a Fluid Mechanics formula that requires a Value be inputted in B1 to generate a value.
    A1 just contains a number value, say 150.

    Is there a way where excel would input random values in B1 and recalculate the formula in column C1 iteratively until the results in C1 equal the number value in A1?

    I do apologize if i haven't explained this clearly enough. Id be happy to explain further if the need arises.

    Thank you,
    Muradi

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Iterative Formula Calculations with Randomly Generated Variable Values

    Hi,

    I think that the goal seek fuctionality in excel will do as you require, although to target a value in a specific cell would probably require some vba.

    https://www.timeatlas.com/excel-goal-seek/
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,462

    Re: Iterative Formula Calculations with Randomly Generated Variable Values

    Is there a way where excel would input random values in B1 and recalculate the formula in column C1 iteratively until the results in C1 equal the number value in A1?
    Do you really want your algorithm to try "random" numbers until it accidentally stumbles upon the correct root? It seems to me that a fluid mechanics problem would prefer a Newton-Raphson or bisection or similar root finding algorithm where the test values are not exactly randomly chosen but are chosen by much more efficient algorithms.

    As sweep suggests, the built in goal seek and solver utilities are probably the easiest ways to implement these kind of root finding algorithms. If you are interested, I illustrate (using polynomials) how to program these into the spreadsheet without Goal seek/Solver here: https://www.excelforum.com/tips-and-...ind-roots.html
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem with complicated iterative calculations
    By saaadi1616 in forum Excel General
    Replies: 3
    Last Post: 03-27-2017, 11:13 AM
  2. Iterative calculations
    By MuhammadZiaUrRehman in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-18-2016, 08:00 AM
  3. Checking the minimum of iterative calculations:
    By rajeshrajagopal in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-07-2016, 07:17 AM
  4. Replies: 4
    Last Post: 12-10-2012, 06:22 PM
  5. Fixing a divide by 0 error with iterative calculations
    By jrm0523 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 02:30 PM
  6. Replies: 9
    Last Post: 06-25-2012, 08:56 PM
  7. [SOLVED] Randomly Generated List / Macro
    By carl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-09-2006, 12:15 AM

Tags for this Thread

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