COUNTIF

deemer98

Board Regular
Joined
Sep 9, 2005
Messages
128
Good morning all,

I think I need to use COUNTIF, but could be wrong.

First of all, can I use COUNTIF if there are blank cells? I want it to count an entry for F:F, but I will only populate about 30 rows reach day.

COUNTIF(F2:F21,"105") works great now, but if I put F:F, I get 0 for the answer. Also, my other option for that column will be "ML5221", but I can't get it to count at all. Any thoughts?

Thanks!

David
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Will you please upload a snapshot of your data in column F?
 
Upvote 0
but still getting a 0 for the ML5221
Manually locate a cell with "ML5221" in it. Let's say it is cell F18.
Then in any blank cell on your sheet, enter thos formula and see what it returns:
=LEN(F18)

If that returns anything other than 6, then you have extra characters in those entries that need to be accounted for.
If it does return 6, please post the exact COUNTIF formula you are trying.
 
Upvote 0
Got it. There were extra characters after the ML5221. Must have just been spaces because there was nothing to see. Thanks!
 
Upvote 0
There were extra characters after the ML5221. Must have just been spaces because there was nothing to see. Thanks!
You are welcome.
Yes, that is not uncommon in data that comes from other sources, or Web scrapes.
 
Upvote 0

Forum statistics

Threads
1,215,777
Messages
6,126,834
Members
449,343
Latest member
DEWS2031

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