Sumifs Array Help

dmarzean

New Member
Joined
Apr 20, 2008
Messages
21
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]]),"")

Here is the spreadsheet http://integsalesjobs.com/wp-content/uploads/2014/01/01-14-az-PAYROLL.xlsm
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Rijnsent

Well-known Member
Joined
Oct 17, 2005
Messages
1,342
Office Version
  1. 365
Platform
  1. Windows
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,708
Messages
5,855,257
Members
431,717
Latest member
Ibyb

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Top