# formulas across multiple sheets

#### Rhodestransit

##### New Member
I need help in writing a formula for multiple columns
Here is the formula I have now
=SUMIF(AM!C\$3:C\$65536,'employee daily tally'!A2,'Run data'!B\$2:B\$192)
I need to add AM!F\$3:F\$65536,'employee daily tally'!A2,'Run data'!C\$2:C\$192)
and I will need to repeat this for another 10 or so columns.
I dont know how to enter this all into a single cell without getting the error messages.

### Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I am assuming you wish to sum all the values in all ten columns, is that right?

=SUMIF(AM!C\$3:C\$65536,'employee daily tally'!A2,'Run data'!B\$2:B\$192)+SUMIF(AM!F\$3:F\$65536,'employee daily tally'!A2,'Run data'!C\$2:C\$192)+ etc

That was easier than I thought!
Thank you

I need help in writing a formula for multiple columns
Here is the formula I have now
=SUMIF(AM!C\$3:C\$65536,'employee daily tally'!A2,'Run data'!B\$2:B\$192)
I need to add AM!F\$3:F\$65536,'employee daily tally'!A2,'Run data'!C\$2:C\$192)
and I will need to repeat this for another 10 or so columns.
I dont know how to enter this all into a single cell without getting the error messages.
Airfix9 showed you how to do it but...

=SUMIF(AM!C\$3:C\$65536,'employee daily tally'!A2,'Run data'!B\$2:B\$192)
The sum_range is not the same size as the criteria_range BUT the formula will use a sum_range that IS the same size as the criteria range.

So, if effect, your formula is doing:

=SUMIF(AM!C\$3:C\$65536,'employee daily tally'!A2,'Run data'!B\$2:B\$65535)

Here is what im using
=SUMIF(\$AM.C\$2:C\$45;\$'employee daily tally'.A2;\$'Run data'.B\$2:B\$75)
+SUMIF(\$AM.F\$2:F\$45;\$'employee daily tally'.A2;\$'Run data'.C\$2:C\$75)
+SUMIF(\$AM.I\$2:I\$45;\$'employee daily tally'.A2;\$'Run data'.D\$2:D\$75)
+SUMIF(\$AM.M\$2:M\$45;\$'employee daily tally'.A2;\$'Run data'.E\$2:E\$75)
+SUMIF(\$AM.P\$2:P\$45;\$'employee daily tally'.A2;\$'Run data'.F\$2:F\$75)
+SUMIF(\$AM.S\$2:S\$45;\$'employee daily tally'.A2;\$'Run data'.B\$78:B\$98)
+SUMIF(\$AM.W\$2:W\$45;\$'employee daily tally'.A2;\$'Run data'.C\$78:C\$98)

it is only working for data in columns C, F, I none of the others return any of the values?
Is there a maximum number that it can check.

Replies
9
Views
289
Replies
7
Views
159
Replies
3
Views
318
Replies
1
Views
273
Replies
4
Views
195

1,217,503
Messages
6,137,020
Members
450,038
Latest member

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