Sumifs: Is not working with two criteria

Jonathan King

New Member
Joined
Dec 13, 2018
Messages
17
SUMIFS has given me a headache, since I can't get the formula below to work, though I'm probably just too close to the trees to see the issue. :eeek:

SUMIF works fine on TT and AH alone, but when both are used with SUMIFS, only zeros are returned.

What am I missing? Any help will be highly appreciated!

=IFERROR(SUMIFS(Data!I:I,B23,Data!T:T,Data!AH:AH,"=1"),0)

I - A column of text with department names (formatted as text)
B23 - one of the department names (formatted as text)
AH - A column of 1's and 0's (formatted as number)

Thanks!
 
='Jobs by Dept'!$B$17="Vertical" - False - there's the problem
=Data!I2="Vertical" - True
=LEN(Data!I2) - 9
=LEN('Jobs by Dept'!$B$17) - 8

With Vertical, it has a trailing space.

But in checking another problem child, horizontal, both LENs return 10. I was expecting to see an 11 with the B-value.

The B-values are all static text. Though in another report they come in via a formula, referencing a static list, from another sheet.

Is there a way to better input the values or does the value need to be trimmed?
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Though in another report they come in via a formula, referencing a static list, from another sheet.

Is this other report relevant to the current situation? Are they copied as pasted as values from it?

What does this return?

=TRIM('Jobs by Dept'!$B$17)="Vertical"
 
Upvote 0
Sorry for the delay, but sleep took over.

=TRIM('Jobs by Dept'!$B$17)="Vertical" is true.

It can't be trimmed within the sumif can it?

By resolving this issue, the other reports can be corrected.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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