Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Functions that can be used with Sumproduct


I know that the following will work
=SUMPRODUCT($F$5:$F$370,--(MOD($B$5:$B$370,7)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(MOD($B$5:$B$370,7)=$S8))

However
=SUMPRODUCT($F$5:$F$370,--(WEEKNUM($B$5:$B$370)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(WEEKNUM($B$5:$B$370)=$S8))

MOD will work but WEEKNUM Will not work - is there a list of functions that
will work (when dealings with vector/arrays) with sumproduct and ones that
will not?

Or do I have to do something special with the weeknum command to be able to
work on something other than one cell?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Functions that can be used with Sumproduct

What error do you get when you try to run the formula?
--
Brevity is the soul of wit.


"Brad" wrote:


I know that the following will work
=SUMPRODUCT($F$5:$F$370,--(MOD($B$5:$B$370,7)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(MOD($B$5:$B$370,7)=$S8))

However
=SUMPRODUCT($F$5:$F$370,--(WEEKNUM($B$5:$B$370)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(WEEKNUM($B$5:$B$370)=$S8))

MOD will work but WEEKNUM Will not work - is there a list of functions that
will work (when dealings with vector/arrays) with sumproduct and ones that
will not?

Or do I have to do something special with the weeknum command to be able to
work on something other than one cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default Functions that can be used with Sumproduct

using the - tool - formula auditing funtions give a value error when
evaluating WEEKNUM($B$5:$B$370) - I have the appropriate add-ins included in
Excel

"Dave F" wrote:

What error do you get when you try to run the formula?
--
Brevity is the soul of wit.


"Brad" wrote:


I know that the following will work
=SUMPRODUCT($F$5:$F$370,--(MOD($B$5:$B$370,7)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(MOD($B$5:$B$370,7)=$S8))

However
=SUMPRODUCT($F$5:$F$370,--(WEEKNUM($B$5:$B$370)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(WEEKNUM($B$5:$B$370)=$S8))

MOD will work but WEEKNUM Will not work - is there a list of functions that
will work (when dealings with vector/arrays) with sumproduct and ones that
will not?

Or do I have to do something special with the weeknum command to be able to
work on something other than one cell?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Functions that can be used with Sumproduct

Perhaps WEEKNUM can't be used across a range.

My understanding of its syntax is =WEEKNUM(A1,2)

See this for more info: http://www.cpearson.com/excel/weeknum.htm

As to which formulas can't be used with SUMPRODUCT--I don't know of any such
list.

Dave
--
Brevity is the soul of wit.


"Brad" wrote:

using the - tool - formula auditing funtions give a value error when
evaluating WEEKNUM($B$5:$B$370) - I have the appropriate add-ins included in
Excel

"Dave F" wrote:

What error do you get when you try to run the formula?
--
Brevity is the soul of wit.


"Brad" wrote:


I know that the following will work
=SUMPRODUCT($F$5:$F$370,--(MOD($B$5:$B$370,7)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(MOD($B$5:$B$370,7)=$S8))

However
=SUMPRODUCT($F$5:$F$370,--(WEEKNUM($B$5:$B$370)=$S8))/SUMPRODUCT(--($F$5:$F$3700),--(WEEKNUM($B$5:$B$370)=$S8))

MOD will work but WEEKNUM Will not work - is there a list of functions that
will work (when dealings with vector/arrays) with sumproduct and ones that
will not?

Or do I have to do something special with the weeknum command to be able to
work on something other than one cell?

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 & Indirect Functions VBA Noob Excel Worksheet Functions 9 July 16th 06 09:13 AM
Combining SUMPRODUCT and RANK functions MikeM Excel Worksheet Functions 0 November 14th 05 02:09 PM
Database functions should use criteria in formula, as 1-2-3 does 123user Excel Worksheet Functions 8 September 29th 05 08:57 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 12:24 PM.

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"