Sumif with multiple criteria in same range

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
559
Office Version
  1. 2016
Platform
  1. Windows
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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,024
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Try

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

M.
 

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
559
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

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.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
17,024
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Maybe...

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

M.
 

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
559
Office Version
  1. 2016
Platform
  1. Windows
Excellent that worked. Thank again so much
 
Master Excel Bundle

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.

Forum statistics

Threads
1,164,282
Messages
5,836,400
Members
430,425
Latest member
xlsee

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
Top