I need to insert an OR function in the middle of a countif..

dericm

New Member
Joined
Oct 2, 2015
Messages
2
Here is the function:
=COUNTIFS(Container!$E2:$E907,"CP15BHS1",Container!$H2:$H907,"_Inventory",Container!$P2:$P907,"C")

Currently, I am trying to get this to also count an additional text string here:

=COUNTIFS(Container!$E2:$E907,"CP15BHS1",Container!$H2:$H907,"_Inventory",Container!$P2:$P907,"C")

I would like it to count _Inventory and _RTI in the selected range..

I'm not very savvy in excel, but I would imagine there's a way to use an OR function within a countifs(), but I havent been able to find anything online yet..

Any help would be appreciated! :)) :)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
=COUNTIFS(Container!$E2:$E907,"CP15BHS1",Container!$H2:$H907,"_Inventory",Container!$P2:$P907,"C")+COUNTIFS(Container!$E2:$E907,"CP15BHS1",Container!$H2:$H907,"_RTI",Container!$P2:$P907,"C")

This has thus far been my solution, but I know there's a more condensed function
 
Upvote 0
You don't have to add them, try something like:


Excel 2010
A
1Name
2_Inventory
3_RTI
4X
5_RTI
6_Inventory
7_RTI
8Y
9_RTI
10Y
11Y
12_Inventory
13X
14_Inventory
15Z
16_Inventory
17Y
18_Inventory
19_RTI
20_RTI
21
2212
Sheet5
Cell Formulas
RangeFormula
A22=SUM(COUNTIFS($A$2:$A$20,{"_Inventory","_RTI"}))
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,747
Members
448,989
Latest member
mariah3

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