# Help with Index / Match / SumIf

#### danielrussell2

##### New Member
Hello all,

I am trying to find a formula that will help me sum the totals from another sheet based on two separate criteria.

The first image is from a sheet named "DR LIST" and the second image is from a sheet named "Job Setup"

What I'm trying to do is have the total of "LH" (left hand) doors from the "Job Setup" sheet (in blue) show in the "DR List" sheet (in orange). But, this total will have to match two criteria: 1) Unit - in the example the unit is A1; 2) Door Number - lets say we are looking for door E1.

So, I need to sum the number of LH doors in blue that match the criteria of Unit Type A1 and Door Number E1 into cell C12 in orange. I'll need to search a big range in column D (blue) as all the doors for the building will be listed eventually - there will be more of Door Number E1 but in different unit types - so I only want to sum the ones for unit type A1 in cell C12 (orange).

I hope this makes sense, please let me know if I can clarify anything.

### Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

#### Marcílio_Lobão

##### Well-known Member
danielrussell2, Good afternoon.

Try to use:

Sheet DR List --> C12 --> FORMULA

C12 -->
=SUMIFS('Job Setup'!D70:D79, 'Job Setup'!A70:A79, 'DR List'!B10, 'Job Setup'!C70:C79, 'DR List'!B12)

Is that what you want?
I hope it helps.

#### James006

##### Well-known Member
Hi,

You could test following formula in cell C12 :

=SUMPRODUCT(('Job Setup'!\$C\$70:\$C\$79='DR LIST'!\$B12)*('Job Setup'!\$A\$70:\$A\$79='DR LIST'!\$B\$10)*('Job Setup'!D70:D79))

HTH

#### danielrussell2

##### New Member
@marcilio This worked perfectly! After changing the references I believe this will do exactly what I want it to! Thank you!

Last edited:

#### Marcílio_Lobão

##### Well-known Member
danielrussell2,

Thanks for the feedback.

Have a nice day!

................................................................
Marcílio Lobão
Belo Horizonte, MG - Brazil

Replies
0
Views
195
Replies
3
Views
1K
Replies
0
Views
198
Replies
0
Views
112
Replies
13
Views
574

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,893
Messages
5,834,273
Members
430,273
Latest member
Windrunner

### 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.

### Which adblocker are you using?

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

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