Array returns error message #Num

jthompson

Board Regular
Joined
Aug 27, 2002
Messages
57
Office Version
  1. 365
Platform
  1. Windows
=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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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)
 
Upvote 0
Thanks! That worked great. I think I was tyring to make that a lot harder than it was.
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,677
Members
449,092
Latest member
tayo4dgacorbanget

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