View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT() yielding #NUM!

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ann Scharpf" wrote in message
...
THANKS! My problem was that I'd selected the whole column when I named
the
range. It's been about 4 years since I wrote a formula using SUMPRODUCT()
and i totally forgot about that limitations of not naming whole columns
and
the ranges needing to include the same number of rows.

Recreating the named ranges fixed the problem.

Oh, and it WAS a #NUM! ERROR.
--
Ann Scharpf


"T. Valko" wrote:

=SUMPRODUCT(--(YEAR(PayDate)=YEAR(TODAY())),LWOP)


What version of Excel are you using? Do the named ranges refer to entire
columns? If so, you can't use entire columns as range references with
SUMPRODUCT unless you're using Excel 2007 or later.

--
Biff
Microsoft Excel MVP


"Ann Scharpf" wrote in message
...
Bob Phillips & Glen helped me out with a SUMIF() question I posted
earlier
today. Both of you recommended that I use this formula:

=SUMPRODUCT(--(YEAR(PayDate)=YEAR(TODAY())),LWOP)

(I changed the name of the range from Date to PayDate so I don't use a
reserved function name.)

Now I am getting a #NUM! errror. I looked in help and it said this
happens
when you have non-numeric data. I've gone through the entire columns
in
question (PayDate and LWOP) and deleted the values from all cells that
should
be blank. I just have numbers, dates and the column headings. I'm
sorry
to
be a pain here but can you tell me what else I've done wrong?

Thanks again!


--
Ann Scharpf



.