SUMIFS formula not working as expected

ac7

New Member
Joined
Jul 26, 2023
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hello -

I am struggling with a formula that I'm hoping someone can help with. Here is my current data (my apologies for not being able to use the XL2BB addin).

A​
B​
C​
D​
E​
F​
G​
H​
I​
1Missing PromisedToday or Prior1 to 30 Days31 to 60 DaysVendorItemQuantityPromisedExpected
2
240​
0​
120​
160​
Vendor12345408/1/2023
3Vendor12345408/1/2023
4Vendor12345408/11/20238/11/2023
5Vendor12345408/31/2023
6Vendor12345409/1/2023
7Vendor12345809/1/2023

Formula in A2:
Excel Formula:
=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,""))

Formula in B2:
Excel Formula:
=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,"<>",$I:$I,"<="&TODAY()))

Formula in C2:
Excel Formula:
=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,"<>",$I:$I,">"&TODAY(),$I:$I,"<="&TODAY()+30))

Formula in D2:
Excel Formula:
=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,"<>",$I:$I,">"&TODAY()+30,$I:$I,"<="&TODAY()+60))

The SUMIFS formula in A2 is working correctly. It sums only quantities with a missing promised date. The formulas in B2 through D2 are not working as I had expected. I only want these to sum for the listed date ranges if there is a promised date. If there is no promised date, then it should not sum. Here's what I'm expecting for results:

1690548210133.png


Any help would be greatly appreciated.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
*ac7,

Using the formulas you have listed, I am getting your expected results.

BigDawg15
 
Upvote 0
I just tried it again and am still getting these results:

1690557390341.png


This is what I should be getting:

1690548210133.png
 
Upvote 0
The formulas are correct.

Check that the cells do not have blank spaces, that is, the cells in column H must be empty.

Delete cells H2, H3, H5, H6 and H7.

Also check that you have no data after row 7.
Dante Amor
ABCDEFGHI
1Missing PromisedToday or Prior1 to 30 Days31 to 60 DaysVendorItemQuantityPromisedExpected
22400400Vendor123454001-ago
3Vendor123454001-ago
4Vendor123454011-ago11-ago
5Vendor123454031-ago
6Vendor123454001-sep
7Vendor123458001-sep
Hoja1
Cell Formulas
RangeFormula
A2A2=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,""))
B2B2=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,"<>",$I:$I,"<="&TODAY()))
C2C2=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,"<>",$I:$I,">"&TODAY(),$I:$I,"<="&TODAY()+30))
D2D2=IF($F2=$F1,"",SUMIFS($G:$G,$F:$F,$F2,$H:$H,"<>",$I:$I,">"&TODAY()+30,$I:$I,"<="&TODAY()+60))


--------------
I hope to hear from you soon.
Respectfully
Dante Amor
--------------​
 
Upvote 1
Solution
Ah, ok. Thank you for the reply. Is there a way that I can automatically clear these out or adjust the formula to take this situation into account? I have a lot of lines that I'm hoping to not have to manually clear.
 
Upvote 0
But you should have your sheet clean of strange things. Otherwise you will have to adapt these formulas and any other formulas you use or any other situations that use that data.

I recommend you perform an autofilter on each of those columns and check what is not Empty and is not a number, then you delete those cells.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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