SUMIFS Error returning 0

naucoin07

New Member
Joined
Feb 17, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, I am trying to use SUMIFs with multiple criteria and a date range to return the sum using two excel sheets. I keep getting zero as my result... I made the fake charts below for help
Excel One - looking up units from excel two

=IFSUMS([Excel 2]$C$2:$C$5,[Excel 2]$A2:$A5,[Excel 1]$A2,[Excel 2]$B2:$B5,">="&[Excel 1]B$2,[Excel 2]$B2:$B5,"<="&[Excel 1]C$2)

ItemStartEndUnits
A1/02/20201/07/2020
B1/08/20201/14/2020
C1/02/20201/07/2020

Excel 2
ItemInvoice DateUnits
A1/05/202010
B1/09/202015
A1/07/202020
C1/03/202020
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
It looks like you have a few $ symbols in the wrong places which would affect when you try to fill down, but other than that I can see no reason why it wouldn't work if your data is valid.
Excel Formula:
=SUMIFS([Excel 2]$C$2:$C$5,[Excel 2]$A$2:$A$5,[Excel 1]$A2,[Excel 2]$B$2:$B$5,">="&[Excel 1]$B2,[Excel 2]$B$2:$B$5,"<="&[Excel 1]$C2)

Noting that your data is aligned to the left side of the cells, that can be an indication that the numbers and dates are in text format which could be a problem for the formula. It is possible that your data is fine and that this is being caused by the way that you have copied your sample to the forum.
 
Upvote 0
Solution
It looks like you have a few $ symbols in the wrong places which would affect when you try to fill down, but other than that I can see no reason why it wouldn't work if your data is valid.
Excel Formula:
=SUMIFS([Excel 2]$C$2:$C$5,[Excel 2]$A$2:$A$5,[Excel 1]$A2,[Excel 2]$B$2:$B$5,">="&[Excel 1]$B2,[Excel 2]$B$2:$B$5,"<="&[Excel 1]$C2)

Noting that your data is aligned to the left side of the cells, that can be an indication that the numbers and dates are in text format which could be a problem for the formula. It is possible that your data is fine and that this is being caused by the way that you have copied your sample to the forum.
Turns out I had the date typed out WRONG.... 20220 vs 2020 and my eyes did not catch it...THANK YOU
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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