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: 9

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
@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,216,753
Messages
6,132,514
Members
449,731
Latest member
dasda34

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