sumproduct error

simonf

Board Regular
Joined
Jun 18, 2002
Messages
207
Can someone tell me what's wrong with this formula? I kept on getting #N/A.

=SUMPRODUCT(('[FY03 Budget.xls]Summary'!$L$37:$L$64=B65)*('[FY03 Budget.xls]Summary'!$M$9:$X$9=C4)*'[FY03 Budget.xls]Summary'!$M$37:$Y$64)

$L$37:$L$64 are the departments
$M$9:$X$9 are the months
$M$37:$Y$64 are the budget numbers

They are all on a differnt workbook.

Thanks in advance.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Jay Petrulis

MrExcel MVP
Joined
Mar 17, 2002
Messages
2,040
Hi,

SUMPRODUCT requires that the arrays you are using be identically sized. One can be a row, another a column, but the number of elements must be equal. All the ranges are different in your formula.

You also have a multiple row/column range being tested, and that will require another approach, I believe.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-10-11 15:41, simonf wrote:
Can someone tell me what's wrong with this formula? I kept on getting #N/A.

=SUMPRODUCT(('[FY03 Budget.xls]Summary'!$L$37:$L$64=B65)*('[FY03 Budget.xls]Summary'!$M$9:$X$9=C4)*'[FY03 Budget.xls]Summary'!$M$37:$Y$64)

$L$37:$L$64 are the departments
$M$9:$X$9 are the months
$M$37:$Y$64 are the budget numbers

They are all on a differnt workbook.

Thanks in advance.

$Y$64 should probably be $X$64. Right?
 

simonf

Board Regular
Joined
Jun 18, 2002
Messages
207
Just figured it out by using INDEX(range, MATCH, MATCH). Thanks for all the helps. :cool:
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-10-11 16:22, simonf wrote:
Just figured it out by using INDEX(range, MATCH, MATCH). Thanks for all the helps. :cool:

I'd like to see an answer to the question I posed. You might get a better formula.
 

Forum statistics

Threads
1,144,310
Messages
5,723,637
Members
422,506
Latest member
mdindas

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
Top