Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Counting average number of days between 2 dates

I'm trying to create a formula that will give me the Average number of Days
Activities early (-) or late(+) based upon the due date. Column B represents
the dye date and column C is the actual date delivered. In the example there
may be dates in column B and none in column C these are to ignored. I also
need the count of Activities thsat are early and those that are late. I have
thousands of rows so I don't want to add a formuls in another column that
determines each one separatly and than sum them up. I need to do it in one
step.

A B C
Act 1 2/3/09 2/5/09
Act 2 6/7/09 7/6/09
Act 3 1/5/09 3/4/09
Act 4 4/3/09 8/9/09

Robert K
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Counting average number of days between 2 dates

Try these:

=SUMPRODUCT(--(B1:B100C1:C100),--(C1:C100<""))

to give you a count of earlies, and this:

=SUMPRODUCT(--(B1:B100<C1:C100),--(C1:C100<""))

to give you a count of lates (adjust the ranges to suit).

If you want the total number of days that are early you can use:

=SUMPRODUCT(--(B1:B100C1:C100),--(C1:C100<""),(B1:B100-C1:C100))

and the total number of late days is given by:

=SUMPRODUCT(--(B1:B100<C1:C100),--(C1:C100<""),(C1:C100-B1:B100))

Averages can be obtained by dividing the totals by the counts.

Hope this helps.

Pete

On Sep 18, 11:10*pm, RobertK
wrote:
I'm trying to create a formula that will give me the Average number of Days
Activities early (-) or late(+) based upon the due date. *Column B represents
the dye date and column C is the actual date delivered. *In the example there
may be dates in column B and none in column C these are to ignored. I also
need the count of Activities thsat are early and those that are late. *I have
thousands of rows so I don't want to add a formuls in another column that
determines each one separatly and than sum them up. I need to do it in one
step.

A * * * * *B * * * * * * * *C
Act * * * 1 2/3/09 * * *2/5/09
Act 2 * *6/7/09 * * * * 7/6/09
Act * * * 3 1/5/09 * * *3/4/09
Act 4 * *4/3/09 * * * * 8/9/09

Robert K


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Counting average number of days between 2 dates

Thanks Pete, that did the trick.
--
Robert K


"Pete_UK" wrote:

Try these:

=SUMPRODUCT(--(B1:B100C1:C100),--(C1:C100<""))

to give you a count of earlies, and this:

=SUMPRODUCT(--(B1:B100<C1:C100),--(C1:C100<""))

to give you a count of lates (adjust the ranges to suit).

If you want the total number of days that are early you can use:

=SUMPRODUCT(--(B1:B100C1:C100),--(C1:C100<""),(B1:B100-C1:C100))

and the total number of late days is given by:

=SUMPRODUCT(--(B1:B100<C1:C100),--(C1:C100<""),(C1:C100-B1:B100))

Averages can be obtained by dividing the totals by the counts.

Hope this helps.

Pete

On Sep 18, 11:10 pm, RobertK
wrote:
I'm trying to create a formula that will give me the Average number of Days
Activities early (-) or late(+) based upon the due date. Column B represents
the dye date and column C is the actual date delivered. In the example there
may be dates in column B and none in column C these are to ignored. I also
need the count of Activities thsat are early and those that are late. I have
thousands of rows so I don't want to add a formuls in another column that
determines each one separatly and than sum them up. I need to do it in one
step.

A B C
Act 1 2/3/09 2/5/09
Act 2 6/7/09 7/6/09
Act 3 1/5/09 3/4/09
Act 4 4/3/09 8/9/09

Robert K



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Counting average number of days between 2 dates

You're welcome, Robert - thanks for feeding back.

Pete

On Sep 19, 2:50*am, RobertK wrote:
Thanks Pete, that did the trick.
--
Robert K



"Pete_UK" wrote:
Try these:


=SUMPRODUCT(--(B1:B100C1:C100),--(C1:C100<""))


to give you a count of earlies, and this:


=SUMPRODUCT(--(B1:B100<C1:C100),--(C1:C100<""))


to give you a count of lates (adjust the ranges to suit).


If you want the total number of days that are early you can use:


=SUMPRODUCT(--(B1:B100C1:C100),--(C1:C100<""),(B1:B100-C1:C100))


and the total number of late days is given by:


=SUMPRODUCT(--(B1:B100<C1:C100),--(C1:C100<""),(C1:C100-B1:B100))


Averages can be obtained by dividing the totals by the counts.


Hope this helps.


Pete


On Sep 18, 11:10 pm, RobertK
wrote:
I'm trying to create a formula that will give me the Average number of Days
Activities early (-) or late(+) based upon the due date. *Column B represents
the dye date and column C is the actual date delivered. *In the example there
may be dates in column B and none in column C these are to ignored. I also
need the count of Activities thsat are early and those that are late. *I have
thousands of rows so I don't want to add a formuls in another column that
determines each one separatly and than sum them up. I need to do it in one
step.


A * * * * *B * * * * * * * *C
Act * * * 1 2/3/09 * * *2/5/09
Act 2 * *6/7/09 * * * * 7/6/09
Act * * * 3 1/5/09 * * *3/4/09
Act 4 * *4/3/09 * * * * 8/9/09


Robert K- Hide quoted text -


- Show quoted text -


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
Average days between dates mckzach Excel Worksheet Functions 3 May 22nd 09 02:46 PM
Counting days between dates aussiegirlone Excel Discussion (Misc queries) 8 December 2nd 08 08:42 AM
Counting days between 2 dates cockatoo Excel Discussion (Misc queries) 2 September 19th 08 10:35 PM
Counting Days Between Dates JerryS Excel Worksheet Functions 1 February 13th 08 07:37 PM
Counting days between dates tstorm96 Excel Discussion (Misc queries) 5 April 16th 05 12:02 AM


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