Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
MB MB is offline
external usenet poster
 
Posts: 53
Default Calculating within Date Ranges

I've gone through the threads and haven't found a solution to my problem.

For simplicity's sake, let's say I have 4 columns

Category, Start Date, End Date, Total Number of Days.

On a monthly basis, I need to calculate the number of days completed for
each of 8 categories. The date range spans months.

If I were to write it out, the querry would be
if <category in column A = "x", count number of days up to and including
Aug 31st."

Any help is most appreciated...

MB
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Calculating within Date Ranges

If you wanted just total per category, it would be:

Will number of days be filled out for each row? end date - start date..

If so, then for the entire table, =sumif(A:A,"Category Name",D:D)

For date ranges, =sumproduct(--($A$2:$A$10000="Category
Name"),--($B$2$B$10000=Desired start date)"),--($C$2$C$10000<=Desired end
date),--($D$2:$D$10000)) would give number of days within a range.

"MB" wrote:

I've gone through the threads and haven't found a solution to my problem.

For simplicity's sake, let's say I have 4 columns

Category, Start Date, End Date, Total Number of Days.

On a monthly basis, I need to calculate the number of days completed for
each of 8 categories. The date range spans months.

If I were to write it out, the querry would be
if <category in column A = "x", count number of days up to and including
Aug 31st."

Any help is most appreciated...

MB

  #3   Report Post  
Posted to microsoft.public.excel.misc
MB MB is offline
external usenet poster
 
Posts: 53
Default Calculating within Date Ranges

Thanks for the help... I tried that and I keep getting an error... here's my
formula:
"Summary!C2" is the cell with the start date.
"Summary!D2-1" is the start date of the next month minus 1 day

any suggestions... it doesn't like the third array...

=SUMPRODUCT(--(data!$C$36:$C$1000="u1"),--(data!$E$36:$E$1000=Summary!C2))--(data!$F$36:$F$1000<=(Summary!D2-1))--(data!$H$36:$H$1000)



"Sean Timmons" wrote:

If you wanted just total per category, it would be:

Will number of days be filled out for each row? end date - start date..

If so, then for the entire table, =sumif(A:A,"Category Name",D:D)

For date ranges, =sumproduct(--($A$2:$A$10000="Category
Name"),--($B$2$B$10000=Desired start date)"),--($C$2$C$10000<=Desired end
date),--($D$2:$D$10000)) would give number of days within a range.

"MB" wrote:

I've gone through the threads and haven't found a solution to my problem.

For simplicity's sake, let's say I have 4 columns

Category, Start Date, End Date, Total Number of Days.

On a monthly basis, I need to calculate the number of days completed for
each of 8 categories. The date range spans months.

If I were to write it out, the querry would be
if <category in column A = "x", count number of days up to and including
Aug 31st."

Any help is most appreciated...

MB

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Calculating within Date Ranges

Not sure if you had a typo or not, but should be

=SUMPRODUCT(--(data!$C$36:$C$1000="u1"),--(data!$E$36:$E$1000=Summary!C2),--(data!$F$36:$F$1000<=(Summary!D2-1)),--(data!$H$36:$H$1000))

Should work as is..

"MB" wrote:

Thanks for the help... I tried that and I keep getting an error... here's my
formula:
"Summary!C2" is the cell with the start date.
"Summary!D2-1" is the start date of the next month minus 1 day

any suggestions... it doesn't like the third array...

=SUMPRODUCT(--(data!$C$36:$C$1000="u1"),--(data!$E$36:$E$1000=Summary!C2))--(data!$F$36:$F$1000<=(Summary!D2-1))--(data!$H$36:$H$1000)



"Sean Timmons" wrote:

If you wanted just total per category, it would be:

Will number of days be filled out for each row? end date - start date..

If so, then for the entire table, =sumif(A:A,"Category Name",D:D)

For date ranges, =sumproduct(--($A$2:$A$10000="Category
Name"),--($B$2$B$10000=Desired start date)"),--($C$2$C$10000<=Desired end
date),--($D$2:$D$10000)) would give number of days within a range.

"MB" wrote:

I've gone through the threads and haven't found a solution to my problem.

For simplicity's sake, let's say I have 4 columns

Category, Start Date, End Date, Total Number of Days.

On a monthly basis, I need to calculate the number of days completed for
each of 8 categories. The date range spans months.

If I were to write it out, the querry would be
if <category in column A = "x", count number of days up to and including
Aug 31st."

Any help is most appreciated...

MB

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
Calculating Airline MAWB Ranges Mark Toulson Excel Discussion (Misc queries) 3 May 15th 08 03:56 PM
Calculating Date Ranges Chris Hofer Excel Worksheet Functions 4 April 24th 07 09:46 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
Calculating with named ranges KG Excel Discussion (Misc queries) 2 May 13th 05 02:52 PM
calculating date time ranges Patrick Excel Worksheet Functions 2 November 11th 04 05:07 AM


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