Sum Multiple Columns With One Criteria

Lewzerrrr

Active Member
Joined
Jan 18, 2017
Messages
256
Hi,

How can I sum up each column based on the criteria inputted? What I've used is this but obviously not the most practical.

=SUMIF(B2:B25,K2,C2:C25)+SUMIF(D2:D25,K2,E2:E25)+SUMIF(F2:F25,K2,G2:G25)+SUMIF(H2:H25,K2,I2:I25)

How can I simplify this?

Oranges39Pears76Pears10Oranges62Oranges1,862
Pears48Apples49Oranges78Pears93
Pears50Apples42Pears50Pears26
Oranges60Oranges81Oranges17Apples77
Apples53Oranges75Oranges13Oranges52
Pears75Pears78Apples8Apples13
Pears3Apples47Oranges98Oranges9
Oranges62Apples33Oranges14Oranges20
Oranges65Pears49Oranges42Oranges51
Oranges30Oranges35Oranges3Pears26
Oranges67Pears40Oranges40Apples50
Oranges52Apples1Apples77Oranges82
Oranges94Oranges42Apples25Pears15
Pears58Pears50Apples89Oranges8
Apples11Apples65Pears95Pears86
Pears33Pears81Oranges3Oranges22
Apples26Pears52Apples38Apples88
Apples53Oranges7Apples60Pears80
Oranges91Pears3Pears2Pears71
Apples14Oranges64Pears20Apples35
Apples99Pears92Oranges48Oranges2
Oranges88Apples43Oranges95Pears9
Pears25Apples16Oranges89Pears32
Oranges62Pears27Pears25Pears84

<colgroup><col width="64" span="11" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Theres nothing really wrong with what you have but with that data you could do:

=SUMIF(B2:H25,K2,C2:I25)
 
Upvote 0

Forum statistics

Threads
1,215,777
Messages
6,126,838
Members
449,343
Latest member
DEWS2031

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