Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CMO
 
Posts: n/a
Default Counting data between 2 values

Hi,

I have a list of durations on 1 cell (as below).

1
21
54
72
95
170
etc....

I want to count how many of them are between 0 and 60, how many between 61
and 120, so on and so forth. I have tried using Countif, but can't get it to
work. My last attempt was =count(if(and('Site
list_South'!$E$2:$E$5000=0,'Site list_South'!$E$2:$E$5000<=60)) and it
failed miserably.

Please Help!!!!


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Counting data between 2 values

hi CMO,

you could use sumproduct as:

=sumproduct(--(a1:a100=1)*--(a1:a100<=60))

hope this helps
Regards from Brazil
Marcelo

"CMO" escreveu:

Hi,

I have a list of durations on 1 cell (as below).

1
21
54
72
95
170
etc....

I want to count how many of them are between 0 and 60, how many between 61
and 120, so on and so forth. I have tried using Countif, but can't get it to
work. My last attempt was =count(if(and('Site
list_South'!$E$2:$E$5000=0,'Site list_South'!$E$2:$E$5000<=60)) and it
failed miserably.

Please Help!!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bearacade
 
Posts: n/a
Default Counting data between 2 values


=countif(e2:e5000,"=0")-countif(e2:e5000,"60")
=countif(e2:e5000,"=61")-countif(e2:e5000,"120")
=countif(e2:e5000,"=121")-countif(e2:e5000,"180")
=countif(e2:e5000,"=181")-countif(e2:e5000,"240")


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=549508

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CMO
 
Posts: n/a
Default Counting data between 2 values

Thanks a lot, works perfectly.

Goodbye from sunny England:-)

"Marcelo" wrote:

hi CMO,

you could use sumproduct as:

=sumproduct(--(a1:a100=1)*--(a1:a100<=60))

hope this helps
Regards from Brazil
Marcelo

"CMO" escreveu:

Hi,

I have a list of durations on 1 cell (as below).

1
21
54
72
95
170
etc....

I want to count how many of them are between 0 and 60, how many between 61
and 120, so on and so forth. I have tried using Countif, but can't get it to
work. My last attempt was =count(if(and('Site
list_South'!$E$2:$E$5000=0,'Site list_South'!$E$2:$E$5000<=60)) and it
failed miserably.

Please Help!!!!


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Counting data between 2 values

* and -- is built-in redundancy, only need one or the other

=sumproduct(--(a1:a100=1),--(a1:a100<=60))

or

=sumproduct((a1:a100=1)*(a1:a100<=60))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Marcelo" wrote in message
...
hi CMO,

you could use sumproduct as:

=sumproduct(--(a1:a100=1)*--(a1:a100<=60))

hope this helps
Regards from Brazil
Marcelo

"CMO" escreveu:

Hi,

I have a list of durations on 1 cell (as below).

1
21
54
72
95
170
etc....

I want to count how many of them are between 0 and 60, how many between

61
and 120, so on and so forth. I have tried using Countif, but can't get

it to
work. My last attempt was =count(if(and('Site
list_South'!$E$2:$E$5000=0,'Site list_South'!$E$2:$E$5000<=60)) and it
failed miserably.

Please Help!!!!






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Marcelo
 
Posts: n/a
Default Counting data between 2 values

Hi Bob, thanks for the feedback,
regards
Marcelo


"Bob Phillips" escreveu:

* and -- is built-in redundancy, only need one or the other

=sumproduct(--(a1:a100=1),--(a1:a100<=60))

or

=sumproduct((a1:a100=1)*(a1:a100<=60))


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Marcelo" wrote in message
...
hi CMO,

you could use sumproduct as:

=sumproduct(--(a1:a100=1)*--(a1:a100<=60))

hope this helps
Regards from Brazil
Marcelo

"CMO" escreveu:

Hi,

I have a list of durations on 1 cell (as below).

1
21
54
72
95
170
etc....

I want to count how many of them are between 0 and 60, how many between

61
and 120, so on and so forth. I have tried using Countif, but can't get

it to
work. My last attempt was =count(if(and('Site
list_South'!$E$2:$E$5000=0,'Site list_South'!$E$2:$E$5000<=60)) and it
failed miserably.

Please Help!!!!





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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Excel Macro to Copy & Paste [email protected] Excel Worksheet Functions 0 December 1st 05 01:56 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM
How to omit data in a chart when there are error values? Bou Charts and Charting in Excel 2 June 10th 05 08:51 PM
how do you prevent data from changing values when sorting linked . Cassie Excel Discussion (Misc queries) 0 March 4th 05 10:45 AM


All times are GMT +1. The time now is 10:51 AM.

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"