using sumif to sum multiple columns??

jinx_uk_98

Board Regular
Joined
Jul 3, 2005
Messages
105
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

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
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))
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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)
 
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,023
Messages
5,834,996
Members
430,331
Latest member
Syed Yasir Hannan

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