Counting a text and numbers

DenniBrink

New Member
Joined
Jul 31, 2016
Messages
46
Hello everyone! I am challenged to write an Excel formula that will conditionally count a combination of text and number values. The best that I can do is to pearl string a long list of Countif formulas. For example:

Countif(E12:E32,"3") + Countif(E12:E32,"OT")

I wonder if there is a better way.

I believe the task is to have the IF statement list of Trues and Falses converted to Ones and Zeros and then SUM the total of Ones. I haven't figure out how to properly nest the IF and SUM functions. Can anyone help?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Maybe like this:
Excel Workbook
EFG
11
12AA6
13OT
143
156
16RE
17OT
183
19RE
203
21OT
22
Sheet
 
Upvote 0
Perhaps

Unknown
ABCDE
1AppleOT4
2Banana3
3OT
43
55
6OT
7cat
83
93 goats
10fish
Sheet1
Cell Formulas
RangeFormula
E1=SUMPRODUCT(COUNTIF(A1:A10,C1:C2))
 
Upvote 0
Works beautifully! Awesome to learn something new. Thank you for the gift of knowledge. All the best, Dennis :)
 
Upvote 0

Forum statistics

Threads
1,216,384
Messages
6,130,309
Members
449,571
Latest member
Jay Zyller

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