Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Excel 2003 Function Help

I need help coming up will a function that will average a range in one column
based on if the hours match. Here is my set up.

-------A-------B
1.....09:21....12
2.....09:46....24
3.....09:57....17
4.....10:04....22

I need to average column B if column A's hour is the same as the hour in a
cell in another worksheet.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Excel 2003 Function Help

Ryan Hicks wrote:
I need help coming up will a function that will average a range in one column
based on if the hours match. Here is my set up.

-------A-------B
1.....09:21....12
2.....09:46....24
3.....09:57....17
4.....10:04....22

I need to average column B if column A's hour is the same as the hour in a
cell in another worksheet.


= SUMIF(range,criteria,sum_range) / COUNTIF(range,criteria)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Excel 2003 Function Help

Right, how would it work if I am looking for every value that is in the nine
o-clock hour. If the criteria range has 09:00, then it will not look for
values other than 09:00. Thank you

"Glenn" wrote:

Ryan Hicks wrote:
I need help coming up will a function that will average a range in one column
based on if the hours match. Here is my set up.

-------A-------B
1.....09:21....12
2.....09:46....24
3.....09:57....17
4.....10:04....22

I need to average column B if column A's hour is the same as the hour in a
cell in another worksheet.


= SUMIF(range,criteria,sum_range) / COUNTIF(range,criteria)
.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Excel 2003 Function Help

Then you would use SUMPRODUCT. Look at these two links for help on counting and
summing, respectively, cells that match multiple criteria (in your case greater
than/or equal to one time -and- less than another time):

http://www.contextures.com/xlFunctio...tml#SumProduct

http://www.contextures.com/xlFunctio...tml#SumProduct


Ryan Hicks wrote:
Right, how would it work if I am looking for every value that is in the nine
o-clock hour. If the criteria range has 09:00, then it will not look for
values other than 09:00. Thank you

"Glenn" wrote:

Ryan Hicks wrote:
I need help coming up will a function that will average a range in one column
based on if the hours match. Here is my set up.

-------A-------B
1.....09:21....12
2.....09:46....24
3.....09:57....17
4.....10:04....22

I need to average column B if column A's hour is the same as the hour in a
cell in another worksheet.

= SUMIF(range,criteria,sum_range) / COUNTIF(range,criteria)
.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Excel 2003 Function Help

Hi,

You could try this

=sumproduct((hour($A$1:$A$4)=hour(A10))*($B$1:$B$4 ))/sumproduct(1*(hour($A$1:$A$4)=hour(A10))

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Ryan Hicks" wrote in message
...
I need help coming up will a function that will average a range in one
column
based on if the hours match. Here is my set up.

-------A-------B
1.....09:21....12
2.....09:46....24
3.....09:57....17
4.....10:04....22

I need to average column B if column A's hour is the same as the hour in a
cell in another worksheet.




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
Excel 2003 sum function Josie Excel Worksheet Functions 2 January 12th 09 03:53 PM
Excel 2003 - Tab Function Scotslad Excel Discussion (Misc queries) 1 June 3rd 08 04:46 PM
Help in VBA/Excel 2003 doesn't function William Asher Setting up and Configuration of Excel 0 April 30th 08 09:25 PM
excel 2003 If function Stan Halls Excel Worksheet Functions 4 June 15th 06 08:42 PM
Add-ins function in Excel 2003 Jack H. Excel Worksheet Functions 1 October 6th 05 08:54 PM


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