Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kathryn J Bittman
 
Posts: n/a
Default Summary formula help

I need help with formulas counting dates.

I have open dates and close dates. I need to know the average, minimum and
maximum time a case is open by year. I have figured out the array for the
total period (2002-2006), but can't break it out the same by individual year.

I also am having a problem getting a field to remain blank if no close date
has been entered. Currently it reports 01/00/00 for blanks.

Any/all help appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Tarburton
 
Posts: n/a
Default Summary formula help

Your description does not tell me how to account for a case that is started
in one year and closed in the next. These will only work if started and
closed in the same year, but are easily adaptable.

Assuming start date in column B, close date in column C, headers in Row 1,
and cases down to row 250.
I would type in say column Z, in Z1 1/1/2002, n Z2 1/1/2003, in Z31/1/2004
and so on up to 1/1/2007 just to simplify the formula.

Average for 2002
=sumproduct(--($C$2:$C$2500),--($B$2:$B$250=Z1),--($C$2:$C$250<Z2),--($C$2:$C$250-$B$2:$B$250+1))/sumproduct(--($C$2:$C$2500),--($B$2:$B$250=Z1),--($C$2:$C$250<Z2))
copydown for later years

Min for 2002 (in say AB1)
=MIN(IF($C$2:$C$2500,IF($B$2:$B$250=Z1,IF($C$2:$ C$250<Z2,$C$2:$C$250-$B$2:$B$250+1))))
This in an array formula, you must commit with control+shift+enter
Max (say in AC1) is the same as min except trade out the MIN for MAX

When you copy down the min and max functions, you must not paste over the
cell you copied, just select the rows below to paste.

If you want this adjusted for how to account for a case that is started in
one year and closed in the next, just respond to this thread and I'll see it
today or tomorrow.



"Kathryn J Bittman" wrote in
message ...
I need help with formulas counting dates.

I have open dates and close dates. I need to know the average, minimum and
maximum time a case is open by year. I have figured out the array for the
total period (2002-2006), but can't break it out the same by individual
year.

I also am having a problem getting a field to remain blank if no close
date
has been entered. Currently it reports 01/00/00 for blanks.

Any/all help appreciated!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kathryn J Bittman
 
Posts: n/a
Default Summary formula help

Bob,
Thanks for the help. Still not getting it yet, but closer. Does it matter
that all the dates for open are the first of the month and all the close
dates are the last day of the month? I am trying on use the year without
month specification in the Z1 part of your formula. Is that why I am not
getting the result I want?

I will need the help with the latter situation of open this year, but closed
the next.

"Bob Tarburton" wrote:

Your description does not tell me how to account for a case that is started
in one year and closed in the next. These will only work if started and
closed in the same year, but are easily adaptable.

Assuming start date in column B, close date in column C, headers in Row 1,
and cases down to row 250.
I would type in say column Z, in Z1 1/1/2002, n Z2 1/1/2003, in Z31/1/2004
and so on up to 1/1/2007 just to simplify the formula.

Average for 2002
=sumproduct(--($C$2:$C$2500),--($B$2:$B$250=Z1),--($C$2:$C$250<Z2),--($C$2:$C$250-$B$2:$B$250+1))/sumproduct(--($C$2:$C$2500),--($B$2:$B$250=Z1),--($C$2:$C$250<Z2))
copydown for later years

Min for 2002 (in say AB1)
=MIN(IF($C$2:$C$2500,IF($B$2:$B$250=Z1,IF($C$2:$ C$250<Z2,$C$2:$C$250-$B$2:$B$250+1))))
This in an array formula, you must commit with control+shift+enter
Max (say in AC1) is the same as min except trade out the MIN for MAX

When you copy down the min and max functions, you must not paste over the
cell you copied, just select the rows below to paste.

If you want this adjusted for how to account for a case that is started in
one year and closed in the next, just respond to this thread and I'll see it
today or tomorrow.



"Kathryn J Bittman" wrote in
message ...
I need help with formulas counting dates.

I have open dates and close dates. I need to know the average, minimum and
maximum time a case is open by year. I have figured out the array for the
total period (2002-2006), but can't break it out the same by individual
year.

I also am having a problem getting a field to remain blank if no close
date
has been entered. Currently it reports 01/00/00 for blanks.

Any/all help appreciated!




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Tarburton
 
Posts: n/a
Default Summary formula help

This should work based on those specs.
Post some examples of the date format you are using or e-mail me a sample
spreadsheet.
Just remove the "_removethis_" from my email address.


"Kathryn J Bittman" wrote in
message ...
Bob,
Thanks for the help. Still not getting it yet, but closer. Does it matter
that all the dates for open are the first of the month and all the close
dates are the last day of the month? I am trying on use the year without
month specification in the Z1 part of your formula. Is that why I am not
getting the result I want?

I will need the help with the latter situation of open this year, but
closed
the next.

"Bob Tarburton" wrote:

Your description does not tell me how to account for a case that is
started
in one year and closed in the next. These will only work if started and
closed in the same year, but are easily adaptable.

Assuming start date in column B, close date in column C, headers in Row
1,
and cases down to row 250.
I would type in say column Z, in Z1 1/1/2002, n Z2 1/1/2003, in
Z31/1/2004
and so on up to 1/1/2007 just to simplify the formula.

Average for 2002
=sumproduct(--($C$2:$C$2500),--($B$2:$B$250=Z1),--($C$2:$C$250<Z2),--($C$2:$C$250-$B$2:$B$250+1))/sumproduct(--($C$2:$C$2500),--($B$2:$B$250=Z1),--($C$2:$C$250<Z2))
copydown for later years

Min for 2002 (in say AB1)
=MIN(IF($C$2:$C$2500,IF($B$2:$B$250=Z1,IF($C$2:$ C$250<Z2,$C$2:$C$250-$B$2:$B$250+1))))
This in an array formula, you must commit with control+shift+enter
Max (say in AC1) is the same as min except trade out the MIN for MAX

When you copy down the min and max functions, you must not paste over the
cell you copied, just select the rows below to paste.

If you want this adjusted for how to account for a case that is started
in
one year and closed in the next, just respond to this thread and I'll see
it
today or tomorrow.



"Kathryn J Bittman" wrote in
message ...
I need help with formulas counting dates.

I have open dates and close dates. I need to know the average, minimum
and
maximum time a case is open by year. I have figured out the array for
the
total period (2002-2006), but can't break it out the same by individual
year.

I also am having a problem getting a field to remain blank if no close
date
has been entered. Currently it reports 01/00/00 for blanks.

Any/all help appreciated!






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
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
2 Nesting questions Starchaser Excel Worksheet Functions 7 January 20th 06 06:53 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


All times are GMT +1. The time now is 06:04 AM.

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"