View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rick Rothstein \(MVP - VB\)[_962_] Rick Rothstein \(MVP - VB\)[_962_] is offline
external usenet poster
 
Posts: 1
Default count occurences meeting criteria

Unless you have XL2007, you cannot use an entire row as a range for
Sumproduct. You must use a specific range. So if your paste somehow "gets
rid of the A1 and IV1", then put it back. If your range ends at DD1, then
use:


Apparently you can... for rows. This works fine in my XL2003...

=SUMPRODUCT(--(YEAR(1:2)=YEAR(NOW())))

where I modified the formula to look at rows 1 and 2. And Excel did change
the A1:IV1 range to 1:1 automatically.

Rick