sumproduct + index

bluepenink

Well-known Member
Joined
Dec 21, 2010
Messages
585
hello

having some trouble with this formula...not sure why the error is appearing.

$ of all invoices:

=SUMPRODUCT(--(INDEX(_Data,0,10)>=$D$10),--(INDEX(_Data,0,10)<=$D$10+6),--(INDEX(_Data,0,12)))
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Not sure if it's the problem, but the sumrange doesn't have to be in the --(...) syntax..

Should be just
=SUMPRODUCT(--(INDEX(_Data,0,10)>=$D$10),--(INDEX(_Data,0,10)<=$D$10+6),INDEX(_Data,0,12))

Also, make sure the named range _Data is NOT referring to ENTIRE columns..


If this doesn't help,
What is the error?
Are there any errors within the referenced ranges? Those will propegate into the result of the formula.
 
Upvote 0
hello thx u so much...that did the trick *duh*, thx u so much!

also, this formula below, im not sure why its giving me #value error. can u pls advise

# of invoices per store, based on date in D10 (d10 = start of week i.e. monday only may-30, june 6 etc)

=AVERAGE(IF(FREQUENCY(IF(INDEX(_Data,0,10)>=$D$10,IF(INDEX(_Data,0,10)<=$D$10+6,IF(INDEX(_Data,0,11),MATCH(INDEX(_Data,0,6),INDEX(_Data,0,6),0)))),ROW(INDEX(_Data,0,6))-ROW(INDEX(_Data,1,6))+1)>0,1))

confirmed by crt+shift+enter

thx u so much
 
Last edited:
Upvote 0
Hello Aladin,

a)
_Data is where my data is contained
='G.S - Report'!$C$8:INDEX('G.S - Report'!$W:$W,MATCH(REPT("Z",255),'G.S - Report'!$C:$C))

b) yes there are formulas in some ranges

c) D10 contains the the date for the first monday of every week i.e. 30-may-2011, 6-june-2011 etc, from a drop down list)

d) not sure about the D10+0

so basically,

# of invoices per store, based on date in D10 (d10 = start of week i.e. monday only may-30, june 6 etc)

=AVERAGE(IF(FREQUENCY(IF(INDEX(_Data,0,10)>=$D$10,IF(INDEX(_Data,0,10)<=$D$10+6,IF(INDEX(_Data,0,11),MATCH(INDEX(_Data,0,6),INDEX(_Data,0,6),0)))),ROW(INDEX(_Data,0,6))-ROW(INDEX(_Data,1,6))+1)>0,1))

confirmed by crt+shift+enter

*i wish i could upload a file, w.o my server blocking sites ugg*
 
Upvote 0
Hello Aladin,

a)
_Data is where my data is contained
='G.S - Report'!$C$8:INDEX('G.S - Report'!$W:$W,MATCH(REPT("Z",255),'G.S - Report'!$C:$C))

OK.

b) yes there are formulas in some ranges

Would you post some of them here?

c) D10 contains the the date for the first monday of every week i.e. 30-may-2011, 6-june-2011 etc, from a drop down list)

OK.

d) not sure about the D10+0
...

Enter in some cell:

=D10+0

and report back the result.
 
Upvote 0

Forum statistics

Threads
1,224,504
Messages
6,179,144
Members
452,891
Latest member
JUSTOUTOFMYREACH

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