Need help with SUMIFs containing complex multiple criteria

drizzzle_

New Member
Joined
Aug 4, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi! Please see attached image. I need to create a formula that has a lot of both limitations and inclusions for a certain project.

For this example, I need to SUM the Duration of:
+ Only the BROWN units
{From these BROWN units:}
+ Only the ones with Q1 and Q2 in the Start column
+ AND ends with anything EXCEPT Q1

Hence, the sum of the duration should only be equal to 10. Is this possible with SUM/SUMIFS or any other formula?
 

Attachments

  • Screen Shot 2022-08-14 at 9.10.50 PM.png
    Screen Shot 2022-08-14 at 9.10.50 PM.png
    37.8 KB · Views: 10

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
@drizzzle_ As you have XL365 how about using filter?
Below has the formula using hard written values eg 'Brown' but you could use cell references to establish your filter vales if you wish.

MrXL_Aug.xlsm
ABCDEFG
1UnitStartEndDurationSum10
2BrownQ1Q110
3RedQ2Q310
4BrownQ2Q210
5BrownQ3Q410
Sheet3
Cell Formulas
RangeFormula
G1G1=SUM(FILTER(D2:D5,(A2:A5="Brown")*((B2:B5="Q1")+(B2:B5="Q2"))*(C2:C5<>"Q1")))

Hope that helps.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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