SUMIF Formula more than one criteria

markster

Well-known Member
Joined
May 23, 2002
Messages
579
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Morning folks.
I know how to do a basic SUMIF formula based on a single criteria but I'm struggling to get it to work on more than one criteria.

I have a basic table and need to summarize number of teaching hours per subject per week

Book1
ABCDEF
4Week ending1-Oct-218-Oct-2115-Oct-2122-Oct-2129-Oct-21
5Week Number12345
6
7XXXX Course Scheduled Teaching Hours
8Business5.010.53.0
9Finance
10Accounting
11
Delivery Req. by Programme


The source data is as follows:

Book1
ABCDEFGHIJ
3AreaDelivery DatesWeek End DateWeekScheduled DaySizeScheduled StartScheduled EndDuration2Duration
4Business27/9/20211-Oct-211Monday914:0015:001.01:00
5Accounting27/9/20211-Oct-211Monday911:0013:002.02:00
6Finance27/9/20211-Oct-211Monday7311:0012:001.01:00
7Business28/9/20211-Oct-211Tuesday3712:3014:302.02:00
8Accounting28/9/20211-Oct-211Tuesday3612:3014:302.02:00
9Finance28/9/20211-Oct-211Tuesday3311:0013:002.02:00
10Business28/9/20211-Oct-211Tuesday3315:0017:002.02:00
11Accounting28/9/20211-Oct-211Tuesday1915:0017:002.02:00
12Finance28/9/20211-Oct-211Tuesday1912:0013:001.01:00
13Business10/4/20218-Oct-212Monday529:0011:302.52:30
14Accounting10/4/20218-Oct-212Monday5213:3015:302.02:00
15Finance10/5/20218-Oct-212Tuesday209:3011:302.02:00
16Business10/5/20218-Oct-212Tuesday1913:0014:001.01:00
17Accounting10/5/20218-Oct-212Tuesday1914:0016:002.02:00
18Finance10/5/20218-Oct-212Tuesday3316:0018:002.02:00
19Business10/7/20218-Oct-212Thursday010:0017:007.07:00
20Accounting10/8/20218-Oct-212Friday1810:0013:003.03:00
21Finance10/8/20218-Oct-212Friday1710:0013:003.03:00
22Business10/11/202115-Oct-213Monday3414:0016:002.02:00
23Accounting10/11/202115-Oct-213Monday1816:0017:001.01:00
24Finance10/12/202115-Oct-213Tuesday209:3012:303.03:00
25Business13/10/202115-Oct-213Wednesday3014:0015:001.01:00
26Accounting14/10/202115-Oct-213Thursday010:0017:007.07:00
27Finance18/10/202122-Oct-214Monday09:0017:008.08:00
Semester 1 Timetabling
Cell Formulas
RangeFormula
D4:D27D4=VLOOKUP(C4,'[NMAH Resource Planning v0.4.xlsx]Week Numbers'!F:G,2,0)


So you will see that my SUMIF formula in the first table will need to look at column A, D & sum the duration in column I in the second table to calculate number of hours scheduled teaching hours for each subject each week I have manually input the totals in the first table to illustrate what I need. Would appreciate any help. Thanks. M
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I am not falling into your data . I suggest to try Sumifs formula for more than 1 criteria . The rest you will understanding accordinglyt.
 
Upvote 0
Yay - did it thanks.

=SUMIFS('Semester 1 Timetabling '!$I4:$I27,'Semester 1 Timetabling '!$A4:$A27,'Delivery Req. by Programme'!$A8,'Semester 1 Timetabling '!$D4:$D27,'Delivery Req. by Programme'!B5)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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