A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

count number of dates in range



 
 
Thread Tools Display Modes
  #1  
Old March 24th, 2010, 05:24 PM posted to microsoft.public.excel.worksheet.functions
Sunflower
external usenet poster
 
Posts: 11
Default count number of dates in range

In column A, various contractor names are listed. In column B, completion
dates have been entered for when their projects were completed thoughout the
year. I would like to have the next spreadsheet tab summarize the data so it
lists the number of times between 2/1/20010 and 2/28/2010 a project was
completed for "Fred."

Can you tell me what formula I should enter? Thanks
  #2  
Old March 24th, 2010, 05:34 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default count number of dates in range

Try one of these...

Use cells to hold the criteria.

D2 = Fred
E2 = lower date boundary = 2/1/2010
F2 = upper date boundary = 2/28/2010

In Excel 2007:

=COUNTIFS(A2:A20,D2,B2:B20,"="&E2,B2:B20,"="&F2)

In any version of Excel:

=SUMPRODUCT(--(A2:A20=D2),--(B2:B20=E2),--(B2:B20=F2))

--
Biff
Microsoft Excel MVP


"Sunflower" wrote in message
...
In column A, various contractor names are listed. In column B, completion
dates have been entered for when their projects were completed thoughout
the
year. I would like to have the next spreadsheet tab summarize the data so
it
lists the number of times between 2/1/20010 and 2/28/2010 a project was
completed for "Fred."

Can you tell me what formula I should enter? Thanks



  #3  
Old March 24th, 2010, 06:07 PM posted to microsoft.public.excel.worksheet.functions
francis
external usenet poster
 
Posts: 119
Default count number of dates in range

try this in Sheet2

=SUMPRODUCT(--(Sheet1!B2:B9=DATE(2010,2,1)),--(Sheet1!B2:B9=DATE(2010,3,1)),--(Sheet1!A2:A9="Fred"))

Adjust the range to suit yours
--
Hope this help

Please click the Yes button below if this post have helped answer your needs

Thank You

cheers, francis





"Sunflower" wrote:

In column A, various contractor names are listed. In column B, completion
dates have been entered for when their projects were completed thoughout the
year. I would like to have the next spreadsheet tab summarize the data so it
lists the number of times between 2/1/20010 and 2/28/2010 a project was
completed for "Fred."

Can you tell me what formula I should enter? Thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:36 PM.


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