+ Reply to Thread
Results 1 to 3 of 3

excel algorithm help

  1. #1
    Registered User
    Join Date
    12-19-2014
    Location
    london, england
    MS-Off Ver
    2014
    Posts
    5

    excel algorithm help

    Hi All,

    I am currently looking for some help with a project, the project should do the following:

    cell B4,C4,D4 should pick a number 1-100, this should then give the MAX minimum value returned and MAX maximum total. - however, it will need to work out what values to put in this field to get the max MAX / max MIN.

    what would be the best way of going about this?


    I currently have a spreadsheet which will do the following:

    cell B3,C3,D3 have decimal numbers
    cell B4,C4,D4 have a figure (1-100)
    cell B6 =(B3*B4)+G6
    cell C6 =(C3*C4)+G6
    cell D6 =(D3*D4)+G6
    cell B7 =(B6-G7)
    cell C7 =(C6-G7)
    cell D7 =(D6-G7)
    cell G3 =MIN(B7,C7,D7)
    cell G4 =MAX(B7,C7,D7)
    cell G6 =MIN(50,MAX(B4,D4))
    cell G7 =(B4+C4+D4)

    IF B3 = 2.8, C3 = 3.5, D3 = 2.6
    AND B4 = 47, C4 = 50, D4 = 50

    then

    B6 = 181.6
    C6 = 225
    D6 = 170
    B7 = 34.6
    C7 = 78
    D7 = 33
    G3 = 33
    G4 = 78
    G6 = 50
    G7 = 147

    i need to try and calculate G3 and G4 to be the highest possible number.
    Last edited by Kyle1234; 12-19-2014 at 10:48 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: excel algorithm help

    If you attach a sample workbook, then you don't need to describe the contents of each cell - we could see that for ourselves, and you can point out in your file what you want to achieve. The FAQ describes how to attach a file to one of your posts.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: excel algorithm help

    Quote Originally Posted by Kyle1234 View Post
    I am currently looking for some help with a project, the project should do the following:

    cell B4,C4,D4 should pick a number 1-100, this should then give the MAX minimum value returned and MAX maximum total. - however, it will need to work out what values to put in this field to get the max MAX / max MIN.

    what would be the best way of going about this?
    I would use VBA to run through all possible values of B4, C4 and D4, if they are integers, and determine the combination that results in the max G3 and max G4 at the same time.

    It takes about 8 sec on my ancient computer to run through all 1 million combinations, doing all calculations in VBA. YMMV.

    I'm disinclined to share the VBA code, since this might be a homework assignment.

    (There might be a clever way to do this using Solver. I don't see it.)

    But I'm not sure I understand the requirement. Greater max G3 and max G4 can be derived separately from different combinations of B4, C4 and D4.

+ 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. Rainflow algorithm in Excel
    By vamsi tolikonda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2017, 02:27 PM
  2. Luhn Algorithm Excel Formula
    By guy2guy in forum Excel General
    Replies: 1
    Last Post: 03-21-2014, 03:53 AM
  3. Excel Protect Sheet Algorithm
    By Fish10800 in forum Excel General
    Replies: 2
    Last Post: 11-08-2011, 06:23 PM
  4. Chi-squared P-value Algorithm in Excel
    By DuyTran in forum Excel General
    Replies: 0
    Last Post: 09-25-2011, 09:38 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