Sum multiple cells based on text in corresponding cells

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
94
Office Version
  1. 2019
Platform
  1. Windows
Hi,

My XL2bb is not working again. It kept saying "Microsoft has blocked macros from running because source of this file is untrusted".

Anyway, I have a file where I need to add the numbers based on the remark column. The final results that I need is in Green (L2:N4)

1663318338692.png


For example, Column L "Good" : L2 total is C2+E2+G2+I2+K2 if the corresponding cells in B2,D2,F2,H2 and J2 is "Good". Any formula to this this?

Thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
In L2, then drag right and down to fill the table.
Excel Formula:
=SUMIF($B2:$J2,L$1,$C2:$K2)
 
Upvote 0
Solution
okayy.. now I feel like a complete idiot...
I get that feeling most days :oops:

It's one of those things where you either know how to do it or you don't. Examples of how to use formulas like this are often too simple and many of the possible variations to what would be considered normal use are easily overlooked.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,431
Members
448,961
Latest member
nzskater

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