Sumproduct not returning data

T

Trish Smith

Hi everyone,

I'm using the following to find the number of times 4 is scored per each
employee

=SUMPRODUCT((Data!$B$4:$B$691=$B31)*(Data!$K$4:$K$691=4))

where B is the unique employee number and K is a calculated field.

When I enter 4 into the calculated field instead of the result of the calc
then sumproduct picks it up.

So, I'm thinking that it's probably because it's not exactly 4 but rounds to
4.

I'm going to copy and paste values to get arround this but I know that this
will happen a lot.

So, is there any way to specify in the formula that I want it to count where
the cell returns a value that rounds up or down to the number I'm asking it
to look for?

Hope this makes sense
Thank you
 
T

Trish Smith

Doh!,

Copy and paste values - copies the actual result so no use - do I feel
silly!!!!!
 
M

Mike H

Trish,

You could try this

=SUMPRODUCT((Data!$B$4:$B$691=$B31)*(ROUND(Data!$K$4:$K$691,0)=4))

Mike
 
B

Bernard Liengme

Try
=SUMPRODUCT((Data!$B$4:$B$691=$B31)*(round(Data!$K$4:$K$691,0)=4))

best wishes
 

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