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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,231
Messages
6,170,884
Members
452,364
Latest member
springate

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