# Sumif for category and criteria

#### matty_lou82

##### New Member
Hi there,

I am looking to create a sumif (or sumifs) for the following data set, so that a sum is given for each name, HOWEVER with the caveat of the addioanl criteria of under a certain value. For example, the total sum of volume for Matt, but only for values less than 4.

Please can someone help, it would be really appreciated.

 Name Volume Matt 1 Matt Stu 5 Stu Chris 3 Chris Andy 4 Andy Carl 6 Carl Matt 7 Stu 8 Chris 3 Andy 4 Carl 5 Matt 6 Matt 8 Stu 2 Chris 3 Andy 6 Carl 7 Matt 8 Stu 3 Chris 4 Andy 5 Matt 6 Stu 8 Chris 4 Andy 5 Carl 6 Matt 8 Stu 2 Chris 3 Andy 5 Matt 3 Stu 5 Chris 2 Matt 8 Stu 6 Chris 2 Matt 1 Stu 7 TOTAL 179

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

### Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

#### Joe4

Assuming Name is in column A, volume is in column B, and the name "Matt" is in cell D2, put this formula in E2 and copy down for the other names:
Code:
``=SUMIFS(B:B,A:A,D2,B:B,"<4")``

#### matty_lou82

##### New Member
Thank you so much! Very helpful!

You are welcome.

Replies
7
Views
167
Replies
4
Views
70
Replies
3
Views
42
Replies
3
Views
518
Replies
0
Views
93

1,127,023
Messages
5,622,268
Members
415,888
Latest member
Ifeanyi

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