メインコンテンツへスキップ

Excelでコメントの内容を簡単に抽出するにはどうすればよいですか?

以下のスクリーンショットに示すように、表示または分析を改善するために、セルのコメントコンテンツをセルに抽出する必要がある場合があります。 しかし、Excelには、それを支持できる組み込み関数はありません。 ただし、ここでは、この問題をすばやく簡単に解決するための秘訣をいくつか紹介します。
doc抽出コメント内容1

定義された関数でコメントの内容を抽出する

Kutools forExcelでアクティブなシートまたはワークブックのすべてのコメントコンテンツを一覧表示します良いアイデア3


定義された関数でコメントの内容を抽出する

Excelには、定義済み関数以外にコメントの内容を抽出できる数式はありません。

1。 押す Altキー+ F11 を有効にするためのキー アプリケーション向け Microsoft Visual Basic 窓。

2。 クリック インセット > モジュール、コードをコピーして空の新しいモジュールに貼り付けます。

コード:コメントを抽出

 Function getComment(xCell As Range) As String
'UpdatebyExtendoffice20180330
On Error Resume Next
getComment = xCell.Comment.Text
End Function

doc抽出コメント内容2

3. コードを保存し、コメントの内容を抽出したいシートに戻り、次のように入力します。 =getコメント(B2コメントの内容を配置するセルに ) を入力し、 を押します。 入力します 鍵。 すると、セルにコメントが表示されていることがわかります。 必要に応じて、フィルハンドルを下にドラッグしてコメントを抽出できます。

doc抽出コメント内容3 右矢印ドキュメント doc抽出コメント内容4

Kutools forExcelでアクティブなシートまたはワークブックのすべてのコメントコンテンツを一覧表示します

アクティブなシートまたは現在のワークブックのすべてのコメント内容を一覧表示したい場合、定義された関数は便利ではありません。 しかし Kutools for Excelさん Create Comment List function を使用すると、このジョブを迅速かつ簡単に処理できます。

Kutools for Excel, 以上で 300 便利な機能は、あなたの仕事をより簡単にします。 

無料インストール Kutools for Excel、以下のようにしてください:

1。 クリック クツール > その他 (編集グループ内) > コメントリストを作成する。 スクリーンショットを参照してください:
doc抽出コメント内容5

2。 の中に Create Comment List ダイアログで、コメントを一覧表示する範囲、アクティブ シート、またはすべてのシートを選択し、コメントを新しいワークブックに配置するか、現在のワークブックの新しいシートに配置するかを選択します。
doc抽出コメント内容6

3。 クリック Create。 これで、すべてのコメントが XNUMX つずつシートにリストされます。
doc抽出コメント内容7

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I'm getting ambiguous name detected: getComment error.

This usually works, don't understand why it doesn't now.

Any idea?
This comment was minimized by the moderator on the site
how would we modify if we are pointing to a cell on another sheet?  TIA
This comment was minimized by the moderator on the site
Sorry, Kelly, I would like to help you if I know. Probably, you can place this question in our forum https://www.extendoffice.com/forum/excel.html, maybe someone know the solution.
This comment was minimized by the moderator on the site
So informative things are provided here, I really happy to read this post, I was just imagine about it and you provided me the correct information. I really need this for my site.
This comment was minimized by the moderator on the site
Thank you! This really helps.
This comment was minimized by the moderator on the site
Thanks! Worked like a charm!
This comment was minimized by the moderator on the site
Thank you! Very helpful!
This comment was minimized by the moderator on the site
Thanks a lot! It was really helpful!
This comment was minimized by the moderator on the site
Thank you a lot! Helped me much. It could be hours of manual work :D
This comment was minimized by the moderator on the site
When I use this tool for the newer threaded comments feature in excel, it doesn't recognize any "comments" as "comments." It only shows "notes." Is there a workaround for this?
This comment was minimized by the moderator on the site
Hey,

If you change the fourth line in the Macro to "getComment = xCell.CommentThreaded.Text", it will work.
This comment was minimized by the moderator on the site
I'm not the original commenter but this is exactly the fix I was looking for. Thanks!!
This comment was minimized by the moderator on the site
My goodness, thank you i've been trying to figure this out and this was the missing piece.
This comment was minimized by the moderator on the site
Thank you so much for sharing this tips. Really helpful & it works easily.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations