Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Find an average date

I would like to be able to do the following:
B12:B50 are all various dates, which include 2007 & 2008.
F12:F50 = IN or F12:F50 = OT

When Col F = IN, return the average date from B12:B50 in one cell
and when Col F = OT, return the average date from B12:B50 in another cell.

I've looked in the previous posts and can't find anything that works.
Thanks to anyone who can help.
Christy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Find an average date

One way:

For IN:

=IF(COUNTIF(F12:F50,"in"),ROUND(SUMIF(F12:F50,"in" ,B12:B50)/COUNTIF(F12:F50,"in"),0),"")

For OT:

=IF(COUNTIF(F12:F50,"ot"),ROUND(SUMIF(F12:F50,"ot" ,B12:B50)/COUNTIF(F12:F50,"ot"),0),"")

Format both as DATE

--
Biff
Microsoft Excel MVP


"Christy" wrote in message
...
I would like to be able to do the following:
B12:B50 are all various dates, which include 2007 & 2008.
F12:F50 = IN or F12:F50 = OT

When Col F = IN, return the average date from B12:B50 in one cell
and when Col F = OT, return the average date from B12:B50 in another cell.

I've looked in the previous posts and can't find anything that works.
Thanks to anyone who can help.
Christy



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Find an average date

You could try something like:

=SUMIF(F12:F50,"IN",B12:B50)/COUNTIF(F12:F50,"IN")

and

=SUMIF(F12:F50,"OT",B12:B50)/COUNTIF(F12:F50,"OT")

Format the two cells as dates.

Hope this helps.

Pete

On Aug 10, 7:44 pm, Christy wrote:
I would like to be able to do the following:
B12:B50 are all various dates, which include 2007 & 2008.
F12:F50 = IN or F12:F50 = OT

When Col F = IN, return the average date from B12:B50 in one cell
and when Col F = OT, return the average date from B12:B50 in another cell.

I've looked in the previous posts and can't find anything that works.
Thanks to anyone who can help.
Christy



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
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
select date range then find average of values in another cell rob117 Excel Worksheet Functions 3 May 3rd 07 03:34 PM
How to find average for grading? Param Excel Worksheet Functions 3 March 4th 07 10:17 AM
How do I find the average time? SharonTraff Excel Worksheet Functions 3 October 11th 06 08:14 PM
Using Sumproduct to Find Average stevec Excel Discussion (Misc queries) 2 August 3rd 06 10:06 PM


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