Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Help with counting multiple conditions

I have one column with many dates in the 4/27/2007 format.

I need to count how many dates are with the ranges of:

4/2/2007 - 4/8/2007
4/9/2007 - 4/15/2007
4/16/2007 - 4/22/2007
4/23/2007 - 4/29/2007

I need to have a number for each range.
Can anyone help me?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Help with counting multiple conditions

Create a small table with the start date in the first column and the end date in
the second column (say x1:y5).

Then with the dates in A1:A100, you could use a formula like:
=countif(a1:a100,"="&x1) - countif(a1:a100,""&y1)

and drag down.



jstro01 wrote:

I have one column with many dates in the 4/27/2007 format.

I need to count how many dates are with the ranges of:

4/2/2007 - 4/8/2007
4/9/2007 - 4/15/2007
4/16/2007 - 4/22/2007
4/23/2007 - 4/29/2007

I need to have a number for each range.
Can anyone help me?

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Help with counting multiple conditions

I didn't explain well enough. Here is a small example of what I am looking for.

Customer PAM

Walmart 4/2/2007
Sams 4/15/2007
Walgreens 4/7/2007
Best Buy 4/23/2007
Circuit City 4/11/2007
HEB 4/5/2007

4/2/2007 - 4/8/2007 = 3
4/9/2007 - 4/15/2007 = 2
4/16/2007 - 4/22/2007 = 0
4/23/2007 - 4/29/2007 = 1

I need a integer answer not a date answer, and I don't want to count all of
the dates. I just want to count the dates within a specific range.

Thanks again.
"Dave Peterson" wrote:

Create a small table with the start date in the first column and the end date in
the second column (say x1:y5).

Then with the dates in A1:A100, you could use a formula like:
=countif(a1:a100,"="&x1) - countif(a1:a100,""&y1)

and drag down.



jstro01 wrote:

I have one column with many dates in the 4/27/2007 format.

I need to count how many dates are with the ranges of:

4/2/2007 - 4/8/2007
4/9/2007 - 4/15/2007
4/16/2007 - 4/22/2007
4/23/2007 - 4/29/2007

I need to have a number for each range.
Can anyone help me?

Thanks


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Help with counting multiple conditions

If you see a date as the result of that suggested formula, then format it as
general.

jstro01 wrote:

I didn't explain well enough. Here is a small example of what I am looking for.

Customer PAM

Walmart 4/2/2007
Sams 4/15/2007
Walgreens 4/7/2007
Best Buy 4/23/2007
Circuit City 4/11/2007
HEB 4/5/2007

4/2/2007 - 4/8/2007 = 3
4/9/2007 - 4/15/2007 = 2
4/16/2007 - 4/22/2007 = 0
4/23/2007 - 4/29/2007 = 1

I need a integer answer not a date answer, and I don't want to count all of
the dates. I just want to count the dates within a specific range.

Thanks again.
"Dave Peterson" wrote:

Create a small table with the start date in the first column and the end date in
the second column (say x1:y5).

Then with the dates in A1:A100, you could use a formula like:
=countif(a1:a100,"="&x1) - countif(a1:a100,""&y1)

and drag down.



jstro01 wrote:

I have one column with many dates in the 4/27/2007 format.

I need to count how many dates are with the ranges of:

4/2/2007 - 4/8/2007
4/9/2007 - 4/15/2007
4/16/2007 - 4/22/2007
4/23/2007 - 4/29/2007

I need to have a number for each range.
Can anyone help me?

Thanks


--

Dave Peterson


--

Dave Peterson
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
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
Counting Unique Records with multiple conditions Keithlearn Excel Worksheet Functions 4 April 27th 05 12:44 AM
Counting occurrences of multiple conditions Jvanderv1 Excel Discussion (Misc queries) 2 April 6th 05 01:07 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM
counting based on 2 conditions Thrava Excel Discussion (Misc queries) 3 December 8th 04 10:19 PM


All times are GMT +1. The time now is 11:00 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"