Finding the min numbers whilst meeting specific conditions


New Member
Feb 12, 2014
HI there I was wondering if someone can help me. I am working on a project that is incredibly hard to test, therefore we decided to come up with a simplified problem to take the first steps in resolving our problems. My problem is that I can't solve this simple problem using maths in excel so was wondering if someone can help me.

What I am trying to achieve is the smallest $ value minimum investment without breaching any of my set conditions.

I have 2 investments, Investment 1 and Investment 2
Each of these investments have 2 conditions, Bucket A and Bucket B of which they have to contain a value in between the minimum and maximum of these buckets. I am trying to minimize the amount of money invested in each investment whilst meeting the conditions of each bucket.

inv 1
inv 2
Min. Investment

$ Value
Bucket A
Bucket B


So based on an overall investment of $1,000 you can see that the minimum investment for Inv 1 is $100 and the maximum investment is $500, similarly for Inv 2 the min. is $400 and the max is $900.

Using a mathematical equation in excel, can anyone please tell me how i can get to $1,000 investment, using the smallest allocation to each investment. Note the investment for Inv1 and Inv2 cannot be below their minimum or above their maximums. Hope this makes sense and someone is able to help me with an excel equation.

Many thanks for your assistance.

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...