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
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
12,448
Office Version
  1. 365
Platform
  1. Windows
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.
 
Solution

naucoin07

New Member
Joined
Feb 17, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
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
 

Watch MrExcel Video

Forum statistics

Threads
1,127,529
Messages
5,625,341
Members
416,096
Latest member
forevans

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
Top