Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Becky
 
Posts: n/a
Default array formulas-sumproduct and average

Hello, I need hel. I am using this formula
=SUMPRODUCT(--(E2:E289=1),--(AVERAGE (H2:H289))) I don't know what's wrong
with it. I need to find the average for column H in relation to 1(under 2
yrs) in Column E. Hope this makes sense.

Thanks,
Becky
  #2   Report Post  
Max
 
Posts: n/a
Default

Try: =AVERAGE(IF(E2:E289=1,H2:H289))
Array-enter the formula with CTRL+SHIFT+ENTER
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Becky" wrote in message
...
Hello, I need hel. I am using this formula
=SUMPRODUCT(--(E2:E289=1),--(AVERAGE (H2:H289))) I don't know what's

wrong
with it. I need to find the average for column H in relation to 1(under 2
yrs) in Column E. Hope this makes sense.

Thanks,
Becky



  #3   Report Post  
Max
 
Posts: n/a
Default

And if an error trap is needed to return blanks: ""
instead of #DIV/0! , then try:

=IF(ISERROR(AVERAGE(IF(E2:E289=1,H2:H289))),"",AVE RAGE(IF(E2:E289=1,H2:H289)
))

(Array entered as before)

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----


  #4   Report Post  
Becky
 
Posts: n/a
Default

Thanks, that did it.

"Max" wrote:

Try: =AVERAGE(IF(E2:E289=1,H2:H289))
Array-enter the formula with CTRL+SHIFT+ENTER
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Becky" wrote in message
...
Hello, I need hel. I am using this formula
=SUMPRODUCT(--(E2:E289=1),--(AVERAGE (H2:H289))) I don't know what's

wrong
with it. I need to find the average for column H in relation to 1(under 2
yrs) in Column E. Hope this makes sense.

Thanks,
Becky




  #5   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
Becky wrote in message
...
Thanks, that did it.




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
Sumproduct, By Quarters and Amount Tom Fortune Excel Worksheet Functions 5 January 24th 05 05:32 AM


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