# Sumifs Array Help

#### dmarzean

##### New Member
I have the following that I have been using on a commission payroll sheet. problem is, there have been some changes and I now need to sum instead of count due to negative values being added to the data sheet.

=IF(COUNTIFS('Work Orders'!\$B\$2:\$B\$9987,"=" &[@[Work Order]],'Work Orders'!\$I\$2:\$I\$9987,">-2",'Work Orders'!\$E\$2:\$E\$9987,"=" &[@[Last Name]])>0,COUNTIFS('Work Orders'!\$B\$2:\$B\$9987,"=" & [@[Work Order]],'Work Orders'!\$I\$2:\$I\$9987,">-2",'Work Orders'!\$E\$2:\$E\$9987,"=" &[@[Last Name]]),"")

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

#### Rijnsent

##### Well-known Member
Okay, I think I get it:
=IF(COUNTIFS('Work Orders'!\$B\$2:\$B\$9987,"=" &[@[Work Order]],'Work Orders'!\$I\$2:\$I\$9987,">-2",'Work Orders'!\$E\$2:\$E\$9987,"=" &[@[Last Name]])>0,COUNTIFS('Work Orders'!\$B\$2:\$B\$9987,"=" & [@[Work Order]],'Work Orders'!\$I\$2:\$I\$9987,">-2",'Work Orders'!\$E\$2:\$E\$9987,"=" &[@[Last Name]]),"")

Would be:
=IF(SUMIFS('Work Orders'!G\$2:G\$9987,'Work Orders'!\$B\$2:\$B\$9987,"=" &[@[Work Order]],'Work Orders'!\$G\$2:\$G\$9987,">0",'Work Orders'!\$E\$2:\$E\$9987,"=" &[@[Last Name]])>0,COUNTIFS('Work Orders'!\$B\$2:\$B\$9987,"=" & [@[Work Order]],'Work Orders'!\$G\$2:\$G\$9987,">0",'Work Orders'!\$E\$2:\$E\$9987,"=" &[@[Last Name]]),"")

So basically the only thing that changes is: COUNTIFS -> SUMIFS, and just after SUMIFS( you have to insert what you'd like to sum, in this case: SUMIFS('Work Orders'!G\$2:G\$9987, (assuming that's TV Starter).

Good luck

Replies
7
Views
141
Replies
3
Views
20
Replies
10
Views
170
Replies
3
Views
151
Replies
35
Views
568

1,130,119
Messages
5,640,219
Members
417,131
Latest member
Seanr19871

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back