Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default SUMPRODUCT with AVERAGE result

SUMPRODUCT with AVERAGE result

Formula refers:
=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550<=650),crq!$J$2:$J$65536)

1) What criteria do I use to pickup records being equal to and greater than
550 but not exceeding 650?
2) I need to get the AVERAGE of the result in Column J, what do I do to get
an AVERAGE?

At present my result is 0

Regards

EricB

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default SUMPRODUCT with AVERAGE result

Hi Eric

Try this, in one formula line (has not been tested):

=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550),--(crq!$Z$2:$Z$65536<=650),crq!$J$2:$J$65536)/SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550),--(crq!$Z$2:$Z$65536<=650)

Hopes this helps.

---
Per


"EricB" skrev i meddelelsen
...
SUMPRODUCT with AVERAGE result

Formula refers:
=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550<=650),crq!$J$2:$J$65536)

1) What criteria do I use to pickup records being equal to and greater
than
550 but not exceeding 650?
2) I need to get the AVERAGE of the result in Column J, what do I do to
get
an AVERAGE?

At present my result is 0

Regards

EricB


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default SUMPRODUCT with AVERAGE result

For Q1 ..
Try change this bit:
.. ,--(crq!$Z$2:$Z$65536=550<=650),


to this (split it up into 2 separate criteria terms):
... ,--(crq!$Z$2:$Z$65536=550),--(crq!$Z$2:$Z$65536<=650),


For Q2 ..
you could try an array-entered** conditional AVERAGE(IF .. ,
indicatively something like this:
=AVERAGE(IF(Cond1*Cond2*Cond3*Cond4,Range_J))
where Cond1, Cond2, Cond3 etc would be your criteria eg:
(crq!$C$2:$C$65536="Debit Order")
(crq!$D$2:$D$65536="FNB")
(crq!$H$2:$H$65536="APP")
etc

**press CTRL+SHIFT+ENTER to confirm the formula
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"EricB" wrote:
SUMPRODUCT with AVERAGE result

Formula refers:
=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550<=650),crq!$J$2:$J$65536)

1) What criteria do I use to pickup records being equal to and greater than
550 but not exceeding 650?
2) I need to get the AVERAGE of the result in Column J, what do I do to get
an AVERAGE?

At present my result is 0

Regards

EricB

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default SUMPRODUCT with AVERAGE result

Typo alert!

The formula miss a closing paranthesis in last SumProduct statement.

//Per

"Per Jessen" skrev i meddelelsen
...
Hi Eric

Try this, in one formula line (has not been tested):

=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550),--(crq!$Z$2:$Z$65536<=650),crq!$J$2:$J$65536)/SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550),--(crq!$Z$2:$Z$65536<=650)

Hopes this helps.

---
Per


"EricB" skrev i meddelelsen
...
SUMPRODUCT with AVERAGE result

Formula refers:
=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550<=650),crq!$J$2:$J$65536)

1) What criteria do I use to pickup records being equal to and greater
than
550 but not exceeding 650?
2) I need to get the AVERAGE of the result in Column J, what do I do to
get
an AVERAGE?

At present my result is 0

Regards

EricB



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default SUMPRODUCT with AVERAGE result

=AVERAGE(IF((rngC="Debit
Order")*(rngD="FNB")*(rngH="APP")*(rngZ=550)*(rng Z<=650),rngJ))

ctrl+shift+enter, not just enter


"EricB" wrote:

SUMPRODUCT with AVERAGE result

Formula refers:
=SUMPRODUCT(--(crq!$C$2:$C$65536="Debit
Order"),--(crq!$D$2:$D$65536="FNB"),--(crq!$H$2:$H$65536="APP"),--(crq!$Z$2:$Z$65536=550<=650),crq!$J$2:$J$65536)

1) What criteria do I use to pickup records being equal to and greater than
550 but not exceeding 650?
2) I need to get the AVERAGE of the result in Column J, what do I do to get
an AVERAGE?

At present my result is 0

Regards

EricB

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
Find components of an Average Result al_ba Excel Worksheet Functions 6 October 2nd 08 11:58 AM
=AVERAGE returning a #DIV/0! result Rebekah Excel Worksheet Functions 8 October 5th 07 11:12 AM
Average function not returning expected result gja63 Excel Discussion (Misc queries) 4 August 28th 07 12:36 AM
Getting #NUM! result for SumProduct Sarah (OGI) Excel Worksheet Functions 10 August 8th 07 01:43 PM
formula result #value! needs to equal zero for average calculation LauraRose Excel Worksheet Functions 3 March 13th 06 06:13 PM


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