#1   Report Post  
Posted to microsoft.public.excel.newusers
Syahira
 
Posts: n/a
Default Date count

Hello everybody :-)
Let say I have these data:

Centre Name Date Open
Santa Maria August 2004
St. Loius April 2006
Greenlane March 2002
North Point December 2005
South Point May 2006

This is a part of the data that I have.

My question a
1) How to count how many centre open before 2006?
2) To list the centre open before/after 2006
3) To list of centre that have operated 1 year or more?

Thanks (^_^)
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default Date count

1. =SUMPRODUCT(--(YEAR(B2:B100)<2006))


2. Select D1:D20, enter this formula in the formula bar

=IF(ISERROR(SMALL(IF(YEAR($B$2:$B$20)<2006,ROW($A2 :$A20),""),ROW($A1:$A20)))
,"",
INDEX($A$1:$A$20,SMALL(IF(YEAR($B2:$B20)<2006,ROW( $A2:$A20),""),ROW($A1:$A20
))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

3. Similarly, in F1:F20

=IF(ISERROR(SMALL(IF(($B$2:$B$20<"")*(TODAY()-$B$2:$B$20=365),ROW($A2:$A20
),""),ROW($A1:$A20))),"",
INDEX($A$1:$A$20,SMALL(IF(($B$2:$B$20<"")*(TODAY( )-$B$2:$B$20=365),ROW($A2
:$A20),""),ROW($A1:$A20))))

again array formula.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"Syahira" wrote in message
...
Hello everybody :-)
Let say I have these data:

Centre Name Date Open
Santa Maria August 2004
St. Loius April 2006
Greenlane March 2002
North Point December 2005
South Point May 2006

This is a part of the data that I have.

My question a
1) How to count how many centre open before 2006?
2) To list the centre open before/after 2006
3) To list of centre that have operated 1 year or more?

Thanks (^_^)



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
How do I count the number of days from 1 date to another? Steve R Excel Discussion (Misc queries) 3 February 2nd 06 08:58 PM
count the number of cells within a column with a date <= today's d Cachod1 New Users to Excel 2 January 27th 06 11:24 PM
count the number of cells with a date <= today's date Cachod1 New Users to Excel 3 January 27th 06 09:14 PM
How do I count occurences in a date range? Jeremy Excel Worksheet Functions 2 July 8th 05 11:21 PM
Count the occurances of a month in a range of date fields Keith Brown Excel Worksheet Functions 8 March 14th 05 11:24 AM


All times are GMT +1. The time now is 11:48 PM.

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

About Us

"It's about Microsoft Excel"