Excel UDF : Copy cell comment into another cell

Deepanshu Bhalla 1 Comment , ,
Suppose you want to copy cell comment into another cell. As comment changes, value in another cell also changes automatically. There is no such excel function which copies the comment into another cell. I developed a user defined function (UDF) that takes a comment cell reference and return its text.



How to Use :
1. Press ALT + F11 to open Visual Basic Editor
2. In visual basic editor window, Go to Insert >> Module
3. In module, add the above lines of code.
4. In main excel window, type =Getcomment(cell_reference)

Example :
A cell comment is in cell B2 . In cell F2, type =Getcomment(B2). 




Related Posts
Spread the Word!
Share
About Author:
Deepanshu Bhalla

Deepanshu founded ListenData with a simple objective - Make analytics easy to understand and follow. He has over 10 years of experience in data science. During his tenure, he worked with global clients in various domains like Banking, Insurance, Private Equity, Telecom and HR.

Post Comment 1 Response to "Excel UDF : Copy cell comment into another cell"
  1. Hi, I have a list of names that I want to lookup the cell comment for given an array.
    Sheet1 I have a list of names for specific date
    Sheet 2 I have the array with names and all dates, names on x and dates on y axis
    Can you help?

    ReplyDelete
Next → ← Prev