CUMULATIVE leaving 0

A

Alimbilo

I would like to calculate a cumulative of:

A1 = 3.2
B1 = 9.5
C1 = 6.9

I want D1 to be the result of the cumulative of A1, B1 and C1 only if they
have a value different than 0. I want to be able to have a cumulative even
though one of them has 0 as value.

Any Help
 
D

Don Guillett

You have posted this in many places when ONE will do. This is considered to
be rude and undesirable.
Where do you want the answer.
 
A

Alimbilo

Did not mean to be rude. I am just trying to get an answer as soon as possible.
Sorry about that.
Can you help me then?

Thanks
 
A

Alimbilo

I forgot to tell you that between them there is othe fields so it should be:

A1 = 3.2
F1 = 9.5
N1 = 6.9
R1 = cumulative of A1,F1 and N1 (giving a value even when one of them has 0
as value)

Thanks
 
D

Don Guillett

If?? you want a1:r1 then use that in the sum formula.
or to only sum three cells
=SUM(I6,J8,I9)

Have you bothered to look in the help index for
SUM
 
A

Alimbilo

I did look in the SUM help and there is nothing about Sum if somevalue are 0.
Can someone really help?
 
R

Rick Rothstein \(MVP - VB\)

Consider the following for your future postings...

From a post by Jeff Johnson:

"You have posted this question individually to multiple groups.
This is called Multiposting and it's BAD. Replies made in one
group will not be visible in the other groups, which may cause
multiple people to respond to your question with the same answer
because they didn't know someone else had already done it. This
is a waste of time.

If you MUST post your message to multiple groups, post a single
message and select all the groups (or type their names manually
in the Newsgroups field, separated by commas) in which you want
it to be seen. This is called Crossposting and when used properly
it is GOOD."

Some additional comment previously posted by me:

"You may not see this as a problem, but those of us who volunteer
answering questions on newsgroups do see it as a problem. You can't
imagine how annoying it is for a volunteer to read a question,
research background material, test sample code and then formulate
and post an answer to the original question only to go to another
newsgroup and find the question posted and ALREADY answered over
there. On top of that, if you cross-post your question, all of the
readers in all the newsgroups it is cross-posted to see both the
original question and all of the answers given to it. This is
beneficial to you because then we can add additional material to,
add clarification to, as well as add additional examples to an
answer you have received previously... that means you end up with
a more complete solution to your problem. This is a win-win
situation for all of us."

Rick
 
R

Rick Rothstein \(MVP - VB\)

??? I don't understand the problem you are having... if you are adding
values, and some of those values are 0, then they will add nothing to the
summation of the other values; so, you do not have to specifically exclude
them since including them will not change the resulting summation. Or are
there other considerations you did not tell us about that affects this in
some way?

Rick
 
A

Alimbilo

I am not adding value. It's not a A+B+C+....
I am doing a cumulative sum which code is =Sum(A*B*C*...)
If I have a 0, the all operation will be Null. And that what I am trying to
avoid.
 
R

Rick Rothstein \(MVP - VB\)

I think you are trying to describe a "cumulative average", but your
Sum(A*B*C) sample wouldn't fit that meaning. Let's see if we can get you to
clarify your intent with an example. If these are your values, what would
your answer (or answers) be and where would you want to see it (or them)?

A1 = 3.2
B1 = 9.5
C1 = 0
D1 = 6.9

Rick
 
A

Alimbilo

According to the Cumulative Sum function Sum(A*B*C*...)

A= 20%
B= 20
C = 80
D = 50%
E = 50
F = 50
G = 0
H = 0
I = 0%
R = Sum(A*D*I)

R = should be 10% (cumulative of A*D)...

My question is how can I have the formula not taking the 0?
Because with a 0, the answer will be 0% .
 
R

Rick Rothstein \(MVP - VB\)

I think the problem I have been having with your question is you keep
showing the SUM function in your formulas when, based on your last example,
I do not think you are actually adding anything at all, only multiplying. So
where you are writing =SUM(A*B*C), I think you are simply looking for
=A*B*C, but where any zero values are excluded. For the specific example you
just gave, and assuming A, B, C, etc were actually cell references I am
guessing you could do this...

=IF(A1=0,1,A1)*IF(D1=0,1,D1)*IF(I1=0,1,I1)

Is that what you have been looking for?

Rick
 

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