Question: Using "OR" in SUMPRODUCT Doesn't Work

M

Matthew

I have an equation using SUMPRODUCT on a table, and when I modify it to
include an "OR" function, it no longer works.

My original function:
=SUMPRODUCT(Table1[Column1]*ISBLANK(Table1[Column2]))

Modified Function:
=SUMPRODUCT(Table1[Column1]*OR(ISBLANK(Table1[Column2])))

The modified function returns "0"

Any suggestions on why my modified function doesn't work?

I'm really going to be using the "OR" with the following:
=SUMPRODUCT(Table1[Column1]*OR(ISBLANK(Table1[Column2]),Table1[Column2]<Date1))

Thanks,
 
T

T. Valko

I'm really going to be using the "OR" with the following:
=SUMPRODUCT(Table1[Column1]*OR(ISBLANK(Table1[Column2]),Table1[Column2]<Date1))

Structured references = Yuk!

I assume Table1[Column1] are numbers.

Try this:

=SUMPRODUCT(Table1[Column1],SIGN(ISBLANK(Table1[Column2])+(Table1[Column2]<Date1)))

--
Biff
Microsoft Excel MVP


Matthew said:
I have an equation using SUMPRODUCT on a table, and when I modify it to
include an "OR" function, it no longer works.

My original function:
=SUMPRODUCT(Table1[Column1]*ISBLANK(Table1[Column2]))

Modified Function:
=SUMPRODUCT(Table1[Column1]*OR(ISBLANK(Table1[Column2])))

The modified function returns "0"

Any suggestions on why my modified function doesn't work?

I'm really going to be using the "OR" with the following:
=SUMPRODUCT(Table1[Column1]*OR(ISBLANK(Table1[Column2]),Table1[Column2]<Date1))

Thanks,
 

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