LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Mike
 
Posts: n/a
Default adding occurrences for date range

Someone from this group helped me get through the first steps of this process.
I have 2 date columns and a column that identifies a department name. I want
to create a formula that looks for a date range in the first column, if there
is no entry in that column, I want to refer to the second column looking for
that date range. For the records identified I want to count how many times
the department is represented.
First date column is B. Second date column is C. Department name is column D.
I have tried the following:

=SUMPRODUCT((B2:B375=F1)*(B2:B375<=F2)+(Data!$D2: $D532="")*(C2:C532=F1)*(C2:C532<=F2)*(D2:D375=G1) )

F1 = cell contains beginning of date range
F2 = cell contains end of date range
G1 = cell contains Department Name for which I want to count occurrences

 
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
adding occurrences for date range Mike Excel Discussion (Misc queries) 0 April 8th 05 11:33 PM
Adding contents of one cell to a range of cells. CLJinVA Excel Worksheet Functions 1 February 10th 05 10:19 PM
Adding to a range in a reference? LilaDuncan New Users to Excel 2 February 7th 05 03:12 PM
Adding words up in a range Chris01623 Excel Discussion (Misc queries) 3 February 3rd 05 05:54 PM
Adding Range Names John Excel Worksheet Functions 1 January 18th 05 11:56 AM


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