+ Reply to Thread
Results 1 to 4 of 4

Copy down formula until blank cells

  1. #1
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Copy down formula until blank cells

    Hi! I have a formula that operates on the preceding cells; now I need to enter this formula in the entire column except for the cells in column that are blank. The reason that i can't simply copy down the formula is that when it reached the blank cell it also copies the formula in that cell, and therefore, the formula in the cells that follow this cell show a value error as the formula tries to perform operation on the cell that already contains a formula. I'm including a sample file; the yellow highlighted cell is where it should be a blank, but a formula copies itself there while dragging it down.

    thanks
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Copy down formula until blank cells

    See if this will work for you, you can copy it all the way down...
    =IF(B4="","",IF(AND(C4="",D4=""),SUM(E4,F4),SUM(E4,F4,G3)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: Copy down formula until blank cells

    Wow. Worked like a magic. Thank you.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Copy down formula until blank cells

    Happy to help

+ 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. copy formula to the blank cells in a range
    By krazyhype19 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-09-2014, 06:29 AM
  2. [SOLVED] Formula to ignore blank cells and copy data that meets criteria?
    By Office_Dummy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-27-2014, 12:29 PM
  3. [SOLVED] Want to copy formula from G7 to blank cells
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2014, 02:37 AM
  4. Copy Formula from set cells, paste in blank rows below as value
    By cappie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2013, 02:45 PM
  5. [SOLVED] Macro to copy formula to blank cells in a dynamic range
    By masben in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-25-2013, 07:07 AM
  6. [SOLVED] Copy a formula down in blank cells
    By Kevin P in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-13-2012, 06:47 AM
  7. I want to copy a formula n Excel but skip any blank cells
    By Ann in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-12-2005, 03:00 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