Is there a way to use Formula to resolve

S

Sky

Is there a way or formula in the excel that could help to add the nearest
month to get the figure for Column F.
The month added up can be greater than or equal to Column F.
Column A to E is the month.
Column F is the Qty.
Column G is the column that I wish to get the month.

Jan-09 Feb-09 Mar-09 Apr-09 May-09 Qty Ans
100 100 100 100 100 300 Mar,Apr and May-3 mth to
get 300
100 100 100 100 100 250 Mar,Apr and May-3 mth to
have 250
100 100 100 100 100 500 Jan to May-5 month to get
500
100 100 100 100 100 100 May-1 month to get 100
100 100 100 100 100 50 May-1 month to get 50
 
B

Bernard Liengme

With only the month names (Jan, Feb..) in row 1 (ie not year)
In G2 I used
=$E$1&IF(E2<F2,", "&$D$1,"")&IF(E2+D2<F2,", "&$C$1,"")&IF(E2+D2+C2<F2,",
"&$B$1,"")&IF(E2+D2+C2+B2<F2,", "&$A$1,"")

Another method would be to use Solver
best wishes
 
S

Sky

Thanks Bernard.

Yes,I got the ans.
Could the ans also input in the year.

May I also know how to use Solver?

Thanks a lot
 
B

Bernard Liengme

Send me an email (remove TRUENORTH.) and I will send a sample file
best wishes
 
S

Sky

Thanks Bernard.

My email is (e-mail address removed).
If there is blank in my speadsheet is there a way to capture the month.

Thanks inadvance

Jan-09 Feb-09 Mar-09 Apr-09 May-09 Qty Ans
100 100 100 100 300 May Mar Feb
100 100 100 100 250 May Apr Feb
100 100 100 100 100 500 May Apr Mar Jan
100 100 100 100 100 Apr
100 100 100 50 Mar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top