Countif function?

BJSinger7623

New Member
Joined
Feb 20, 2020
Messages
33
Office Version
  1. 365
  2. 2019
  3. 2010
Platform
  1. Windows
I need a formula that will count every time a cell in a column has the # sign and four numbers behind it. Some cells will have more than one. Can't seem to make it work. Any help would - as always - be GREATLY appreciated!

1704827330624.png
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try this:

varios 09ene2024.xlsm
AB
1
2#12343
3
4#2345
5
6#12
7
8#4567
9
10#68 xd
Hoja2
Cell Formulas
RangeFormula
B2B2=COUNTIF(A2:A10,"#????")
 
Upvote 0
Just kidding - it counts ONCE for each appearance in a cell...back to the drawing board!
 
Upvote 0
Are you looking for a count by cell/row, or just a WHOLE total count for an entire range?
Perhaps if you showed us a small example WITH your expected output, it will be clearer.

Also, are you open to an answer that uses VBA?
 
Upvote 0
back to the drawing board!
Note XL2BB:

For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with, rather that a picture.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.



In the example, put what the expected result is and a brief explanation.

🧙‍♂️
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

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