+ Reply to Thread
Results 1 to 7 of 7

Copy values from rows into blank cells below

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    Canberra, Australia
    MS-Off Ver
    2003,2010
    Posts
    11

    Copy values from rows into blank cells below

    Hi,

    I have one more part of a module that I havn't been able to work out...

    I want to copy values from Columns 'B', 'D-E' into all cells below where there are no values.

    Once a row has a value again then I want to re-run the copy and paste.

    I have attached examples for clarification.

    I really appreciate your help!

    Thanks :-)
    Attached Files Attached Files
    Last edited by Penn; 11-06-2014 at 10:01 PM.

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copy values from rows into blank cells below

    It sounds like u want above value where ever blank is there if it right then try below way

    1) First Select your data from B2:E7
    2) Press F5 --> Click on Special -->
    3) Select Blanks --> Click OK
    4) And Link above cell (Press Equal Sign(=) & select above cell)
    5) Prss Control & Hold it & then Press Enter
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Copy values from rows into blank cells below

    Mr. Pen
    If you are concerned to that by code:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-04-2014
    Location
    Canberra, Australia
    MS-Off Ver
    2003,2010
    Posts
    11

    Re: Copy values from rows into blank cells below

    I never noticed the F5 special function before... it's great!
    But I was looking for something I could put in VBA script but this has helped me greatly for the macro recording!

  5. #5
    Registered User
    Join Date
    11-04-2014
    Location
    Canberra, Australia
    MS-Off Ver
    2003,2010
    Posts
    11

    Re: Copy values from rows into blank cells below

    Thanks! I was looking for a macro. I got an error with this script.... but when I combined the advice from you and Naveed... this is what I came up with... works a treat! I added a few extra columns too to my selection....


    Sub FillBlankCells()
    '
    Range("A:N,P:V").Select
    Range("P1").Activate
    Selection.SpecialCells(xlCellTypeBlanks).Select
    Selection.FormulaR1C1 = "=R[-1]C"
    Range("A2").Select
    End Sub

  6. #6
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Copy values from rows into blank cells below

    Hi

    Glad to help , pleas click on *Add Reputation to say thanks..

  7. #7
    Registered User
    Join Date
    11-04-2014
    Location
    Canberra, Australia
    MS-Off Ver
    2003,2010
    Posts
    11

    Re: Copy values from rows into blank cells below

    Done, Thanks

+ 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] Formula: copy rows in a range, based on non-blank values in one of the columns
    By Glenn Kennedy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2013, 09:08 AM
  2. 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
  3. Replies: 1
    Last Post: 04-11-2013, 01:02 PM
  4. Hide Cells with zero values but blank rows should be ignored
    By ckozakos in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2011, 06:27 AM
  5. Excel 2007 : Copy cells with non blank values.
    By enhydra in forum Excel General
    Replies: 2
    Last Post: 12-15-2009, 12:35 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