Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
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.misc
external usenet poster
 
Posts: 457
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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
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.


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
Function help excel 2003 Jason Excel Worksheet Functions 6 January 29th 09 01:24 AM
Excel 2003 sum function Josie Excel Worksheet Functions 2 January 12th 09 03:53 PM
IF Function (I THINK) Excel 2003 Bons Excel Worksheet Functions 5 November 3rd 08 04:28 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


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