Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Average nesting within Sumproduct?

I'm bamboozled!...and would welcome assistance from someone with greater
understanding of nesting functions than I. I've got the first bit, but can't
work out the next part:
Part A: If the value in cell M24 is found in range A2:a500, and if the item
code in range J2:J500 commences with "A", then sum the $values in range
I2:I500
Part B: Return an average based on the values in range I2:I500 (which meet
the above criteria) multiplied by the value in P24.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average nesting within Sumproduct?

Try this array formula** :

=AVERAGE(IF(A2:A500=M24,IF(LEFT(J2:J500)="A",IF(IS NUMBER(I2:I500),I2:I500))))*P24

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
I'm bamboozled!...and would welcome assistance from someone with greater
understanding of nesting functions than I. I've got the first bit, but
can't
work out the next part:
Part A: If the value in cell M24 is found in range A2:a500, and if the
item
code in range J2:J500 commences with "A", then sum the $values in range
I2:I500
Part B: Return an average based on the values in range I2:I500 (which meet
the above criteria) multiplied by the value in P24.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 54
Default Average nesting within Sumproduct?

thanks for your response. Working on your formula, I've done this in Q25:
=AVERAGE(IF(A2:A1167=M24,IF(LEFT(K2:K1167)="c",IF( ISNUMBER(J2:J1167),J2:J1167))))*Q24
which has returned the total $value of the occurences, rather than the
average of the total $value. In Q26, underneath, I've done this:
=AVERAGE(Q25)/Q24
Question: It's possible K2:K1167 contains more than item code which should
be collected. If I adjust the "c" to display "c","n", it returns a zero
$value.


"T. Valko" wrote:

Try this array formula** :

=AVERAGE(IF(A2:A500=M24,IF(LEFT(J2:J500)="A",IF(IS NUMBER(I2:I500),I2:I500))))*P24

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
I'm bamboozled!...and would welcome assistance from someone with greater
understanding of nesting functions than I. I've got the first bit, but
can't
work out the next part:
Part A: If the value in cell M24 is found in range A2:a500, and if the
item
code in range J2:J500 commences with "A", then sum the $values in range
I2:I500
Part B: Return an average based on the values in range I2:I500 (which meet
the above criteria) multiplied by the value in P24.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Average nesting within Sumproduct?

Take a look at this screencap:

http://img159.imageshack.us/img159/3...erageifek6.jpg

I have no idea what your actual data is but the formula works as shown in
that screencap. Did you enter the formula as an array? I see in my other
reply I forgot to include my array formula reminder:

Try this array formula** :


** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
thanks for your response. Working on your formula, I've done this in Q25:
=AVERAGE(IF(A2:A1167=M24,IF(LEFT(K2:K1167)="c",IF( ISNUMBER(J2:J1167),J2:J1167))))*Q24
which has returned the total $value of the occurences, rather than the
average of the total $value. In Q26, underneath, I've done this:
=AVERAGE(Q25)/Q24
Question: It's possible K2:K1167 contains more than item code which
should
be collected. If I adjust the "c" to display "c","n", it returns a zero
$value.


"T. Valko" wrote:

Try this array formula** :

=AVERAGE(IF(A2:A500=M24,IF(LEFT(J2:J500)="A",IF(IS NUMBER(I2:I500),I2:I500))))*P24

--
Biff
Microsoft Excel MVP


"Twishlist" wrote in message
...
I'm bamboozled!...and would welcome assistance from someone with
greater
understanding of nesting functions than I. I've got the first bit, but
can't
work out the next part:
Part A: If the value in cell M24 is found in range A2:a500, and if the
item
code in range J2:J500 commences with "A", then sum the $values in range
I2:I500
Part B: Return an average based on the values in range I2:I500 (which
meet
the above criteria) multiplied by the value in P24.






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
nesting "and" in sumproduct function George P Excel Discussion (Misc queries) 1 January 6th 07 07:40 PM
nesting "and" in sumproduct function George P Excel Discussion (Misc queries) 0 January 6th 07 07:22 PM
Excel : Nesting of functions such as sumproduct and sumif Nimish Shah Excel Worksheet Functions 6 December 22nd 06 01:27 PM
Sumproduct Average heater Excel Discussion (Misc queries) 2 June 2nd 06 10:32 PM
How do I nesting subtotal function within average function in Exc Amy Yeh Excel Worksheet Functions 4 January 19th 05 06:23 PM


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