+ Reply to Thread
Results 1 to 18 of 18

Calculate the Lowest Value

  1. #1
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Calculate the Lowest Value

    I'm not sure if it is possible to do this with a formula in excel, but I'm hoping you guys might be able to help me... I have attached a sample workbook for reference.

    I need somehow to create a formula/function (or something!!) which will calculate what the lowest possible price is in cell F9. This will need to take into account that certain people cannot be more than their maximum percentage (Column C) and that they cannot be lower than their minimum percentages (Column D) – e.g. John may not have >20%, or <15%.

    Column E must always total 100%.

    Any help directions on how to go about doing this would be greatly appreciated!

    Price Example.xlsx
    Last edited by jsolder; 07-31-2013 at 11:02 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Calculate the Lowest Value

    Hi,

    Have you tried using the Add-In Solver?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Calculate the Lowest Value

    The lowest possible price would be the minimum.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    Wasn't aware of this function, I'll take a look and try it out.

    Quote Originally Posted by XOR LX View Post
    Hi,

    Have you tried using the Add-In Solver?

    Regards

  5. #5
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    And no, the lowest possible price wouldn't be the minimum because that wouldn't total 100%...

    Quote Originally Posted by AlKey View Post
    The lowest possible price would be the minimum.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate the Lowest Value

    Sort ascending by price, and in E2 and copy down

    =MIN(C2, 1 - SUM(E$1:E1))

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    shg, useful formula, however you'll notice that for Paul the Pct in Column E is lower than the minimum (D8)
    Last edited by jsolder; 07-31-2013 at 10:03 AM.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate the Lowest Value

    Missed that.

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    The problem is that Column F, Tot Pct now totals more than 100%. I can't quite figure out how to modify the formula to ensure that it doesn't exceed 100%...

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Calculate the Lowest Value

    I had a quick go with Solver on the Evolutionary Method (not an expert here, so not sure if that's best for this problem) and stopped it after a few minutes when it had reached the below (though leaving it running for longer will no doubt improve its solution):

    Price Maximum Minimum Percentage to allocate Final Price
    15.56 20% 15% 17.57% 2.734272487
    18.65 15% 15% 15.00% 2.7975
    19.9 20% 20% 20.00% 3.98
    14.78 10% 10% 10.00% 1.478
    15.23 7.50% 5.00% 7.27% 1.106620287
    15.86 20% 20% 20.00% 3.172
    16.65 15% 10% 10.00% 1.665000002
    100% 16.93339278

    Regards

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate the Lowest Value

    Quote Originally Posted by jsolder View Post
    The problem is that Column F, Tot Pct now totals more than 100%.
    Pardon? Looks to me like exactly 100%.

  12. #12
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Calculate the Lowest Value

    Solver setup.


    Alf
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    XOR LX I've found Solver really useful at getting me to an answer since I've been p-laying around with it, my only issue is the fact that you have to change the constraints if the Maximum and Minimum Percentages change. But other than that its working well for me at the moment!

  14. #14
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    Quote Originally Posted by shg View Post
    Pardon? Looks to me like exactly 100%.
    shg, here's my results using your formula...

    Price Example shg.xlsx
    Last edited by jsolder; 07-31-2013 at 10:43 AM.

  15. #15
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Calculate the Lowest Value

    "XOR LX I've found Solver really useful at getting me to an answer since I've been p-laying around with it, my only issue is the fact that you have to change the constraints if the Maximum and Minimum Percentages change. But other than that its working well for me at the moment!"

    You don't need to enter static values for the constraints! You can reference the cells containing them!

    Solver Example.png

  16. #16
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    That solves it!!

  17. #17
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate the Lowest Value

    Quote Originally Posted by jsolder View Post
    shg, here's my results using your formula...
    You're missing the SUM formula in D9.

  18. #18
    Registered User
    Join Date
    01-07-2009
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Calculate the Lowest Value

    My mistake shg. Thanks for all your help guys, can safely mark this one as solved now

+ 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. Calculate averages in Excel, remove lowest value?
    By Locco in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 09:40 AM
  2. Calculate Difference to Lowest
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-10-2009, 02:43 AM
  3. Calculate lowest name
    By teddybear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2009, 01:38 PM
  4. Replies: 1
    Last Post: 09-03-2008, 01:11 PM
  5. calculate the sum of the 5 lowest numbers.
    By Jessika in forum Excel General
    Replies: 4
    Last Post: 05-21-2008, 06:29 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