Sumproduct error

G

Gotroots

Hi

Why am I getting a #VALUE! error in the following.

=SUMPRODUCT(--(D25,F25,H25,J25,L25,N25,P25<>""))

Thanks if you can help

Gotroots
 
M

Mike H

Hi,

You didn't say what you expected the formula to do.

Is it this

=COUNTA(D25,F25,H25,J25,L25,N25,P25)


--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
T

T. Valko

Why am I getting a #VALUE! error in the following.
=SUMPRODUCT(--(D25,F25,H25,J25,L25,N25,P25<>""))

SUMPRODUCT won't accept discontinuous cell references like that.

Do any of those cells contain formulas that return formula blanks ("") ?
 
G

Gotroots

Sorry about that.

I want to return a numeric value total based on the specified cells
containing a value.

I had used a previous formula which I modified: =SUMPRODUCT(--(P11:p7799<>""))

The above gave a numeric result if 'P' contained a value(s)

So back to the formula I want to use:
=SUMPRODUCT(--(D25,F25,H25,J25,L25,N25,P25<>""))

This should display a numeric value based on D25,F25,H25,J25,L25,N25,P25
containing a value.


Example

F25 and N25 contain a value

Result should then be:

2

Hope this is clear

Gotroots
 
F

Fred Smith

Don't you just want Sum? As in:
=SUM(D25,F25,H25,J25,L25,N25,P25)

Sum will ignore blanks and text for you automatically.

Regards,
Fred
 
G

Gotroots

Actually the values are all text.

I just want a result returned if where a cell contains any kind of value.

Gotroots
 
G

Gotroots

Just realised I was trying to crack a nut with a sledgehammer.
The formula =SUMPRODUCT(--(P11:p7799<>""))
modified to =SUMPRODUCT(--(D25:p25<>""))
was ok to use after all.

Thank you guys anyway.

Gotroots
 
F

Fred Smith

So then you want to count the cells. Specifically, counta, as in:
=COUNTA(D25,F25,H25,J25,L25,N25,P25)
will count all non-blank cells.

Regards,
Fred
 

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