Using CountIf or similar with 2 conditions

Nicky C

New Member
Joined
Feb 14, 2008
Messages
20
Hi, I'm sorry to have to post a fairly basic question, unfortunately I need some help and I don't have time to search the forums.
On the same worksheet, I need to insert a calculation which works out, if, the total of rows which have E column containing the text 'EH' AND have I column containing the text 'Outstanding' - any help much appreciated - thank you
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try:

=SUMPRODUCT(--(ISNUMBER(SEARCH("EH",E1:E100))),--(ISNUMBER(SEARCH("Outstanding",I1:I100))))

or if EH and Outstanding are the actual cell values:

Excel 2003 or older:
=SUMPRODUCT(--(E1:E100="EH"),--(I1:I100="Oustanding"))

Excel 2007 or newer:
=COUNTIFS(E:E,"EH",I:I,"Outstanding")
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,147
Members
452,891
Latest member
JUSTOUTOFMYREACH

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