Sumifs based on multiple conditions

g3org

Board Regular
Joined
Jul 25, 2021
Messages
69
Office Version
  1. 365
Platform
  1. Windows
Hello everyone.
I do need a bit help with this formula:

=SUMIFS(Sheet1!A:J;'Freiburg (DBW5)'!C2;">="&'Freiburg (DBW5)'!A8;Sheet1!A:A;""<='Freiburg (DBW5)'!B8)
I want to sum column J from Sheet1 based on a cell from other sheet and between two date range. For any help i will be gratefull. Thank you.

Cortex_KM.xlsx
ABCDE
12022
2DinPana laFreiburg (DBW5) - Amazon Logistics (PLZ 79108)GeplanteZulässige
303.01.2209.01.22KW1#VALUE!
410.01.2216.01.22KW2#VALUE!
517.01.2223.01.22KW3#VALUE!
624.01.2230.01.22KW4#VALUE!
731.01.2206.02.22KW5#VALUE!
807.02.2213.02.22KW6#VALUE!
9KW7
10KW8
11KW9
12KW10
13KW11
14KW12
15KW13
16KW14
17KW15
Freiburg (DBW5)
Cell Formulas
RangeFormula
D3:D6D3=SUMIFS(Sheet1!B:J,'Freiburg (DBW5)'!C2,">="&'Freiburg (DBW5)'!A3,Sheet1!A:A,""<='Freiburg (DBW5)'!B3)
D7D7=SUMIFS(Sheet1!B:J,'Freiburg (DBW5)'!C2,">="&'Freiburg (DBW5)'!A7,Sheet1!A:A,""<='Freiburg (DBW5)'!B7)
D8D8=SUMIFS(Sheet1!A:J,'Freiburg (DBW5)'!C2,">="&'Freiburg (DBW5)'!A8,Sheet1!A:A,""<='Freiburg (DBW5)'!B8)
Named Ranges
NameRefers ToCells
Sheet1!_FilterDatabase=Sheet1!$A$1:$P$149780D3:D8


Sheet1 looks like this:
DatumStationDSP-ShortcodeZustellmitarbeiterRouteServicetypGeplante DauerAnmeldenAbmeldenGeplante Gesamtentfernung
03.01.22​
Messkirch (DBW8) - Amazon Logistics (PLZ 88605)ELARRescue6 Std.
03.01.22​
Messkirch (DBW8) - Amazon Logistics (PLZ 88605)ELARRescue6 Std.
03.01.22​
Messkirch (DBW8) - Amazon Logistics (PLZ 88605)ELARAlexandru MoraruCA_A1Standard Parcel9 Std.2022-01-03T09:16:14.922Z2022-01-03T17:39:10.296Z
131​
03.01.22​
Messkirch (DBW8) - Amazon Logistics (PLZ 88605)ELARAlexandru MitulescuCA_A2Standard Parcel9 Std.2022-01-03T09:11:34.849Z2022-01-03T17:38:09.226Z
127​
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
=SUMIFS(Sheet1!A:J;'Freiburg (DBW5)'!C2;">="&'Freiburg (DBW5)'!A8;Sheet1!A:A;""<='Freiburg (DBW5)'!B8)
You are quite close:
Excel Formula:
=IF('Freiburg (DBW5)'!C2>='Freiburg (DBW5)'!A8;SUMIFS(Sheet1!J:J;Sheet1!A:A;"<="&'Freiburg (DBW5)'!B8))
 
Upvote 0
How about
Excel Formula:
=SUMIFS(Sheet1!J:J,Sheet1!A:A,C$2,Sheet1!A:A,">="&A3,Sheet1!A:A,"<="&B3)
 
Upvote 0
Solution
Thanks to you guys, my project is working. Many thanks 💪
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,206
Members
453,022
Latest member
RobertV1609

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