how to count how many comments in a column

gigiyi

Board Regular
Joined
May 11, 2009
Messages
205
Hi experts,

I have a question on how to count how many "commets" I have made in a column.
For instance, In column A, I have 100 data from A1 to A100,
I made a comments on cell A7, A21, A55, A99

My question is how to use formula (not to use VBA code )to count there are total 4 comments in column A?

Thanks in advance.

gigi
 

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.
I don't believe there is a native function to count comments....you will need to use VBA
Higlight the required column then use
VBA Code:
Sub ccom()
MsgBox Selection.SpecialCells(xlCellTypeComments).Count
End Sub
 
Upvote 0
I don't believe there is a native function to count comments....you will need to use VBA
Higlight the required column then use
VBA Code:
Sub ccom()
MsgBox Selection.SpecialCells(xlCellTypeComments).Count
End Sub
thank you Michael, it works.
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,538
Members
449,316
Latest member
sravya

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