CountIf method with two constraints

bsb2013

New Member
Joined
Jul 16, 2010
Messages
31
Given a list with three columns: A contains a persons name, B contains their job and C contains their salary, how would u count the number of people with Job "Accounting" that also make above 50,000?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
What version of Excel are you using? If it's Excel 2007 or higher then use the COUNTIFS function.
 
Upvote 0
Thanks that seems to be the right path, but I actually don't know how to compare strings in Excel. EX: Countif(B:B,="Accounting") doesn't seem to work...Sorry for being such a novice
 
Upvote 0
Given a list with three columns: A contains a persons name, B contains their job and C contains their salary, how would u count the number of people with Job "Accounting" that also make above 50,000?
Try one of these.

Use cells to hold the criteria:
  • E2 = accounting
  • F2 = 50000
For Excel versions 2007 and later:

=COUNTIFS(B2:B10,E2,C2:C10,">"&F2)

For ANY version of Excel:

=SUMPRODUCT(--(B2:B10=E2),--(C2:C10>F2))
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,763
Members
452,940
Latest member
rootytrip

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
Back
Top