# 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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### 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.

Replies
7
Views
384
Replies
1
Views
141
Replies
2
Views
217
Replies
5
Views
161
Replies
8
Views
129

1,130,444
Messages
5,642,175
Members
417,259
Latest member
gtacw

### 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