Multiple SUMIFS criteria range with multiple criterias

Sinvictus

New Member
Joined
Mar 21, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to sum up all the related allocated hours for the month, based on the project and person allocated.
In "Resources Mth" sheet is where all the information of the personnel's allocated project, duration and allocation percentage etc will reside. Here's the mini sheet:

Resource Tracking.xlsx
ABCDEFGHIJKLMNOPQRS
3NameProjectStartEndAllocationHoursStatus345678910111212
4CYTest Project 121-Mar30-Nov50%732Initiate368488888492888488   
5CYTest Project 21-Apr22-Dec10%152Initiate 171818171818171813  
6JJTest Project 31-Apr10-Oct50%548Initiate 84888884928824    
7WYTest Project 121-Mar30-Nov20%293Initiate143435353437353435   
8CYTest Project 31-Apr10-Oct10%110Initiate 1718181718185    
Resources Mth
Cell Formulas
RangeFormula
H4:S8H4=IFERROR($E4*8*(IF(MONTH($C4)=MONTH(H$2),NETWORKDAYS.INTL($C4,EOMONTH(H$2,0),1),IF(MONTH($D4)=MONTH(H$2),NETWORKDAYS.INTL(H$2,$D4),IF(OR($C4>H$2,$D4<H$2),"",NETWORKDAYS.INTL(H$2,EOMONTH(H$2,0)))))),"")
F4:F8F4=SUM(Table3[@[3]:[2]])
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H4:S8Expression=AND($D4>=H$2,$C4<I$2)textNO
Cells with Data Validation
CellAllowCriteria
G4:G8List=Status


I would like to show the total allocated hours for the month in another sheet named "Check", starting from cell B5 onwards. Cell B1:B3 are user inputs:
Resource Tracking.xlsx
AB
1Start21-Mar
2End30-Nov
3PersonnelCY
4
5Mar 2022
6Apr 2022
7May 2022
8Jun 2022
9Jul 2022
10Aug 2022
11Sep 2022
12Oct 2022
Check
Cell Formulas
RangeFormula
A5:A12A5=EDATE(EOMONTH($B$1,-1)+1,SEQUENCE(DATEDIF($B$1,$B$2,"M"),1,0))
Dynamic array formulas.


Hope to get pointed in the right direction for this!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Maybe this, convert your Resources Mth to a Table to keep formulas dynamic, Project name added as a User input criteria.

D & E Data Validation columns can be hidden or placed on their own tab;

Multiple SUMIFS criteria range_Sinvictus.xlsx
ABCDE
1Start21/03/2022PersonelProject
2End30/11/2022CYTest Project 1
3PersonnelCYJJTest Project 2
4ProjectTest Project 1WYTest Project 3
5
61/03/2022732
7Apr 20220
8May 20220
9Jun 20220
10Jul 20220
11Aug 20220
12Sep 20220
13Oct 20220
Check
Cell Formulas
RangeFormula
D2:D4D2=UNIQUE(Table1[Name])
E2:E4E2=UNIQUE(Table1[Project])
A6:A13A6=EDATE(EOMONTH($B$1,-1)+1,SEQUENCE(DATEDIF($B$1,$B$2,"M"),1,0))
B6:B13B6=SUMIFS(Table1[Hours],Table1[Start],">="&Check!A6,Table1[Start],"<="&EOMONTH(Check!A6,0),Table1[Name],Check!$B$3,Table1[Project],Check!$B$4)
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
B3List=Personel
B4List=Projects


Personel Named range fx
Excel Formula:
=Check!$D$2#

Projects Named range fx
Excel Formula:
=Check!$E$2#
 
Upvote 0

Forum statistics

Threads
1,215,024
Messages
6,122,729
Members
449,093
Latest member
Mnur

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