Sumproduct

mr_baz

New Member
Joined
Oct 26, 2010
Messages
20
Hi all,

I can't find what is wrong with my formula...

=SUMPRODUCT((ThisWeek<ToDoGX56<=NextWeek)*(TYPEGX56="Fast")*(ToDoGX56<>""))

This week and NextWeek are YYYY,MM,DD as usual.

Does anyone see anything wrong?

Thx!;)
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello mr baz.......your formula is corrupted when viewed normally although I can see it as a "tooltip" when I hover on your thread title.

You are trying to use a "between" type operation like

1< A1:A10< 10

.....you can't do that - split it into 2 tests, i.e.

1< A1:A10 and

A1:A10 < 10
 
Upvote 0
um, yes..?

What exactly are you trying to do? Is thisWeek a named range? and what about nextWeek...?

EDIT: ah yes, the old "html removing diagonal brackets" wheeze...
 
Upvote 0
sorry, the formula was incomplete.

=SUMPRODUCT((ThisWeek<ToDoGX56<=NextWeek)*(TYPEGX56="Fast")*(ToDoGX56<>""))

What I what to do is to check date between a date(today) and the next week(Today+7).

I tried several formulas and never get a good result.

I also tried =SUMPRODUCT((ThisWeek<ToDoGX56, ToDoGX56<=NextWeek),(TYPEGX56="Fast"),(ToDoGX56<>""))

Thanks again
 
Upvote 0
first
SUMPRODUCT((ThisWeek<ToDoGX56<=NextWeek)*(TYPEGX56="Fast")*(ToDoGX56<>""))

second
SUMPRODUCT((ThisWeek<ToDoGX56, ToDoGX56<=NextWeek),(TYPEGX56="Fast"),(ToDoGX56<>""))


<todogx56<=nextweek)*(typegx56="fast")*(todogx56<><todogx56, todogx56<="NextWeek),(TYPEGX56="Fast"),(ToDoGX56<"></todogx56,></todogx56<=nextweek)*(typegx56="fast")*(todogx56<>
 
Last edited:
Upvote 0
something's wrong, my formulas doesn't appear completely in the post

first:
SUMPRODUCT((ThisWeek<TODOGX56<=NEXTWEEK)*(TYPEGX56="FAST")*(TODOGX56<>""))

second:
SUMPRODUCT((ThisWeek<TODOGX56, ToDoGX56<='NextWeek),(TYPEGX56="Fast"),(ToDoGX56<'>""))

Hope will work this time

Put spaces before and after each < and > symbol
The forum software thinks they are HTML code, and it breaks it up..
 
Upvote 0
thanks!

again!

first
SUMPRODUCT((ThisWeek < ToDoGX56 < = NextWeek)*(TYPEGX56="Fast")*(ToDoGX56 < > ""))

second
SUMPRODUCT((ThisWeek < ToDoGX56, ToDoGX56 < =NextWeek),(TYPEGX56="Fast"),(ToDoGX56 < > ""))

Both doesn't work
 
Upvote 0
depending what your named ranges are, you probably need to enforce arrays to be returned within your calculations using --(xxx) around each set of questions

see http://www.xldynamic.com/source/xld.SUMPRODUCT.html for detailed overview of Sumproduct

e.g. =SUMPRODUCT(--(ThisWeek < ToDoGX56), --(ToDoGX56 < =NextWeek),--(TYPEGX56="Fast"),--(ToDoGX56 < > ""))
 
Upvote 0
depending what your named ranges are, you probably need to enforce arrays to be returned within your calculations using --(xxx) around each set of questions

see http://www.xldynamic.com/source/xld.SUMPRODUCT.html for detailed overview of Sumproduct

e.g. =SUMPRODUCT(--(ThisWeek < ToDoGX56), --(ToDoGX56 < =NextWeek),--(TYPEGX56="Fast"),--(ToDoGX56 < > ""))

Thank you all

and thanks for the links very helpful!
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,702
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top