Array returns error message #Num

jthompson

Board Regular
Joined
Aug 27, 2002
Messages
55
=SUM(IF(A2='[OCR Blue.xls]OCR Contract r20'!$D:$D,'[OCR Blue.xls]OCR Contract r20'!$AA:$AA))

I am tyring to look for the item in A2 and go to another sheet and look for that value in column "D" and then sum the items in the corresponding column"AA:AA". I am getting the error message #NUM. Any help would be appreciated.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Juan Pablo González

MrExcel MVP
Joined
Feb 8, 2002
Messages
11,959
Array formulas can't look at entire columns (AA:AA, D:D), you have to define a finite range.

However, looks like you could use a simple SUMIF (which can work on the whole column)
 

jthompson

Board Regular
Joined
Aug 27, 2002
Messages
55
Thanks! That worked great. I think I was tyring to make that a lot harder than it was.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,151
Messages
5,857,671
Members
431,891
Latest member
shirazx3

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