+ Reply to Thread
Results 1 to 5 of 5

If cell has formula and cell below has comment then copy comment to cell with formula

  1. #1
    Registered User
    Join Date
    11-20-2017
    Location
    Harrisburg, PA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    56

    If cell has formula and cell below has comment then copy comment to cell with formula

    I'm new to VBA but have successfully created a macro that inserts a row, then inserts a formula in the columns in that row to add two rows below it together, changes the formula into a value, then deletes the two rows that make up that value. Some of the cells that get deleted have comments in them that I would like to move into the inserted row before the row is deleted. I'm trying to create a macro that says if a cell has a formula and the cell below it has a comment then copy the comment to the formula cell. I've tried multiple different ways but can't seem to get anything that works. Attached is my file with some examples of what I am talking about.

    Any help you can give would be greatly appreciated.

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: If cell has formula and cell below has comment then copy comment to cell with formula

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-20-2017
    Location
    Harrisburg, PA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    56

    Re: If cell has formula and cell below has comment then copy comment to cell with formula

    I had a formula similar to this one but I need, and can't figure out, is how to make the If statement to be: If the cell has a formula AND the cell beneath it has a comment THEN copy the comment from the cell below to the formula cell above.

  4. #4
    Registered User
    Join Date
    11-20-2017
    Location
    Harrisburg, PA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    56

    Re: If cell has formula and cell below has comment then copy comment to cell with formula

    The formula mentioned above doesn’t do anything. Can someone offer another suggestion?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: If cell has formula and cell below has comment then copy comment to cell with formula

    ........................
    Attached Files Attached Files

+ 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. [SOLVED] Possible to add comment to a cell by formula?
    By LoneWolf78 in forum Excel General
    Replies: 2
    Last Post: 11-27-2017, 03:42 PM
  2. [SOLVED] Function to return comment from a cell, or null string if no comment
    By Monkihunta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-22-2017, 01:01 PM
  3. [SOLVED] Show comment on mouse over cell rather than over comment icon....?
    By BellyGas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2015, 09:05 AM
  4. Check if cell in range is empty, if it is delete comment else format comment to
    By banaanas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2015, 01:15 AM
  5. Formula to copy a comment from cell A1 to cell A2?
    By levitt in forum Excel General
    Replies: 9
    Last Post: 08-06-2014, 02:45 AM
  6. can we insert a formula in cell comment?
    By Soli in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-19-2013, 07:57 AM
  7. Adding a comment to a formula-not a cell
    By Floridagal in forum Excel General
    Replies: 4
    Last Post: 01-05-2005, 09:06 PM

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