#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cell with comments

how to create a formula to sum all cells in a column that has c comment,is
that possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default cell with comments

You will have to use a UDF. Try the below. If you are new to macros set the
Security level to low/medium in (Tools|Macro|Security). From workbook launch
VBE using short-key Alt+F11. From menu 'Insert' a module and paste the below
code. Save. Get back to Workbook.

To use it in cell; try the below formula
=sumcomment(D9:F13)

Function SumComment(varRange As Range)
SumComment = 0
For Each varCell In varRange
If Not varCell.Comment Is Nothing Then
SumComment = SumComment + varCell
End If
Next
End Function

If this post helps click Yes
---------------
Jacob Skaria


"kiboy^palaboy" wrote:

how to create a formula to sum all cells in a column that has c comment,is
that possible?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default cell with comments

This function won't recalculate when a comment is added or removed.

It's probably a good idea to make it volatile--and even then, it may be not
return accurate results without forcing a recalculation.



Jacob Skaria wrote:

You will have to use a UDF. Try the below. If you are new to macros set the
Security level to low/medium in (Tools|Macro|Security). From workbook launch
VBE using short-key Alt+F11. From menu 'Insert' a module and paste the below
code. Save. Get back to Workbook.

To use it in cell; try the below formula
=sumcomment(D9:F13)

Function SumComment(varRange As Range)
SumComment = 0
For Each varCell In varRange
If Not varCell.Comment Is Nothing Then
SumComment = SumComment + varCell
End If
Next
End Function

If this post helps click Yes
---------------
Jacob Skaria

"kiboy^palaboy" wrote:

how to create a formula to sum all cells in a column that has c comment,is
that possible?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default cell with comments

Thanks Dave, I missed to mention that..
--
If this post helps click Yes
---------------
Jacob Skaria


"Dave Peterson" wrote:

This function won't recalculate when a comment is added or removed.

It's probably a good idea to make it volatile--and even then, it may be not
return accurate results without forcing a recalculation.



Jacob Skaria wrote:

You will have to use a UDF. Try the below. If you are new to macros set the
Security level to low/medium in (Tools|Macro|Security). From workbook launch
VBE using short-key Alt+F11. From menu 'Insert' a module and paste the below
code. Save. Get back to Workbook.

To use it in cell; try the below formula
=sumcomment(D9:F13)

Function SumComment(varRange As Range)
SumComment = 0
For Each varCell In varRange
If Not varCell.Comment Is Nothing Then
SumComment = SumComment + varCell
End If
Next
End Function

If this post helps click Yes
---------------
Jacob Skaria

"kiboy^palaboy" wrote:

how to create a formula to sum all cells in a column that has c comment,is
that possible?


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cell comments Greggo G Excel Discussion (Misc queries) 3 June 8th 09 10:51 AM
Cell Comments Terry Bennett Excel Worksheet Functions 3 September 16th 07 10:02 PM
Comments into a cell without VB. Amit Kumar Baidyaka Excel Discussion (Misc queries) 5 March 23rd 07 09:40 PM
print comments using cell contents, not cell# dickenswick Excel Discussion (Misc queries) 3 September 20th 06 11:48 PM
Need to add cell comments in unlocked cell on protected worksheet dan400man Excel Discussion (Misc queries) 3 December 16th 05 08:02 PM


All times are GMT +1. The time now is 09:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"