Formulas required for a certain number.

hotrod

Board Regular
Joined
Feb 3, 2009
Messages
103
I need formulas to calculate how may times a certain number (eg 5) appears in a column, row and table please. Or is there a formula that fits all three.
Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
59,294
Office Version
  1. 365
Platform
  1. Windows
Like this?

Column:
=COUNTIF(A:A,5)

Row:
=COUNTIF(1:1,5)

Table:
=COUNTIF(A1:E5,5)
 
Upvote 0

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi

Is each 5 in its own discrete cell or is it part of a string/number within cells? If the former then use COUNITF:

=COUNTIF(Range,5)
 
Upvote 0

jim may

Well-known Member
Joined
Jul 4, 2004
Messages
7,484
=COUNTIF(F:F,5) For Column
=COUNTIF(2:2,5) For Row
=COUNTIF(H14:J16,5) For Table
 
Upvote 0

Forum statistics

Threads
1,191,204
Messages
5,985,255
Members
439,953
Latest member
suchitha

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
Top