SumIfs with Multiple Criteria Help

1845Bear

New Member
Joined
Apr 26, 2018
Messages
3
I've been trying to figure this out and have hit a road block. I have a table that contains Order#'s that are similar. I need to SUM Ext#DSP when the Order#'s Match and the Ship Date is within a Term Start & End Date to produce another report. Here's what I got so far, but I know its not what it needs to be.

The idea is to not SUM line items for Order #'s that haven't Shipped.

=SUMIFS(Table3[Ext'# DSP],Match(Table3[Order '#],Table3[Order '#],0),Table3[Ship Date],">=" & A4,Table3[Ship Date],"<=" & A5,)

[TABLE="width: 1265"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Entry Date[/TD]
[TD]Ship Date[/TD]
[TD]Order #[/TD]
[TD]Job Name[/TD]
[TD]Salesman #[/TD]
[TD]Distributor PO Number[/TD]
[TD]Ext# DSP[/TD]
[TD]Ext# Comm#[/TD]
[TD]Comm# %[/TD]
[TD]ImportMonth[/TD]
[/TR]
[TR]
[TD]Term Date Start[/TD]
[TD]6/1/2016[/TD]
[TD][/TD]
[TD]11/2/2016[/TD]
[TD]11/8/2016[/TD]
[TD] 10869877-TEC[/TD]
[TD]Mio Nonno[/TD]
[TD]524[/TD]
[TD]S005930120[/TD]
[TD]$1,172.50[/TD]
[TD]$117.25[/TD]
[TD]$0.10[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD]Term Date End[/TD]
[TD]11/30/2016[/TD]
[TD][/TD]
[TD]11/2/2016[/TD]
[TD]No Vale[/TD]
[TD] 10869877-TEC[/TD]
[TD]Mio Nonno[/TD]
[TD]524[/TD]
[TD]S005930120[/TD]
[TD]$6.50[/TD]
[TD]$0.65[/TD]
[TD]$0.10[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/2/2016[/TD]
[TD]11/9/2016[/TD]
[TD] 10869877-TEC[/TD]
[TD]Mio Nonno[/TD]
[TD]524[/TD]
[TD]S005930120[/TD]
[TD]$108.50[/TD]
[TD]$10.85[/TD]
[TD]$0.10[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/2/2016[/TD]
[TD]11/8/2016[/TD]
[TD] 10869877-TEC[/TD]
[TD]Mio Nonno[/TD]
[TD]524[/TD]
[TD]S005930120[/TD]
[TD]$31.02[/TD]
[TD]$3.10[/TD]
[TD]$0.10[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016[/TD]
[TD]1/16/2017[/TD]
[TD] 10880515-TEC[/TD]
[TD]KPMG - Atlanta[/TD]
[TD]524[/TD]
[TD]216173PON1151978[/TD]
[TD]$378.00[/TD]
[TD]$37.80[/TD]
[TD]$0.10[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016[/TD]
[TD]1/16/2017[/TD]
[TD] 10880515-TEC[/TD]
[TD]KPMG - Atlanta[/TD]
[TD]524[/TD]
[TD]216173PON1151978[/TD]
[TD]$33.10[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016[/TD]
[TD]No Value[/TD]
[TD] 10880515-TEC[/TD]
[TD]KPMG - Atlanta[/TD]
[TD]524[/TD]
[TD]216173PON1151978[/TD]
[TD]$10.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016[/TD]
[TD]1/16/2017[/TD]
[TD] 10880515-TEC[/TD]
[TD]KPMG - Atlanta[/TD]
[TD]524[/TD]
[TD]216173PON1151978[/TD]
[TD]$1,485.00[/TD]
[TD]$148.50[/TD]
[TD]$0.10[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016[/TD]
[TD]1/17/2017[/TD]
[TD] 10880515-TEC[/TD]
[TD]KPMG - Atlanta[/TD]
[TD]524[/TD]
[TD]216173PON1151978[/TD]
[TD]$5.10[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016[/TD]
[TD]1/16/2017[/TD]
[TD] 10880515-TEC[/TD]
[TD]KPMG - Atlanta[/TD]
[TD]524[/TD]
[TD]216173PON1151978[/TD]
[TD]$100.00[/TD]
[TD]$0.00[/TD]
[TD]$0.00[/TD]
[TD]01-Nov-16[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 8"]SUMIFS(Table3[Ext'# DSP],Match(Table3[Order '#],Table3[Order '#],0),Table3[Ship Date],">=" & A4,Table3[Ship Date],"<=" & A5,)[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Order#[/TD]
[TD]Ext#DSP[/TD]
[TD]Job Name[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] 10880515-TEC[/TD]
[TD] $ 2,010.20[/TD]
[TD]KPMG - Atlanta[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD] 10869877-TEC[/TD]
[TD] $ 1,311.52[/TD]
[TD]Mio Nonno[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

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.
Quick Addition, I have figured that I need to first get a Unique List for Order#'s that exist within the Date Range. I've come up with the below formula, but I can only get one value to populate:

=IFERROR(INDEX(Table3[Order '#],MATCH(0,COUNTIF($O$5:O5,IF(($B$5>=Table3[Ship Date])*($B$4<=Table3[Ship Date]),Table3[Order '#],$O$5)),0)),"")

Once this list populates, then it should be a matter of suming the EXt# DSP column where Ship Date has values within the range.

Any thoughts as to why I can't get the list to fully populate as well?

[TABLE="width: 1721"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Entry Date
[/TD]
[TD]Ship Date
[/TD]
[TD]Order #
[/TD]
[TD]Job Name
[/TD]
[TD]Salesman #
[/TD]
[TD]Distributor PO Number
[/TD]
[TD]Ext# DSP
[/TD]
[TD]Ext# Comm#
[/TD]
[TD]Comm# %
[/TD]
[TD]ImportMonth
[/TD]
[TD][/TD]
[TD]Order#
[/TD]
[TD]Ext#DSP
[/TD]
[TD]Job Name
[/TD]
[/TR]
[TR]
[TD]Term Date Start
[/TD]
[TD]6/1/2016
[/TD]
[TD][/TD]
[TD]11/2/2016
[/TD]
[TD]11/8/2016
[/TD]
[TD] 10869877-TEC
[/TD]
[TD]Mio Nonno
[/TD]
[TD]524
[/TD]
[TD]S005930120
[/TD]
[TD]$1,172.50
[/TD]
[TD]$117.25
[/TD]
[TD]$0.10
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD] 10869877-TEC
[/TD]
[TD] Need Formula
[/TD]
[TD]Vlookup Formula
[/TD]
[/TR]
[TR]
[TD]Term Date End
[/TD]
[TD]1/17/2017
[/TD]
[TD][/TD]
[TD]11/2/2016
[/TD]
[TD]
[/TD]
[TD] 10869877-TEC
[/TD]
[TD]Mio Nonno
[/TD]
[TD]524
[/TD]
[TD]S005930120
[/TD]
[TD]$6.50
[/TD]
[TD]$0.65
[/TD]
[TD]$0.10
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD] $ -
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/2/2016
[/TD]
[TD]11/9/2016
[/TD]
[TD] 10869877-TEC
[/TD]
[TD]Mio Nonno
[/TD]
[TD]524
[/TD]
[TD]S005930120
[/TD]
[TD]$108.50
[/TD]
[TD]$10.85
[/TD]
[TD]$0.10
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/2/2016
[/TD]
[TD]11/8/2016
[/TD]
[TD] 10869877-TEC
[/TD]
[TD]Mio Nonno
[/TD]
[TD]524
[/TD]
[TD]S005930120
[/TD]
[TD]$31.02
[/TD]
[TD]$3.10
[/TD]
[TD]$0.10
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016
[/TD]
[TD]1/16/2017
[/TD]
[TD] 10880515-TEC
[/TD]
[TD]KPMG - Atlanta
[/TD]
[TD]524
[/TD]
[TD]216173PON1151978
[/TD]
[TD]$378.00
[/TD]
[TD]$37.80
[/TD]
[TD]$0.10
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016
[/TD]
[TD]1/16/2017
[/TD]
[TD] 10880515-TEC
[/TD]
[TD]KPMG - Atlanta
[/TD]
[TD]524
[/TD]
[TD]216173PON1151978
[/TD]
[TD]$33.10
[/TD]
[TD]$0.00
[/TD]
[TD]$0.00
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016
[/TD]
[TD]
[/TD]
[TD] 10880515-TEC
[/TD]
[TD]KPMG - Atlanta
[/TD]
[TD]524
[/TD]
[TD]216173PON1151978
[/TD]
[TD]$10.00
[/TD]
[TD]$0.00
[/TD]
[TD]$0.00
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016
[/TD]
[TD]1/16/2017
[/TD]
[TD] 10880515-TEC
[/TD]
[TD]KPMG - Atlanta
[/TD]
[TD]524
[/TD]
[TD]216173PON1151978
[/TD]
[TD]$1,485.00
[/TD]
[TD]$148.50
[/TD]
[TD]$0.10
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016
[/TD]
[TD]1/17/2017
[/TD]
[TD] 10880515-TEC
[/TD]
[TD]KPMG - Atlanta
[/TD]
[TD]524
[/TD]
[TD]216173PON1151978
[/TD]
[TD]$5.10
[/TD]
[TD]$0.00
[/TD]
[TD]$0.00
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]11/14/2016
[/TD]
[TD]1/16/2017
[/TD]
[TD] 10880515-TEC
[/TD]
[TD]KPMG - Atlanta
[/TD]
[TD]524
[/TD]
[TD]216173PON1151978
[/TD]
[TD]$100.00
[/TD]
[TD]$0.00
[/TD]
[TD]$0.00
[/TD]
[TD]01-Nov-16
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="colspan: 8"]SUMIFS(Table3[Ext'# DSP],Match(Table3[Order '#],Table3[Order '#],0),Table3[Ship Date],">=" & A4,Table3[Ship Date],"<=" & A5,)
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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