#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rob
 
Posts: n/a
Default Sum if

is there a way to create a sum if statement with two criteria that sums a
different column. Sumproduct does not seem to work if there is an error #NA
in the criteria column. I have tried and tried to get it to work but I
continually get an #NA. I know that there is an error in the column but that
is not part of the criteria but sumproduct looks at it anyway. Unless I am
writing this function incorretly. Please help if you can.

=SUMPRODUCT(--($I$7:$I$2585=$AP2604),--($L$7:$L$2585="Fb"),--(AS9:AS2587))

Column L has some NA's so sumproduct returns an NA as the answer. As you
can see, NA is not in the criteria.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Umlas, Excel MVP
 
Posts: n/a
Default Sum if

Ctrl/Shift/Enter:
=SUMPRODUCT(--($I$7:$I$2585="e"),--(IF(ISNA($L$7:$L$2585),0,$L$7:$L$2585)="Fb"),--(AS9:AS2587))

"Rob" wrote:

is there a way to create a sum if statement with two criteria that sums a
different column. Sumproduct does not seem to work if there is an error #NA
in the criteria column. I have tried and tried to get it to work but I
continually get an #NA. I know that there is an error in the column but that
is not part of the criteria but sumproduct looks at it anyway. Unless I am
writing this function incorretly. Please help if you can.

=SUMPRODUCT(--($I$7:$I$2585=$AP2604),--($L$7:$L$2585="Fb"),--(AS9:AS2587))

Column L has some NA's so sumproduct returns an NA as the answer. As you
can see, NA is not in the criteria.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Sum if

=SUM(IF($I$7:$I$2585=$AP2,IF(ISNUMBER(MATCH($L$7:$ L$2585,{"Fb"},0)),AS9:AS2587)))

which must be confirmed with control+shift+enter.

Rob wrote:
is there a way to create a sum if statement with two criteria that sums a
different column. Sumproduct does not seem to work if there is an error #NA
in the criteria column. I have tried and tried to get it to work but I
continually get an #NA. I know that there is an error in the column but that
is not part of the criteria but sumproduct looks at it anyway. Unless I am
writing this function incorretly. Please help if you can.

=SUMPRODUCT(--($I$7:$I$2585=$AP2604),--($L$7:$L$2585="Fb"),--(AS9:AS2587))

Column L has some NA's so sumproduct returns an NA as the answer. As you
can see, NA is not in the criteria.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"