+ Reply to Thread
Results 1 to 12 of 12

Increment cell value until another cell reaches its maximum

  1. #1
    Registered User
    Join Date
    07-25-2019
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    5

    Increment cell value until another cell reaches its maximum

    I am working with a simple beam calculation that gives the maximum load on the supports. Currently I can increment the start of the load manually until I reach a maximum value. What I would like to be able to do is automatically increment the starting position of the axles to determine the max load on the center support.

    I've attached the spreadsheet in question. Cell D25 is the cell I want to increment until cell Q27 reaches a maximum. The increment value doesn't have to be any smaller than 100mm.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by AliGW; 07-25-2019 at 11:57 AM. Reason: Rogue apostrophe removed.

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Increment cell value until another cell reaches its maximum

    It seems that the lowest value for D25 is 0.001.
    What could be the largest possible value, what ever the result in Q27 ?
    Last edited by AliGW; 07-25-2019 at 11:56 AM.
    - Battle without fear gives no glory - Just try

  3. #3
    Registered User
    Join Date
    07-25-2019
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Increment cell value until another cell reaches its maximum

    The largest value will be the sum of D13 (Span length 1) and D19 (Span length 2), the combined length of the two spans. That will basically say the trailers have completely crossed both spans.
    Last edited by AliGW; 07-25-2019 at 11:56 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Increment cell value until another cell reaches its maximum

    See how next code can help.
    The number of steps (NBs) is 100 you can increase it but it will takes longer...!
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-25-2019
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Increment cell value until another cell reaches its maximum

    Quote Originally Posted by PCI View Post
    See how next code can help.
    The number of steps (NBs) is 100 you can increase it but it will takes longer...!
    Thank you very much! It finds the maximum as expected, now I just have to figure out how the vba code does that. I'll dig into it and let you know if I have any questions. Thanks again.

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Increment cell value until another cell reaches its maximum

    I'll dig into it and let you know if I have any questions
    Yes of course, but don't worry it is really simple

  7. #7
    Registered User
    Join Date
    07-25-2019
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Increment cell value until another cell reaches its maximum

    Quote Originally Posted by PCI View Post
    Yes of course, but don't worry it is really simple
    Is it possible to output the values of D25 and Q27 as they progress through the steps so that a graph can be made to show the bell curve?

  8. #8
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Increment cell value until another cell reaches its maximum

    Is it possible to output the values of D25 and Q27 as they progress through the steps so that a graph can be made to show the bell curve?
    Yes, but where would you like to stack the data ??

  9. #9
    Registered User
    Join Date
    07-25-2019
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    5

    Re: Increment cell value until another cell reaches its maximum

    Quote Originally Posted by PCI View Post
    Yes, but where would you like to stack the data ??
    I would say a third sheet with the data would work. Somewhere, where the user won't have to worry about it. The graph will most likely live on the second sheet as verification.

  10. #10
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Increment cell value until another cell reaches its maximum

    See next code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,850

    Re: Increment cell value until another cell reaches its maximum

    As a possible alternative, would you be allowed to use the built in Solver utility? https://support.office.com/en-us/art...B-F63E45925040 Starting from your sample file in the OP, I opened the file, called Solver, and told it to set Q27 to a maximum by changing D25. It quickly resolved to a solution of D25=26200 and Q27=481.68.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  12. #12
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Increment cell value until another cell reaches its maximum

    As a possible alternative, would you be allowed to use the built in Solver utility?
    Yes but there will not have any record as you have it now in sheet data.
    If you just need the first result , yes record a macro doing the job and launch it when you need.
    Last edited by PCI; 07-26-2019 at 03:34 PM.

+ 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. Replies: 1
    Last Post: 12-26-2016, 05:39 AM
  2. [SOLVED] Formula to stop count hours once it reaches maximum
    By Robert1960 in forum Excel General
    Replies: 12
    Last Post: 06-15-2016, 12:00 PM
  3. [SOLVED] How to restrict data if it reaches the maximum cells
    By nitinsrobert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-24-2013, 07:22 AM
  4. Cell fills as its reaches maximum value
    By mackem1979 in forum Excel General
    Replies: 1
    Last Post: 01-31-2013, 08:20 AM
  5. [SOLVED] Control Button to increment by 1 and then select next cell in row to increment that cell
    By rammergu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2012, 07:35 PM
  6. When cell reaches maximum value, the supplus should be added next cell
    By Chescoboy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2011, 03:57 AM
  7. macro to produce records reaches maximum rows
    By mrroling2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2011, 05:51 PM

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