-1

I have a table:

a        1

b        2

c        3

and I want to use a SUMPRODUCT that will give me the total if the cell is a or b.

I have a cell that shows:

a/b

and I want to use either SUMIF or SUMPRODUCT to give me the total if it is a or b.

I wrote this:

=SUMPRODUCT(--(A2:A4=LEFT(A7,1)))

Do you think there is a way to use an OR within the SUMPRODUCT so that it can check for b within the table and give the total of that?

4

1 に答える 1

0

SUMPRODUCT 式ORでは+です。AND*

=SUMPRODUCT(--(A2:A4=LEFT(A7,1))+(A2:A4=LEFT(B7,1))
于 2013-10-01T16:10:50.857 に答える