# Sumif with multiple criteria in same range

#### Tennisguuy

##### Well-known Member
I'm trying to sum a range of sales where the values I want to sum are in the same column and based on different criteria and I also need to based the argument on another column. For example in column A I have a list of sales and I want to sum the sales if the sales are greater than 0 but less than 5,000,000 and if the name in column B is equal to say John.

Column A Column B
500,000 John
1,000,000 Steve
15,000,000 John
3,000,000 John

In this example the answer would be 3,500,000

### Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try

=SUMIFS(A:A,A:A,">0",A:A,"<5000000",B:B,"John")

M.

Great, that worked thanks so much

You are welcome. Thanks for the feedback.

M.

Is it possible to add another range to the equation, I just realized in addition to the above I also need to sum the values in another column. I need to sum the value in column c based on if the sale are great than 0 but less than 5M and John the name in column b I also want to sum the values in column c.

Maybe...

=SUMIFS(C:C,A:A,">0",A:A,"<5000000",B:B,"John")

M.

Excellent that worked. Thank again so much

Replies
2
Views
151
Replies
3
Views
682
Replies
6
Views
281
Replies
5
Views
189
Replies
10
Views
1K

1,214,255
Messages
6,118,518
Members
448,830
Latest member
Drew Terp

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