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 Return an average date

I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from E13:E36.
Thanks in advance for any help.
Christy

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Return an average date

This statement

"When H13:H36 = in and H13:H36 = ti"

can never be true, if you meant OR as opposed to AND

=AVERAGE(IF((B1:B3="in")+(B1:B3="ti"),A1:A3))

entered with ctrl + shift & enter will return 09/17/2008 using your example
because there are no half days etc, you would need to involve time and then
it will be 9/17/2008 12:00 but if you have many entries with "in" or "ti" it
will be strange.

Maybe you should explain what you are trying to do?

--


Regards,


Peo Sjoblom

"Christy" wrote in message
...
I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from
E13:E36.
Thanks in advance for any help.
Christy



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

=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))

ctrl+shift+enter, not just enter


"Christy" wrote:

I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from E13:E36.
Thanks in advance for any help.
Christy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Return an average date

Thank you, thank you and thank you. It worked!

"Teethless mama" wrote:

=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))

ctrl+shift+enter, not just enter


"Christy" wrote:

I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from E13:E36.
Thanks in advance for any help.
Christy

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Return an average date

=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))

Using ROUND would be more accurate.

--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))

ctrl+shift+enter, not just enter


"Christy" wrote:

I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from
E13:E36.
Thanks in advance for any help.
Christy





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 89
Default Return an average date

How would I alter this using ROUND? Also, when cells are blank I would like
it if the cell that contained this formula didn't say #DID/O! but was just
blank.
Thanks.

"T. Valko" wrote:

=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))


Using ROUND would be more accurate.

--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))

ctrl+shift+enter, not just enter


"Christy" wrote:

I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from
E13:E36.
Thanks in advance for any help.
Christy




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Return an average date

If you're getting #DIV/0! then that means there are no entries in column H
that meet the criteria. Try this array formula** :

=IF(SUM(COUNTIF(H13:H36,{"in","ti"})),ROUND(AVERAG E(IF(H13:H36={"in","ti"},E13:E36)),0),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

If there are no dates in column E then the result will be 0 (formatted as
date will display as 1/0/1900)

--
Biff
Microsoft Excel MVP


"Christy" wrote in message
...
How would I alter this using ROUND? Also, when cells are blank I would
like
it if the cell that contained this formula didn't say #DID/O! but was just
blank.
Thanks.

"T. Valko" wrote:

=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))


Using ROUND would be more accurate.

--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in
message
...
=INT(AVERAGE(IF((H13:H36={"in","ti"}),E13:E36)))

ctrl+shift+enter, not just enter


"Christy" wrote:

I'm trying to do the following:
Col E Col H
9/17/08 in
9/18/08 ti
9/19/08 ot
When H13:H36 = in and H13:H36 = ti, Then return the average date from
E13:E36.
Thanks in advance for any 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
How to return the average of the LAST 3 numbers in a row thorshammer Excel Worksheet Functions 3 August 11th 08 04:15 AM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Array Formula to find Average Return Paul987 Excel Discussion (Misc queries) 1 May 9th 06 06:20 PM
AVERAGE Row of Numbers and Return Corresponding Numeric Label Sam via OfficeKB.com Excel Worksheet Functions 14 September 20th 05 01:07 AM
average annual return rathersurf Excel Worksheet Functions 1 July 22nd 05 04:48 AM


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