#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default sumproduct

The two formulas work seperately. I want to combine them. The results
returned are the % of cells with numbers between 0 and 100 on each worksheet.
I want the % of cells on both worksheet; so I can't just add the two results
together
:(

=SUMPRODUCT(--(B2:F40),--(B2:F4<=100)/COUNT(B2:F4))

=SUMPRODUCT(--([Monday.xls]Monday!B2:F40),--([Monday.xls]Monday!B2:F4<=100)/COUNT([Monday.xls]Monday!B2:F4))
Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 611
Default sumproduct

Novice,

Your formula isn't exactly what you asked for. Cells with 0 will be treated as numbers that
don't fall in your range. This will reduce the percentage result. The following formula
works the same, except across the two sheets.

=(SUMPRODUCT((Sheet1!B2:F40)*(Sheet1!B2:F4<=100) )
+SUMPRODUCT((Sheet2!B2:F40)*(Sheet2!B2:F4<=100) ) )/ (COUNT(Sheet1!B2:F4) +
COUNT(Sheet2!B2:F4))
--
Regards from Virginia Beach,

Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Novice" wrote in message
...
The two formulas work seperately. I want to combine them. The results
returned are the % of cells with numbers between 0 and 100 on each worksheet.
I want the % of cells on both worksheet; so I can't just add the two results
together
:(

=SUMPRODUCT(--(B2:F40),--(B2:F4<=100)/COUNT(B2:F4))

=SUMPRODUCT(--([Monday.xls]Monday!B2:F40),--([Monday.xls]Monday!B2:F4<=100)/COUNT([Monday.xls]Monday!B2:F4))
Thanks




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default sumproduct

It worked. Thanks for pointing out that cells with 0 reduced the percentage.



"Earl Kiosterud" wrote:

Novice,

Your formula isn't exactly what you asked for. Cells with 0 will be treated as numbers that
don't fall in your range. This will reduce the percentage result. The following formula
works the same, except across the two sheets.

=(SUMPRODUCT((Sheet1!B2:F40)*(Sheet1!B2:F4<=100) )
+SUMPRODUCT((Sheet2!B2:F40)*(Sheet2!B2:F4<=100) ) )/ (COUNT(Sheet1!B2:F4) +
COUNT(Sheet2!B2:F4))
--
Regards from Virginia Beach,

Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
"Novice" wrote in message
...
The two formulas work seperately. I want to combine them. The results
returned are the % of cells with numbers between 0 and 100 on each worksheet.
I want the % of cells on both worksheet; so I can't just add the two results
together
:(

=SUMPRODUCT(--(B2:F40),--(B2:F4<=100)/COUNT(B2:F4))

=SUMPRODUCT(--([Monday.xls]Monday!B2:F40),--([Monday.xls]Monday!B2:F4<=100)/COUNT([Monday.xls]Monday!B2:F4))
Thanks





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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
SUMPRODUCT help Dallman Ross Excel Discussion (Misc queries) 6 September 9th 07 11:49 AM
sumproduct? Jack Sons Excel Discussion (Misc queries) 16 August 13th 07 04:28 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct Help Bobby Excel Worksheet Functions 1 January 6th 06 05:30 PM


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