Z
Zuohong
Hi all,
I'm experiencing a tough MS excel function problem. Please give me
some advices.
-------------------------------------
a b c d
1 3 9 50
2 10 8 40
3 7 30
4 6 20
5 5 10
.. . .
.. . .
.. . .
-------------------------------------
I need to put my results in column D. Currently, D1 should euqal to
"if(C1-SUM(B1:B3)>C3,C1-B1,C1-B1+$A$2)". That means I need to make a
justification that whether C1 is bigger than the summary of B1 to B3.
If it's smaller than the sum, I need to add a constant($A$2) to D1
while reducing B1. Then D2=if(C2-SUM(B2:B4)>C4,C2-B2,C2-B2+$A$2), and
so on.
But, the problem is that the $A$1=3 is NOT a constant number!!! For
different products, this A1 is different. Perhaps it's 6 sometimes, so
the D1 changes to "if(C1-SUM(B1:B6)>C6,C1-B1,C1-B1+$A$2)". Since
there're hundreds of cases to deal with, certainly I don't want to
change the formulas again and again.
Would you please help me to resolve the trouble? Thank you very much.
zh.y
I'm experiencing a tough MS excel function problem. Please give me
some advices.
-------------------------------------
a b c d
1 3 9 50
2 10 8 40
3 7 30
4 6 20
5 5 10
.. . .
.. . .
.. . .
-------------------------------------
I need to put my results in column D. Currently, D1 should euqal to
"if(C1-SUM(B1:B3)>C3,C1-B1,C1-B1+$A$2)". That means I need to make a
justification that whether C1 is bigger than the summary of B1 to B3.
If it's smaller than the sum, I need to add a constant($A$2) to D1
while reducing B1. Then D2=if(C2-SUM(B2:B4)>C4,C2-B2,C2-B2+$A$2), and
so on.
But, the problem is that the $A$1=3 is NOT a constant number!!! For
different products, this A1 is different. Perhaps it's 6 sometimes, so
the D1 changes to "if(C1-SUM(B1:B6)>C6,C1-B1,C1-B1+$A$2)". Since
there're hundreds of cases to deal with, certainly I don't want to
change the formulas again and again.
Would you please help me to resolve the trouble? Thank you very much.
zh.y