Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Average number between dates

I have a column of dates in Sheet1 Column A. In Sheet 2 Columns A thru J, I
have a list of random numbers. Is there a way to average each number that
comes up. For example: Sheet1 has a date of 8/1/09 with a "1" on
Sheet2.(=COUNTIF(Sheet1!B:F,"1") This gets me the number of "1"s Then the "1"
does not show up again untill 8/5/09, then again on 8/6/09. A total of 3
"1"'s. I need a formula that shows the average time from the first "1" to the
last "1". Thanks in advance!!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Average number between dates

Is it possible for a number to appear on a date more than once?

For example:

8/1/2009.....1.....5.....1.....3

1 appears twice on the same day.

--
Biff
Microsoft Excel MVP


"Richard" wrote in message
...
I have a column of dates in Sheet1 Column A. In Sheet 2 Columns A thru J, I
have a list of random numbers. Is there a way to average each number that
comes up. For example: Sheet1 has a date of 8/1/09 with a "1" on
Sheet2.(=COUNTIF(Sheet1!B:F,"1") This gets me the number of "1"s Then the
"1"
does not show up again untill 8/5/09, then again on 8/6/09. A total of 3
"1"'s. I need a formula that shows the average time from the first "1" to
the
last "1". Thanks in advance!!!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Average number between dates

No. There is never the same number on the same day. Thanks so much for your
help!!

"T. Valko" wrote:

Is it possible for a number to appear on a date more than once?

For example:

8/1/2009.....1.....5.....1.....3

1 appears twice on the same day.

--
Biff
Microsoft Excel MVP


"Richard" wrote in message
...
I have a column of dates in Sheet1 Column A. In Sheet 2 Columns A thru J, I
have a list of random numbers. Is there a way to average each number that
comes up. For example: Sheet1 has a date of 8/1/09 with a "1" on
Sheet2.(=COUNTIF(Sheet1!B:F,"1") This gets me the number of "1"s Then the
"1"
does not show up again untill 8/5/09, then again on 8/6/09. A total of 3
"1"'s. I need a formula that shows the average time from the first "1" to
the
last "1". Thanks in advance!!!




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Average number between dates

See if this does what you want...

A1:A20 = dates
B1:E20 = random numbers

H1 = lookup number = 1
H2 = formula = count

=COUNTIF(B1:E20,H1)

H3 = formula to get the average number of days

Array entered** :

=IF(H2<2,H2,MAX(1,(MAX(IF(B1:E20=H1,A1:A20))-MIN(IF(B1:E20=H1,A1:A20)))/H2))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Richard" wrote in message
...
No. There is never the same number on the same day. Thanks so much for
your
help!!

"T. Valko" wrote:

Is it possible for a number to appear on a date more than once?

For example:

8/1/2009.....1.....5.....1.....3

1 appears twice on the same day.

--
Biff
Microsoft Excel MVP


"Richard" wrote in message
...
I have a column of dates in Sheet1 Column A. In Sheet 2 Columns A thru
J, I
have a list of random numbers. Is there a way to average each number
that
comes up. For example: Sheet1 has a date of 8/1/09 with a "1" on
Sheet2.(=COUNTIF(Sheet1!B:F,"1") This gets me the number of "1"s Then
the
"1"
does not show up again untill 8/5/09, then again on 8/6/09. A total of
3
"1"'s. I need a formula that shows the average time from the first "1"
to
the
last "1". Thanks in advance!!!






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
Average price between dates PaulinaDi Excel Worksheet Functions 9 October 7th 08 12:05 AM
Average price between dates PaulinaDi Excel Worksheet Functions 1 September 30th 08 11:33 PM
A formula to AVERAGE IF but only average a set number of values [email protected] Excel Worksheet Functions 2 January 31st 08 08:28 PM
Average between two dates Ross Excel Discussion (Misc queries) 1 July 12th 06 10:57 AM


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