+ Reply to Thread
Results 1 to 4 of 4

Extract both Cell and Comment

  1. #1
    Registered User
    Join Date
    01-10-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    37

    Extract both Cell and Comment

    Hi there

    I'm trying to extract both value and comment of a cell to another cell.

    For example, I can put "=A1" in B1 to get A1's value in B1, but A1 also has a comment, how do I get this comment as well? Note that I actually use formulas to extract A1 to B1 but I also want to extract A1's comment, so basically make B1 a carbon copy of A1.

    I looked around on internet, there is VBA code to extract the comment's value to a cell, that's not what I want.

    Thanks for your help.
    Last edited by kanonathena; 09-06-2013 at 12:25 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Extract both Cell and Comment

    Hi, kanonathena,

    sorry I´m not aware of just a plain formula with standard functions being able to do so. Using a UserDefined Function may help with that but that function is VBA which you want to avoid.

    UDF goes into a standard module
    Please Login or Register  to view this content.
    Used in a cell:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    01-10-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Extract both Cell and Comment

    Hi Holger,

    Thanks for the code. I think I wasn't clear. I don't want to extract the comment to a separate cell, I want to leave the comment in the comment format (in that little yellow box). So A1 has a yellow box I want to make B1 = A1 plus the little yellow box.

    What I am doing right now is to make a report based on a data sheet. People put comment (in the yellow box) in cells in the data sheet. When the report sheet grab a cell in the data sheet I also want it to grab the comment.

    I don't know if it's possible because you need to in one cell enter both the formula to grab the cell value and also something to grab the comment. Maybe use a macro instead of a user defined formula?

    Let's say if have text string in A1 "This is Sue's salary", can you turn it into a comment in B1 with something?

  4. #4
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Extract both Cell and Comment

    Hi, kanonathena,

    AFAIK only with VBA or a function used in VBA but not as an UDF being applied in a cell.

    Ciao,
    Holger

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Disable Delete Comment, Edit Comment, Show/Hide Comment
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2013, 06:12 AM
  2. Extract Line From Comment
    By Vic Schoeman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2011, 07:04 AM
  3. Extract Picture from Excel cell Comment, and add to VBA Control
    By PetersBase in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2010, 12:06 PM
  4. Extract contents of cell if greater than zero to a comment
    By randolphoralph in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2009, 05:54 PM
  5. [SOLVED] How to extract excel sheet cell comment?
    By Manpreet Singh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2006, 01:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1