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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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))
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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
Back
Top