COUNTIFS WITH NUMERIC CONSTRAINT

dewotorf

New Member
Joined
Feb 25, 2021
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I am looking for a way to count a specific number in a column provided the corresponding cell in another column is a number i.e.(not text). Consider the table below as an example;

I want to count only 70% marks in column B provided the corresponding value in column C is a number. In this case the answer will be 2.


1614302068924.png
 

Attachments

  • countifs.PNG
    countifs.PNG
    5.6 KB · Views: 2
1 problem though is that the code counts blank cells as zero
So, are you saying you may use 0 as the Count criteria?

Is this what you mean, added another test for Blanks:

Book3.xlsx
ABCDEF
1CandidateTest 1Test 2Criteria0
2AB17n/aCount0
3AB23n/a
4AB33n/a
5AB43n/a
6AB537
7AB637
8AB737
9AB8ab7
10AB9ab3
11AB1023
12AB1117
13AB1237
14AB131DO
15AB14ab3
16AB15ab7
17AB1613
18AB17ab7
19AB18ab7
20AB1937
21AB20ab3
22AB21abDO
23AB22ab1
24AB23ab3
25AB24ab1
26AB25ab2
27AB2627
28AB2712
29AB2813
30AB291DO
31AB3033
32AB3113
33AB3233
34AB33ab1
35AB3417
36AB3533
37AB3611
38AB377
39AB381
40AB39DODO
41AB4017
42AB4137
43AB4237
44AB4337
45AB4433
46AB45ab7
47AB463n/a
48AB4737
49AB48ab7
50AB4973
51AB503n/a
52AB511n/a
53AB527n/a
54AB533n/a
55AB543n/a
56AB557n/a
57AB563n/a
58AB573n/a
590
60
Sheet798
Cell Formulas
RangeFormula
F2F2=SUMPRODUCT((B2:B60=F1)*(B2:B60<>"")*(ISNUMBER(C2:C60)))

Yes please
 
Upvote 0

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Did you try the formula in Post #10?
 
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,562
Members
449,318
Latest member
Son Raphon

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