Sum cells that meet certain criteria

Brendansull

New Member
Joined
Oct 14, 2017
Messages
3
Hi,
I am looking for a formula to sum the value of cells from B2 to B10, but only the cells that meet a specific condition, i.e. C2 to C10 having a Yes value.
So for example below

5




I have tried the countif and sumif, but can't seem to get them right.
Sorry I am only a new user to excel!

What I am trying is wrong as i either get 0 or invalid :(
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Aplogise, I hit the enter kit by accident:
Hi,
I am looking for a formula to sum the value of cells from B2 to B10, but only the cells that meet a specific condition, i.e. C2 to C10 having a Yes value.
So for example below

5 yes
2 no
4 yes
Total: 9


Totally apologise, hit the enter key by accident!


I have tried the countif and sumif, but can't seem to get them right.
Sorry I am only a new user to excel!

What I am trying is wrong as i either get 0 or invalid :(
 
Upvote 0
Aplogise, I hit the enter kit by accident:
Hi,
I am looking for a formula to sum the value of cells from B2 to B10, but only the cells that meet a specific condition, i.e. C2 to C10 having a Yes value.
So for example below

5 yes
2 no
4 yes
Total: 9


Totally apologise, hit the enter key by accident!


I have tried the countif and sumif, but can't seem to get them right.
Sorry I am only a new user to excel!

What I am trying is wrong as i either get 0 or invalid :(

Try this: =SUMIF(C2:C10,"Yes",B2:B10)
 
Upvote 0
MHighland,
Thank you very much. You have no idea how much time I spent on that. And now looking at it....it makes complete sense:laugh:
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,204
Members
453,022
Latest member
RobertV1609

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