Count numbers between 0 and 2

  • Thread starter Thread starter tuk16664
  • Start date Start date
T

tuk16664

Hi

Im using networkdays calculation to work out the time between two dates but
im having a bit of trouble with a formula to then count these numbers in a
different cell.

In the other cells i have the specific ranges i need to count so between 0-2
days, 3-5 days and then 6+ days so for the first cell i would assume that i
need a formula to count with the criteria being >=0 and <=2 then so on.

I can get it to work when there is only 1 criteria ie.
=COUNTIF(G23:G210,">=6") but cant seem to work it to count the numbers
between the two points as above.

Many thanks for your help

Matt
 
Hi Matt

Use sumproduct:

=SUMPRODUCT((G23:G210>=0)*1,(G23:G210<=2)*1)

Regards,
Per
 

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

Back
Top