addding/omitting "x"

T

tleehh

colume a=value, colume b is notation with s1, s2, s3, and s4 according to the
type of values in colume a.
I want to add only values that was notated with s1 in colume b, but omitting
that was mark with "x" in colume c respectively.
 
O

Otávio Alves Ribeiro

Hi there.
First of all, I guess you could continue updating your first post below ;)
Regarding to your problem, please, try:

=sum((B10:B20="s1")*(C10:C20<>"x")*A10:A20) SHIFT + CTRL + ENTER

You should enter the above formula by pressing SHIFT + CTRL + ENTER (and not
just ENTER) since it is an array formula.

Regards,
Otávio
 
T

tleehh

Otávio Alves Ribeiro said:
Hi there.
First of all, I guess you could continue updating your first post below ;)
Regarding to your problem, please, try:

=sum((B10:B20="s1")*(C10:C20<>"x")*A10:A20) SHIFT + CTRL + ENTER

You should enter the above formula by pressing SHIFT + CTRL + ENTER (and not
just ENTER) since it is an array formula.

Regards,
Otávio
 
T

tleehh

using your given formula =sum((B10:B20="s1")*(C10:C20<>"x")*A10:A20), how
can it add all the values in colume A that is prior to todays date (dates
are in colume D).
 
O

Otávio Alves Ribeiro

Hi there.
You may want to add an extra condition to the existing ones:

=sum((B10:B20="s1")*(C10:C20<>"x")*(D10:D20<today())*A10:A20)

Regards,
Otávio
 
D

David Biddulph

.... or =SUMPRODUCT((B10:B20="s1")*(C10:C20<>"x")*(D10:D20<today())*A10:A20)
or
=SUMPRODUCT(--(B10:B20="s1"),--(C10:C20<>"x"),--(D10:D20<today()),A10:A20)
neither of which needs Control Shift Enter.
 

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