SumIf for a range not working

magnethero

New Member
Joined
Apr 25, 2018
Messages
6
Should be simple but I can't make it work.

I have a tab with a large amount of data for 100 departments (all data relative on individual lines)

In another tab I want to create a summary of several departments for a given column.

Formula as it is now looks like:

=SUMIF('Tab1'!A:A,'Tab2'!A1:A20,'Tab1'!N:N)

Why would this not pick up the 20 values of column N with respect to their appearance in column A? How do I make this work?

Thanks!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
AWESOME!!! Got it to work! But I don't really understand why turning it to an array solved it with the additional SUM function. Could you explain? Maybe there is also a thread that better explains how an array functions?
 
Upvote 0
sumif can't handle multiple values to add (your second criteria). Array formula is basically breaking out the sumif into 20 different parts in this case. essentially its doing Sum(SUMIF('Tab1'!A:A,'Tab2'!A1,'Tab1'!N:N), SUMIF('Tab1'!A:A,'Tab2'!A2,'Tab1'!N:N), SUMIF('Tab1'!A:A,'Tab2'!A3,'Tab1'!N:N), ...... SUMIF('Tab1'!A:A,'Tab2'!A20,'Tab1'!N:N))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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