countif

K

Khalil Handal

13 values are in range DI15:DU15
I need to count the values in each cell in the range if it is less than the
corresponding number in the range DI14:DU14.

Example:
If value in DU14 is 100, and value in DU15 is 99 then the cell DU15 is to be
counted.

I hope that this is clear !
Thanks
 
R

Ron Rosenfeld

13 values are in range DI15:DU15
I need to count the values in each cell in the range if it is less than the
corresponding number in the range DI14:DU14.

Example:
If value in DU14 is 100, and value in DU15 is 99 then the cell DU15 is to be
counted.

I hope that this is clear !
Thanks

=SUMPRODUCT(--(DI15:DU15<DI14:DU14))

--ron
 
T

T. Valko

Try this...

Assuming there are no empty cells:

=SUMPRODUCT(--(DI15:DU15<DI14:DU14))
 
T

T. Valko

If DI14 = 100 and DI15 = empty cell this will be counted. Should it be
counted?
 
R

Ron Rosenfeld

If DI14 = 100 and DI15 = empty cell this will be counted. Should it be
counted?

I guess that hinges on the answer to the question "Is a blank cell less than
100?" I thought it probably is, but the OP may have a different answer.
--ron
 

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