#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Find and average

Following is the data I have. I would like a formula to find all the items
in Column B that is between 0300 and 0700 then using the data from column D,
average them together - putting in Column E.
I need to do this for 5 other ranges, ex. 1500 - 1900; 1901 - 2300, etc.

This is what I did, but is not working:
=AVERAGE(IF(B2:B141100,IFB2:B14<1500,(D2:D14))) -tried the array also: CSE.

To make it more difficult, I need to do this for a different range of
numbers each day and the quantity in the range varies.

Please help, this is so frustrating.

Col B Col C Col D Col E
0200 0202 2
0215 0220 5
0853 0900 7
1146 1212 26
1147 1212 25
1814 2025 131
1815 1842 27
1925 1932 7
2025 2120 55
2100 2125 25

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Find and average

Hi,

=AVERAGE(IF((B2:B141100)*(B2:B14<1500),D2:D14,"") )

Array entered Shift+Ctrl+Enter




If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Debi B. in Milwaukee" wrote:

Following is the data I have. I would like a formula to find all the items
in Column B that is between 0300 and 0700 then using the data from column D,
average them together - putting in Column E.
I need to do this for 5 other ranges, ex. 1500 - 1900; 1901 - 2300, etc.

This is what I did, but is not working:
=AVERAGE(IF(B2:B141100,IFB2:B14<1500,(D2:D14))) -tried the array also: CSE.

To make it more difficult, I need to do this for a different range of
numbers each day and the quantity in the range varies.

Please help, this is so frustrating.

Col B Col C Col D Col E
0200 0202 2
0215 0220 5
0853 0900 7
1146 1212 26
1147 1212 25
1814 2025 131
1815 1842 27
1925 1932 7
2025 2120 55
2100 2125 25

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Find and average

Sorry, forgot

In 2007

=AVERAGEIFS(D2:D14,B2:B14,"1100",B2:B14,"<1500")

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Debi B. in Milwaukee" wrote:

Following is the data I have. I would like a formula to find all the items
in Column B that is between 0300 and 0700 then using the data from column D,
average them together - putting in Column E.
I need to do this for 5 other ranges, ex. 1500 - 1900; 1901 - 2300, etc.

This is what I did, but is not working:
=AVERAGE(IF(B2:B141100,IFB2:B14<1500,(D2:D14))) -tried the array also: CSE.

To make it more difficult, I need to do this for a different range of
numbers each day and the quantity in the range varies.

Please help, this is so frustrating.

Col B Col C Col D Col E
0200 0202 2
0215 0220 5
0853 0900 7
1146 1212 26
1147 1212 25
1814 2025 131
1815 1842 27
1925 1932 7
2025 2120 55
2100 2125 25

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 average Karthik Excel Discussion (Misc queries) 1 February 4th 09 05:43 AM
Find Average w/ #DIV/0! in Cell Jacob Excel Discussion (Misc queries) 6 September 26th 08 02:59 PM
Need to find the Average Cindy Excel Worksheet Functions 7 March 5th 08 11:06 PM
Find monthly average but have average automatically configured kimbafred Excel Discussion (Misc queries) 2 August 8th 07 12:28 AM
How do I find the average time? SharonTraff Excel Worksheet Functions 3 October 11th 06 08:14 PM


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