# using sumif to sum multiple columns??

#### jinx_uk_98

##### Board Regular
Hi all,

I need some more words of wisdom please.

I'm using this formula to sumif 4 columns (K,L,M & O).

=SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!K7:K400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!L7:L400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!M7:M400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!N7:N400)

as you can see I'm just copying =SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!K7:K400) and adjusting the sum columns and adding them together.

Is there an eaiser way to do this? My range of columns is K7:ZA400.

Many thanks
Kev

### Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
jinx_uk_98 said:
Hi all,

I need some more words of wisdom please.

I'm using this formula to sumif 4 columns (K,L,M & O).

=SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!K7:K400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!L7:L400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!M7:M400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!N7:N400)

as you can see I'm just copying =SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!K7:K400) and adjusting the sum columns and adding them together.

Is there an eaiser way to do this? My range of columns is K7:ZA400.

Many thanks
Kev

Big range, but try

=SUMPRODUCT((D7:D400=O3)*(K7:ZA400))

jinx_uk_98 said:
Hi all,

I need some more words of wisdom please.

I'm using this formula to sumif 4 columns (K,L,M & O).

=SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!K7:K400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!L7:L400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!M7:M400)+SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!N7:N400)

as you can see I'm just copying =SUMIF('Daily Info'!D7:D400, O3,'Daily Info'!K7:K400) and adjusting the sum columns and adding them together.

Is there an eaiser way to do this? My range of columns is K7:ZA400.

Many thanks
Kev

In ZB7 on Daily Info enter & copy down:

=SUM(L7:O7)

Then invoke:

=SUMIF('Daily Info'!\$D\$7:\$D\$400, O3,'Daily Info'!\$ZB\$7:\$ZB\$400)

Now why didn't I suggest that...

Replies
1
Views
259
Replies
1
Views
317
Replies
1
Views
227
Replies
12
Views
2K
Replies
0
Views
406

1,211,772
Messages
6,103,881
Members
447,883
Latest member
bennazi

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