Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Count numbers between 0 and 2

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default Count numbers between 0 and 2

Hi Matt

Use sumproduct:

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

Regards,
Per

"tuk16664" skrev i meddelelsen
...
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count numbers and non numbers(conditional values) Ecoman Excel Discussion (Misc queries) 5 May 9th 08 04:56 PM
How do i count numbers and letters to find a total count of all Linda Excel Worksheet Functions 4 November 10th 05 04:51 PM
Number count - postcodes and need to count the numbers of tim... Mark - Aust Excel Discussion (Misc queries) 1 October 24th 05 10:00 AM
Count comma separated numbers, numbers in a range with dash, not t Mahendra Excel Discussion (Misc queries) 0 August 8th 05 05:56 PM
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM


All times are GMT +1. The time now is 05:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"