SUMIFS Statement

ssmith3156

New Member
Joined
Apr 11, 2023
Messages
15
Office Version
  1. 365
Platform
  1. Windows
I need a formula that is using the data from the table named "Costs". I need to sum the Hours column IF the Concatenate column has any of these values...162FOL, 392FAL, 392FGL, 392FFL, 392PFL, or 452FGL AND the date is before 6/1/2023. This is what I currently have and it is returning a result of 0 for my sample data, but it should be a sum of 3:

=SUMIFS(Costs[Hours],Costs[Concatenate],"162FOL",Costs[Concatenate],"392FAL",Costs[Concatenate],"392FGL",Costs[Concatenate],"392FFL",Costs[Concatenate],"392PPFL",Costs[Concatenate],"452FGL",Costs[Date],"<2023,6,1")

Am I using the wrong function, or does it just need a modification?

1687280885772.png
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You are doing an AND criteria, when it should be OR like
Excel Formula:
=SUM(SUMIFS(Costs[Hours],Costs[Concatenate],{"162FOL","392FAL","392FGL","392FFL","392PPFL","452FGL"},Costs[Date],"<"&DATE(2023,6,1)))
 
Upvote 1
Solution
consider SumProduct
Sumifs.xlsm
GHIJKLM
11-Jun-23
2162FOL5-Jun-231162FO
3382FAO29-May-232392FA
4452FGL1-May-233392FG
53392FF
6392PF
7452FG
8
6c
Cell Formulas
RangeFormula
L5L5=SUMPRODUCT(--(ISNUMBER(MATCH(G2:G4,M2:M7,0))),--(H2:H4="L"),--(I2:I4<L1),J2:J4)
 
Upvote 0
You are doing an AND criteria, when it should be OR like
Excel Formula:
=SUM(SUMIFS(Costs[Hours],Costs[Concatenate],{"162FOL","392FAL","392FGL","392FFL","392PPFL","452FGL"},Costs[Date],"<"&DATE(2023,6,1)))
This worked! Thank you!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,725
Messages
6,180,573
Members
452,988
Latest member
wcself81

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