# SUMIFS Error returning 0

#### naucoin07

##### New Member
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)

 Item Start End Units A 1/02/2020 1/07/2020 B 1/08/2020 1/14/2020 C 1/02/2020 1/07/2020

Excel 2
 Item Invoice Date Units A 1/05/2020 10 B 1/09/2020 15 A 1/07/2020 20 C 1/03/2020 20

### 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
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.

#### naucoin07

##### New Member
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

Replies
33
Views
705
Replies
1
Views
132
Replies
0
Views
94
Replies
7
Views
201
Replies
2
Views
62

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.

### Which adblocker are you using?

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

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