Sumproduct returning #NUM!

W

wal50

Using:
=SUMPRODUCT(Detail!Region="james")*(detail!Contract="n/g")*(detail!Amount)
returns #NUM! Could this be because some cells in Amount range are blank? I
appreciate the help
 
P

PeterAtherton

one way is to use an array function entered with Ctrl + Shift + Enter
try =SUM(IF((details!Region="James")*(details!Contract="n/g"),details!amount))

Excel will enter curly brackets around the formula if you have entered it
properly

Regards
Peter Atherton
 
J

JulieD

Hi

try
=SUMPRODUCT((Detail!Region="james")*(detail!Contract="n/g")*(detail!Amount))
additionally,
you left the brackets off around ALL the parameters

additionally, the ranges must be the same size

Cheers
JulieD
 
W

wal50

Thank you all for your help.
I had the range names for the entire column in each case so they were all
the same size. When I used the actual row range and didn't count the header
row (A2:A332), and made sure they were all the same size with no blanks,
everything worked. Unfortunately, I did all 3 things at the same time so am
not sure which one fixed it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top