Conditional sum help

junkforhr

Board Regular
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.

Andrew Poulsom

MrExcel MVP
You could limit the ranges. Do you really have ~649000 rows of data?

junkforhr

Board Regular
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.

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.

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.

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