A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel 2003 Function Help



 
 
Thread Tools Display Modes
  #1  
Old May 24th, 2010, 07:56 PM posted to microsoft.public.excel.worksheet.functions
Ryan Hicks
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  
Old May 24th, 2010, 08:12 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
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  
Old May 24th, 2010, 08:57 PM posted to microsoft.public.excel.worksheet.functions
Ryan Hicks
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  
Old May 24th, 2010, 09:24 PM posted to microsoft.public.excel.worksheet.functions
Glenn[_6_]
external usenet poster
 
Posts: 1,245
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  
Old May 25th, 2010, 12:55 AM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
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.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.