Conditional sum help

junkforhr

Board Regular
Joined
Dec 16, 2009
Messages
88
Office Version
  1. 2016
Platform
  1. Windows
Hi.

I have a 5 worksheets that I need to add certain columns,in each worksheet. For example, there is an hours column in each worksheet, however, this column is on different locations on each sheet. I have been using conditional sum, and, have come up with the following.
***********************
{=SUM(IF('out of office comm engag'!$G$2:$G$649857=$B11,1,0))+SUM(IF('out of office cust'!$G$2:$G$649958=$B11,1,0))+SUM(IF('in office visitor'!$E$2:$E$649979=$B11,1,0))+SUM(IF('in office cust'!$G$2:$G$649900=$B11,1,0))+SUM(IF('area csc admin'!$F$2:$F$64917=$B11,1,0))}
*****************

This works fine, but I have a number of these in the workbook, and, I was wondering is there a more efficient was of doing this.

Any help is greatly appreciated.

Cheers
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

junkforhr

Board Regular
Joined
Dec 16, 2009
Messages
88
Office Version
  1. 2016
Platform
  1. Windows
Thanks for the reply, no I just has some test data in and made the data-set a lot larger. In my real version, there are around 50,000 to 60,000 rows of data for each worksheet.
 
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,164,515
Messages
5,837,787
Members
430,516
Latest member
thaling

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