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 » General Discussion
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, 08:42 PM posted to microsoft.public.excel.misc
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, 09:14 PM posted to microsoft.public.excel.misc
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Excel 2003 Function Help

This is an array* function
=AVERAGE(IF(HOUR(A2:A10)=HOUR(C3),B2:B10))

*Array functions must be confirmed using Ctrl+Shift+Enter, not just Enter.

--
Best Regards,

Luke M
"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.



  #3  
Old May 24th, 2010, 09:24 PM posted to microsoft.public.excel.misc
Fred Smith[_4_]
external usenet poster
 
Posts: 2,386
Default Excel 2003 Function Help

=SUMPRODUCT(B1:B4,--(HOUR(A1:A4)=Sheet2!A1))/SUMPRODUCT(--(HOUR(A1:A4)=Sheet2!A1))
Adjust the range for the "cell in another worksheet" to suit.

Regards,
Fred

"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:59 PM.


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