count without countif

methody

Well-known Member
Joined
Jun 17, 2002
Messages
857
I have a range of cells with numbers them 1,1,1,2,3,1,3,3,1,1,1,

Its a long story but is there a way of counting the number of 3's without using countif - preferably with some way using simple sum formulas.

I'm am using this for a 'solver' problem and solver doesn't like countif.

thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
you can use an array formula with sum and if. =sum(if(Range=3,1,0)) and ctrl+shift+enter

Hi
thanks that a clever solution but I think any 'array' or 'if' formula is out too.

I may be asking for the impossible but I think it will require a cumbersome formula using lots of basic sum formulas
 
Upvote 0
Maybe SUMPRODUCT
Excel Workbook
AB
113
21
31
42
53
61
73
83
91
101
111
Sheet
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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