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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
@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,224,825
Messages
6,181,190
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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