Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default EXCEL FILTER OF COMMENT CONTENT

I want to filter on a key word for a group of cells and the contents of the
comments. Cannot find any information on filtering on the key word within the
comment.
Thanks
Bart
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default EXCEL FILTER OF COMMENT CONTENT

That's probably because you can't filter by words within comments with any
built-in Excel functions?

You'd need a custom macro to go through the cells in question and examine
them to see if they have a comment and then 'filter' based on the results of
the examination of the comment text after determining that a cell even had a
comment associated with it.

"Bart" wrote:

I want to filter on a key word for a group of cells and the contents of the
comments. Cannot find any information on filtering on the key word within the
comment.
Thanks
Bart

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default EXCEL FILTER OF COMMENT CONTENT

Maybe just using Edit|Find and searching through comments would be sufficient???

Bart wrote:

I want to filter on a key word for a group of cells and the contents of the
comments. Cannot find any information on filtering on the key word within the
comment.
Thanks
Bart


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default EXCEL FILTER OF COMMENT CONTENT

On the filter, you can choose the "custom" option and choose "contains."
From there, just enter the criteria you're seeking.

Keep in mind that if you're looking for something like "NA" it will find
*all* instances where "NA" appears so if the word "finance" appears, it will
show up in your result so you need to be as specific as you can. There are a
lot of options in "custom" so after some experimentation, you'll probably
come to something useful.

Good luck!

"Dave Peterson" wrote:

Maybe just using Edit|Find and searching through comments would be sufficient???

Bart wrote:

I want to filter on a key word for a group of cells and the contents of the
comments. Cannot find any information on filtering on the key word within the
comment.
Thanks
Bart


--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default EXCEL FILTER OF COMMENT CONTENT

You can't filter comment

--


Regards,


Peo Sjoblom


"smartgal" wrote in message
...
On the filter, you can choose the "custom" option and choose "contains."
From there, just enter the criteria you're seeking.

Keep in mind that if you're looking for something like "NA" it will find
*all* instances where "NA" appears so if the word "finance" appears, it
will
show up in your result so you need to be as specific as you can. There
are a
lot of options in "custom" so after some experimentation, you'll probably
come to something useful.

Good luck!

"Dave Peterson" wrote:

Maybe just using Edit|Find and searching through comments would be
sufficient???

Bart wrote:

I want to filter on a key word for a group of cells and the contents of
the
comments. Cannot find any information on filtering on the key word
within the
comment.
Thanks
Bart


--

Dave Peterson





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default EXCEL FILTER OF COMMENT CONTENT

Whoops, just thought it was comments in a field. My bad!

"Peo Sjoblom" wrote:

You can't filter comment

--


Regards,


Peo Sjoblom


"smartgal" wrote in message
...
On the filter, you can choose the "custom" option and choose "contains."
From there, just enter the criteria you're seeking.

Keep in mind that if you're looking for something like "NA" it will find
*all* instances where "NA" appears so if the word "finance" appears, it
will
show up in your result so you need to be as specific as you can. There
are a
lot of options in "custom" so after some experimentation, you'll probably
come to something useful.

Good luck!

"Dave Peterson" wrote:

Maybe just using Edit|Find and searching through comments would be
sufficient???

Bart wrote:

I want to filter on a key word for a group of cells and the contents of
the
comments. Cannot find any information on filtering on the key word
within the
comment.
Thanks
Bart

--

Dave Peterson




  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default EXCEL FILTER OF COMMENT CONTENT

Maybe you could use a little VBA user defined function to retrieve the comment
into an adjacent cell:

Saved from a previous post:

You can retrieve the text from a comment with a userdefined function like:

Option Explicit
Function GetComment(FCell As Range) As Variant
Application.Volatile

Set FCell = FCell(1)

If FCell.Comment Is Nothing Then
GetComment = ""
Else
GetComment = FCell.Comment.Text
End If

End Function

Then you can use it like any other function:

=getcomment(a1)

But be aware that the function won't evaluate when you just change the comment.
It'll be correct when excel recalculates. (Hit F9 to force a recalc.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Bart wrote:

I want to filter on a key word for a group of cells and the contents of the
comments. Cannot find any information on filtering on the key word within the
comment.
Thanks
Bart


--

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
Converting cell content into comment Akash Maheshwari Excel Discussion (Misc queries) 2 September 4th 07 07:48 AM
Converting cell content into comment Akash Maheshwari Excel Discussion (Misc queries) 0 September 4th 07 06:30 AM
copy comment content to cell content as data not as comment Lilach Excel Discussion (Misc queries) 2 June 21st 07 12:28 PM
how can I place the content of a cel automaticly in a comment willie heijink Excel Discussion (Misc queries) 0 April 27th 07 09:46 AM
Comment position after filter cassie Excel Discussion (Misc queries) 2 June 28th 05 12:04 AM


All times are GMT +1. The time now is 08:20 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"