View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt Barb Reinhardt is offline
external usenet poster
 
Posts: 3,355
Default SUMPRODUCT with Hidden Columns

Your sumproduct won't work because the arrays need to be the same size. You
have one array of $D$4:$D$125 and another with multiple columns. What
exactly do you want to do?

"Steven" wrote:

How can I finesse SUMPRODUCT to ignore hidden columns? For example with
column G through M hidden, column D contains resource names, and column F
through AE contain hours:

=SUMPRODUCT(--($d$4:$d125="ResourceName")*($f$4:$ae$125))