PC Review


Reply
Thread Tools Rate Thread

Condititional Average

 
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      1st Feb 2006
Sorry for the blast of questions today. I would like to Average a field but
only for field where another field in that record equals a certin Value.
Here's the set up

Scores.B1 intake Method
Scores.B2

I would like to average scores.b2 but only for the records where Sscores.B1
Intake Method = 3

I con not resrict the qry to return only those records as I need all the
responses for the other fields. Is this possible? Thank you Jason
 
Reply With Quote
 
 
 
 
John Vinson
Guest
Posts: n/a
 
      1st Feb 2006
On Wed, 1 Feb 2006 07:51:39 -0800, "Jason"
<(E-Mail Removed)> wrote:

>Sorry for the blast of questions today. I would like to Average a field but
>only for field where another field in that record equals a certin Value.
>Here's the set up
>
>Scores.B1 intake Method
>Scores.B2
>
>I would like to average scores.b2 but only for the records where Sscores.B1
>Intake Method = 3
>
>I con not resrict the qry to return only those records as I need all the
>responses for the other fields. Is this possible? Thank you Jason


If the query needs to include all records, the Avg() totals operator
won't work. Try instead an expression:

Sum(IIF([B1 Intake Method] = 3, [B2], 0)) / Sum(IIF([B1 Intake Method]
= 3, 1, 0))


John W. Vinson[MVP]


 
Reply With Quote
 
=?Utf-8?B?SmFzb24=?=
Guest
Posts: n/a
 
      1st Feb 2006
Thanks John that got me where I needed to be.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Condititional Formtting a Column =?Utf-8?B?TWVnYWRyb25l?= Microsoft Excel Worksheet Functions 4 6th Jun 2007 07:39 PM
condititional formatting! via135 Microsoft Excel Worksheet Functions 6 15th Mar 2006 06:42 PM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Microsoft Excel Worksheet Functions 13 31st Jul 2005 03:59 PM
Excel needs more than 3 conditions in condititional formatting... =?Utf-8?B?Y2F0bGF3cmVuY2U=?= Microsoft Excel Misc 4 12th Oct 2004 10:30 PM
Condititional Formatting Range Address Jim Microsoft Excel Programming 2 30th Sep 2003 02:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:03 PM.