SOLVED

Value Distribution based on Criteria

Steel Contributor

Hey guys,

Need your help!
My problem is how am I gonna distribute my remaining values based on my total output. then if the remaining value is 0 and my total output does not meet it yet, it will continue on its next cell.
B1:F:1 is my remaining Values
G3:G11 is my Total output
B3:F11 is where I need to put your formula.

Please refer on my table below:

 ABCDEFG
1 41.538.596.542.5125.5 
2 G056I076K090H060M113OUTPUT
31-Dec     43
42-Dec     42
53-Dec     44
64-Dec     49
75-Dec     46
86-Dec     40
97-Dec     0
108-Dec     0
119-Dec     0
12TOTAL:00000264

 

 

this is my goal inside my table:

 ABCDEFG
1 000080.5 
2 G056I076K090H060M113OUTPUT
31-Dec41.51.5   43
42-Dec 375  42
53-Dec  44  44
64-Dec  47.51.5 49
75-Dec   41546
86-Dec    4040
97-Dec     0
108-Dec     0
119-Dec     0
12TOTAL:41.538.596.542.545264
24 Replies
best response confirmed by Rr_ (Steel Contributor)
Solution

@Rr_ 

See the attached demo workbook.

Wow! you got it man! SUPER THANKS!
I didn't expect that you could use the MIN function on my problem, you made it look soooo easy man. It's so cool and funny but at the same time I feel embarrassed! hahaha!

@Hans Vogelaar 

Could you please on below start and end date automate calculation. 

 

 

TharakaMT_0-1695895639653.png

 

@TharakaMT 

Do you mean that you want formulas in columns BN and BR that calculate the dates based on columns CK to CP?

Hi, Yes exactly I do need it

@TharakaMT 

In BN3:

=INDEX($2:$2, MIN(IF($CK3:$CP3<>0, COLUMN($CK3:$CP3))))

In BR3:

=INDEX($2:$2, MAX(IF($CK3:$CP3<>0, COLUMN($CK3:$CP3))))

If you do not have Microsoft 365 or Office 2021, confirm the formulas by pressing Ctrl+Shift+Enter.

Fill down.

Woow you are superb. This will make more easy to do my daily work. Thank you so much great man.

@TharakaMT  I used your given formulas into this excel sheet, but still have some errors 

https://docs.google.com/spreadsheets/d/1cpY83u22isAS3PjXnM8KTGLY6XLgjKaS/edit#gid=1639334711

 

I used your given formulas into this excel sheet, but still have some errors

https://docs.google.com/spreadsheets/d/1cpY83u22isAS3PjXnM8KTGLY6XLgjKaS/edit#gid=1639334711

@TharakaMT 

I get "Access Denied". Please share the workbook, then get the link and paste it into a reply.

Could you please help to check this
could you please check now

@TharakaMT 

Sorry for the delay. I hadn't received a notification of your earlier replies.

Column CC contains formulas that refer to a range that doesn't exist.

The same goes for FA13:FB16.

Hence the #REF! results.

I have tried to correct the formulas, but please check carefully whether the formulas are now OK - I cannot judge that.

@Hans Vogelaar  you are really helpful & do not know how to thank you. I need to learn advanced excel. How can I learn ? 

@TharakaMT 

See:

Learn Excel (there are links to tutorials about more advanced subjects)

A Google search will turn up more options.

Thanks, i will try to learn more.

@Hans Vogelaar This file has more formulas and below msg shows every time. I tried to check any 

 

TharakaMT_0-1696740412031.png

 

I checked any cells as below & could not find. Also the file is too slow when going to update. Please kindly help me to solve these problems. Thanks  

TharakaMT_1-1696740511536.png

 

 

1 best response

Accepted Solutions
best response confirmed by Rr_ (Steel Contributor)
Solution

@Rr_ 

See the attached demo workbook.

View solution in original post