# Having difficulty with SUMIF and SUMIFS

#### MrCrimmy

##### New Member
Hello everyone

I need some help with a database I'm trying to build in excel. Currently I have a list of all processes carried out in my office for my team. There are 4 main processes and each process has a subset of activities relating to it, for example process "BAU" has several activities such as meetings and training. I am calculating the man hours spent on each activity using the following SUMIF function (Each worksheet is divided into weeks):

=SUMIF('Sep 01'!\$C\$4:\$C\$120,C6,'Sep 01'!\$F\$4:\$F\$120)+SUMIF('Sep 08'!\$C\$4:\$C\$120,C6,'Sep 08'!\$F\$4:F\$120)+SUMIF('Sep 15'!\$C\$4:\$C\$120,C6,'Sep 15'!\$F\$4:F\$120)

c = activity column, F = man hours column

My problem is that some processes have the same activities, for example BAU may have meetings but the product maintenance process may also have a meetings activity. Is there anyway I can use a SUMIF or SUMIFS function to add up the man hours depening on both variables so that BAU meetings will be counted seperately from process maintenance meetings.

If anyone could help me out that would be greatly appreciated.

thanks

Bryan

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### Snakehips

##### Well-known Member
Bryan,

Welcome to MrExcel.

If I am understanding correctly then SUMIFS should do it.

Eg...

Hope that helps.

Last edited:

#### MrCrimmy

##### New Member
Thank you so very much for your help! I was actually quite close myself, just needed a boost!!

Have a great weekend!

Regards

Bryan

Replies
8
Views
56
Replies
3
Views
126
Replies
12
Views
131
Replies
4
Views
92
Replies
2
Views
98