SUMIF Statement with Non-Contiguous Cells

Snake Eyes

Board Regular
Joined
Dec 14, 2010
Messages
103
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have non-contiguous cells that I would like to look for a specific value "Security".
'B18','B28','B38','B48','B58','B68','B78','B88','B98','B108'

When they contain that value (and only if they meet that criteria), I would like to add the number values of the cells to the right of those qualified cells only...
C18,C28,C38,C48,C58,C68,C78,C88,C98,C108
I suspect I need to use some combination of SUMIF and INDIRECT however, I can't seem to find the proper syntax.
Any help would be appreciated.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Is "Security" likely to be found in any of the other rows? If not then it would be easier and more efficient to simply use SUMIF on the whole range B18:B108 and C18:C108 respectively.
 
Upvote 0
So I tried this
Excel Formula:
=SUMIF(B18:B108,"Security",C18:C108)
however, it returns a blank cell even though a few of those cells have number values.
The range in Col C is a mix of numbers and text.
How do I sum the specific cells in the Col C range?
 
Upvote 0
If it doesn't return a result then you don't have any valid numbers in that range where the rows meet the criteria.
So I tried this
Excel Formula:
=SUMIF(B18:B108,"Security",C18:C108)
however, it returns a blank cell even though a few of those cells have number values.
The range in Col C is a mix of numbers and text.
How do I sum the specific cells in the Col C range?
edit:- think our replies crossed, glad you got it working.
 
Upvote 0

Forum statistics

Threads
1,215,136
Messages
6,123,246
Members
449,093
Latest member
Vincent Khandagale

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