+ Reply to Thread
Results 1 to 3 of 3

How to replace an empty cell with the data of the one above

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to replace an empty cell with the data of the one above

    Hello,
    I'm a newbee on the forum and a medium excel user without VBA programming knowledge.
    Currently I am stuck with the folowing challenge, is there anyone who can help?

    Challenge:
    I'm working on a file (datadump) which looks like this.

    Knipsel.PNG

    Colomn B contains clientnumbers. I need to replace the empty cells with the data (clientnumber) of the one above.
    Manualy I copy the cell above the empty one and paste its content in the empty ones untill I reach another one containing a clientnumber.

    When I recorded this procedure (I used the searchwindow, searched for an empty cell, clicked the one above and pasted as mentioned above).
    The recording doesn't give a code I can use for whole my file. The code looks like this.

    Knipsel2.PNG

    Is there anyone who can help me out with a code that works for whole my file?

    Thanks in advance!

    Lenny

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

    Re: How to replace an empty cell with the data of the one above

    Is this what you wanted?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-14-2013
    Location
    The Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to replace an empty cell with the data of the one above

    Wow, Jindon you're brilliant!

    The code worked perfect for the A colomn. Al I had to do is change "a1" to "b1" and now it works fine for my file.

    Thank you so much, this will save me tons of time!

    Lenny

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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