SUMIF with OR

RJB78

Board Regular
Joined
Aug 8, 2016
Messages
69
Office Version
  1. 365
Hello -

I am trying to create a formula that will sum numbers from column I34:I5000 as long as B34:B5000 doesn't have the words "Unassociated" or "Unmanaged"

I have =SUMIF(B34:B5000,OR("<>Unassociated","<>Unmanaged"),I34:I5000) now, but it returns 0

Thank you for your help
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
SUMIFS allows for multiple conditions. So try:
Code:
=SUMIFS(B34:B5000,I34:I5000,"<>Unassociated",I34:I5000,"<>Unmanaged")
See: https://www.techonthenet.com/excel/formulas/sumif.php

If using an old version of Excel that does not have SUMIFS, use:
Code:
=SUMPRODUCT(--(B34:B5000),--(I34:I5000<>"Unassociated"),--(I34:I5000<>"Unmanaged"))
 
Last edited:
Upvote 0
It says I entered to many arguments.

=SUMIF(range,criteria,[sum_range])
 
Upvote 0
SUMIFS, not SUMIF. They are different functions with different structures.
What version of Excel are you using? I believe SUMIFS was introduced with Excel 2007.
If you have an older version of Excel, then use the SUMPRODUCT solution I suggested instead.
 
Upvote 0
Thank you Joe. I am using the 2016 version. It returned a 0 for me again using the formula you gave above
 
Upvote 0
Are the values in column B formatted as numbers or text?
An easy way to tell is like this:
=ISNUMBER(B34)
If it returns False, then B34 is not a number, so summing it will not work until you convert it to a number.

Also, regarding your entries in column I, are the cells equal to EXACTLY "Unassociated" or "Unmanaged", or might there be a bunch of words in a single cell and you are just looking for the existence of these words within that string?
 
Upvote 0
Ah! We had the sum range and criteria range swapped. The criteria is in column B and the numbers are in column I. I made the necessary adjustments and it worked. Thank you
 
Upvote 0

Forum statistics

Threads
1,223,914
Messages
6,175,351
Members
452,638
Latest member
Oluwabukunmi

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