SUMIFS formula by date range with multiple conditions

Parebody

New Member
Joined
Jan 4, 2018
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
Looking for some assistance. I want to update my formula to extract data between the date range in cell B12 & B13, instead of just data from the start date in B12. How would I update the formula to recognize the date range?


=SUM(IF(('[Production Recap 2020.xlsm]Data'!$A$2:$A$9998=$B$12)*('[Production Recap 2020.xlsm]Data'!$B$2:$B$9998=$B$14)*('[Production Recap 2020.xlsm]Data'!$C$2:$C$9998=A16),'[Production Recap 2020.xlsm]Data'!$F$2:$F$9998))

1603380627422.png
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Sample data posted with XL2BB would have been very helpful.
Click on the icon below the f(x) and paste to a clean sheet.
Review the logic and the formula and then adapt to your data.

T202010b.xlsm
ABCDEF
1Start20-10-203000
2End21-10-20
3
4B_ColC_ColF_Col
5CriteriaA123
6Dates
701-10-20A1231200
820-10-20A1231400
920-10-20B 1231500
1021-10-20A1231600
1131-10-20A1231700
12
3b
Cell Formulas
RangeFormula
F1F1=SUMPRODUCT(--(A7:A11>=B1),--(A7:A11<=B2),--(B7:B11=B5),--(C7:C11=C5),F7:F11)
 
Upvote 0
I didn't include the Sumifs; see below.

T202010b.xlsm
ABCDEF
1Start20-10-203000
2End21-10-203000
3
4B_ColC_ColF_Col
5CriteriaA123
6Dates
701-10-20A1231200
820-10-20A1231400
920-10-20B 1231500
1021-10-20A1231600
1131-10-20A1231700
12
3b
Cell Formulas
RangeFormula
F1F1=SUMPRODUCT(--(A7:A11>=B1),--(A7:A11<=B2),--(B7:B11=B5),--(C7:C11=C5),F7:F11)
F2F2=SUMIFS(F7:F11,A7:A11,">="&B1,A7:A11,"<="&B2,B7:B11,B5,C7:C11,C5)
 
Upvote 0
Solution
Mr. Patton, that worked perfectly. Thank you very much for your help!
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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