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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,223,910
Messages
6,175,316
Members
452,634
Latest member
cpostell

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